Dr Pepper Chocolate Cake

My Dr Pepper chocolate cake is a Texas sheet cake style: a thin, fudgy crumb under warm poured frosting, with soda in both the batter and the icing.

By The Pepper Man ·

45 minsMediumServes 16 to 20Jump to Recipe ↓
Great for:PotluckBirthdayBake saleHolidays
A slice of dark Dr Pepper chocolate sheet cake with fudge frosting and pecans, a can of Dr Pepper beside it
Share

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.

Dr Pepper Chocolate Cake

By The Pepper Man · Serves 16 to 20

Prep
20 mins
Cook
25 mins
Total
45 mins
Serves
Serves 16 to 20
Course
Dessert
Cuisine
American

Ingredients

For the cake

  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 tsp baking soda
  • 1/2 tsp salt
  • 1 cup Dr Pepper
  • 1 cup (2 sticks) unsalted butter
  • 1/4 cup unsweetened cocoa powder
  • 1/2 cup buttermilk
  • 2 large eggs
  • 1 tsp vanilla extract

For the frosting

  • 1/2 cup (1 stick) unsalted butter
  • 1/4 cup unsweetened cocoa powder
  • 1/3 cup Dr Pepper
  • 3.5 cups powdered sugar
  • 1 tsp vanilla extract
  • 1 cup chopped pecans (optional)

Instructions

  1. Heat the oven to 350°F (175°C) and grease a 13x18 inch (or 9x13) sheet pan.
  2. Whisk the flour, sugar, baking soda, and salt in a large bowl.
  3. In a saucepan, bring the Dr Pepper, butter, and cocoa to a gentle boil, then pour it over the dry ingredients and stir.
  4. Whisk in the buttermilk, eggs, and vanilla until smooth, then pour into the pan.
  5. Bake for 22 to 25 minutes (a 9x13 needs 28 to 32), until a toothpick comes out clean.
  6. For the frosting, boil the butter, cocoa, and Dr Pepper, then whisk in the powdered sugar, vanilla, and pecans.
  7. Pour the warm frosting over the warm cake and spread it, then let it set before slicing.

Notes & tips

  • Pour the frosting while both cake and frosting are warm so it self-levels into a glossy top.
  • Stays moist for 3 days, covered.

Stock the pantry: a 12-pack of Dr Pepper so you always have a can ready for this recipe.

As an Amazon Associate I earn from qualifying purchases. It costs you nothing extra.

Keywords: dr pepper chocolate cake, dr pepper sheet cake, dr pepper cake recipe

Keep exploring