This is my take on a Texas sheet cake, which means a thin, fudgy slab of chocolate cake under a warm frosting that you pour on while everything is still hot. It is the cake I bring when I need to feed a big group and want every single slice to disappear. The crumb is impossibly moist and the top sets into a glossy, almost candy-like layer of chocolate.
Dr Pepper goes into both the batter and the frosting here, and it is not a gimmick. The soda boils with the butter and cocoa to make a quick chocolate liquid that keeps the cake tender and gives the chocolate flavor a deeper, slightly fruity edge. If you have ever fallen down the rabbit hole of this drink, baking with it is a delicious next step, and I share more of that pull in my soda lover's journey.
Why Dr Pepper works in this recipe
Chocolate and Dr Pepper are a natural match because the soda already carries dark, cola-caramel notes that echo cocoa. In the batter, the cup of soda adds moisture and a faint fruitiness that makes the chocolate taste richer, while its mild acidity reacts with the baking soda to give the cake a tender, even crumb. In the frosting, the soda thins the cocoa and butter into a pourable, glossy glaze. That complexity traces back to the drink's signature blend, which I unpack in the 23 flavors of Dr Pepper. I use classic Dr Pepper so the sugar and flavor come through fully.
When to make it
For a Potluck, this cake is unbeatable, since one sheet pan slices into 16 to 20 squares and travels in the same pan it baked in. For a Birthday it is a crowd-pleasing alternative to a layer cake, and the glossy poured top looks impressive with almost no decorating skill. At a Bake sale the squares cut cleanly and hold their shape, so they wrap and sell beautifully. And over the Holidays the warm chocolate and pecans feel festive, and it is an easy make-ahead when the oven is already busy.
Tips and swaps
- Time the frosting to be ready when the cake comes out. Pouring warm frosting on a warm cake is the whole trick to that self-leveling, glossy top.
- Leave the pecans out for a nut-free cake, or swap in walnuts. The full measurements are in the recipe card below.
- A 9x13 pan works if you do not have a sheet pan, but bake it longer, 28 to 32 minutes, since the batter sits deeper.
- For more soda-spiked desserts, try Dr Pepper brownies or Dr Pepper cupcakes, and a scoop of Dr Pepper ice cream alongside a warm square is hard to beat.
Frequently asked questions
Can I taste the Dr Pepper in the cake?
Not as soda, but as a deeper, slightly fruity chocolate flavor. Most people cannot name the ingredient, they just notice the cake tastes richer than usual.
Can I use Diet Dr Pepper?
Yes, Dr Pepper Diet works in the batter without much change to texture, though full-sugar soda gives the most tender crumb. Keep the rest of the sugar as written.
How far ahead can I make it?
Bake and frost it up to a day ahead and keep it covered at room temperature. It stays moist for about 3 days. Find more dessert ideas on my recipes hub.

