This Dr Pepper Cake starts with a boxed chocolate cake mix, swaps some of the liquid for Dr Pepper, and gets topped with a warm, fudgy chocolate icing made with more Dr Pepper. For about $4.74 total, or $0.40 for serving, it bakes in a 9×13 pan making it an easy sheet cake for potlucks, birthdays, and BBQs.

I’ve been making it for many few years, and it’s one of our family’s favorite chocolate cakes. I love that everyone can enjoy a homemade dessert together without spending a lot of time or money in the kitchen.
Dr Pepper was born in Waco — find more Texas Dessert recipes here.
Why You’ll Love This Recipe!

- Cake mix does the hard work: No measuring flour or cocoa for the cake.
- Melted butter instead of oil: Gives the boxed mix a richer, more homemade flavor.
- Dr Pepper in the cake and icing: The soda adds moisture and a subtle cherry-vanilla note that pairs really well with chocolate.
- Cooked icing: The warm icing sets into a thin, fudgy layer – no mixer needed.
After more than 14 years of baking for my family, I’ve learned that timing makes a big difference when adding icing to a cake. Pouring the icing over the cake while it’s still warm helps it spread smoothly across the top and gives each slice a rich, chocolatey finish.
Love soda cakes? You may also like Coca Cola Cake and Guinness Chocolate Cake.
Why Not Just Cake Mix and Soda?
You may have seen 2-ingredient Dr Pepper cake – just a box of cake mix and a can of soda. It works, but the cake is lighter and crumbly, and it can fall apart under a heavy icing. Adding melted butter, milk, and two eggs gives you a richer, sturdier cake that tastes homemade and still costs only a few dollars more.

Ingredients
Cake
- Chocolate cake mix. I use a 15.25 ounce box of Duncan Hines. Some brands, like Betty Crocker, now sell 13.25-ounce boxes, and those work too but start checking the cake a few minutes early. Devil’s food, chocolate fudge, or milk chocolate mixes all work, so grab whichever is on sale.
- Butter. I use melted butter in place of the oil on the box. It makes a boxed mix taste richer and more homemade.
- Dr Pepper. Dr Pepper takes the place of the milk most cooked icings use. This is where you’ll taste the soda most, so don’t swap it out.
- Milk. Whole milk is best for the richest taste, but you can substitute reduced fat milk.
- Eggs. Use room temperature eggs. They blend more smoothly into the batter so the cake bakes evenly.
Icing
- Unsweetened cocoa powder. I prefer to use Hershey’s cocoa powder.
- Dr Pepper. Any unsweetened cocoa powder works.
- Powdered sugar. Sift the powdered sugar so the icing will be smooth.
- Butter. One stick, melted in the saucepan first, gives the icing its fudgy, glossy finish.
Get the complete ingredient list at the bottom of the page in the recipe card.
How To Make Dr. Pepper Cake
Step 1. Preheat the oven to 350°F and spray a 9×13-inch baking pan with cooking spray.

Step 2. In a large bowl, add the cake mix, Dr Pepper, melted butter, milk, and eggs. Whisk or mix on medium speed just until the batter is smooth and no dry mix is left, then stop.

Step 3. Pour the batter into the pan and bake for 40 minutes. Start checking a few minutes early. It’s done when a toothpick in the center comes out clean or with a few moist crumbs and the top springs back when you lightly press it. Start the icing when the cake has about 10 minutes left so it’s ready when the cake comes out.

Step 4. Melt the butter in a medium saucepan over low heat. Stir in the cocoa powder and Dr Pepper, turn the heat up to medium, and bring it to a boil, stirring so the cocoa doesn’t stick to the bottom.

Step 5. As soon as it boils, remove the pan from the heat and stir in the powdered sugar a cup at a time until the icing is smooth, glossy, and thick enough to coat a spoon. Let it cool for about 5 minutes, then pour it over the warm cake and spread it to the edges. It sets into a fudgy layer as it cools.
Pro Tips
- Take it to go. A 9×13 pan with a lid makes this easy to carry to a potluck without smudging the icing, and it doubles as storage for leftovers.
- Don’t overmix the batter. Stir just until it’s smooth so the cake stays light and fluffy.
- Have everything ready for the icing. Sift the powdered sugar while the cake bakes. Once the butter mixture boils, the icing comes together fast.
How to Get More Dr Pepper Flavor
Baked into a chocolate cake, Dr Pepper mostly adds moisture and a light cherry-vanilla note. The icing is where you’ll really taste it. If you want the soda to stand out more, here’s what helps:
- Let it go flat. Pour the Dr Pepper for the icing into a cup an hour or two ahead. Flat soda won’t foam up in the hot saucepan.
- Simmer it first. Before adding the cocoa, simmer the Dr Pepper with the melted butter for 1–2 minutes. Cooking off a little water concentrates the flavor.
- Use regular, not diet. Diet sweeteners lose their sweetness when boiled, and the icing tastes flat.
- Keep the cocoa light. This icing uses just 2 tablespoons of cocoa, so the chocolate doesn’t cover up the soda. Resist the urge to add more.
Storage
Cover the pan and keep the cake at room temperature for up to 2 days, or in the refrigerator for up to 4 days. To freeze, wrap individual iced slices in plastic wrap, then place them in a freezer bag for up to 3 months. Thaw on the counter.
This is a great make-ahead cake. Bake and ice it the day before, cover the pan, and leave it on the counter until you’re ready to serve.

Variations
- Nuts. Sprinkle chopped pecans or walnuts over the icing right after you spread it, while it’s still warm, so they stick as it sets.
- Sprinkles. Add them while the icing is warm for birthdays or holidays.
- Mini chocolate chips. Stir ½ cup into the batter for extra chocolate in every bite.
Frequently Asked Questions
The flavor is subtle. Mostly it tastes like a really moist chocolate cake with a hint of cherry-vanilla. The icing is where you’ll notice the Dr Pepper most.
Yes. Fill liners ⅔ full, bake at 350°F, and start checking at 18 minutes. You’ll get about 24 cupcakes.
Regular Dr Pepper works best. The sugar helps keep the cake moist, and diet sweeteners lose their sweetness when boiled for the icing.
It usually needed a few more minutes in the oven. Check the very center with a toothpick and try not to open the oven door until the cake is close to done.
Yes. Coca-Cola or root beer work the same way. For a lighter cake, try my 7 Up Cake.
More Easy Cake Recipes
Try this today and leave a comment letting us know how you liked it. I think you will really enjoy this cake.
Dr Pepper Cake
Ingredients
- For cake:
- 1 chocolate cake mix
- 1 stick of butter melted
- 1 cup Dr pepper
- ½ cup milk
- 2 large eggs
- for icing:
- 1 stick of butter
- 2 tablespoons cocoa powder
- 1/3 cup dr pepper
- 4 cups powdered sugar sifted
See how we calculate recipe costs.
Instructions
- Preheat the oven to 350 degrees.
- Lightly grease a 9×13 pan.
- Mix the cake mix, Dr Pepper, melted butter, milk, and eggs until thoroughly mixed
- Once completely mixed, Pour into the pan.
- Bake for 40 minutes. Start checking a few minutes early – it's done when a toothpick in the center comes out clean or with a few moist crumbs and the top springs back when you lightly press it.
- Meanwhile make the icing:
- In a medium saucepan, melt the butter.
- Mix in the cocoa powder and Dr Pepper. Bring just to a boil.
- Remove from the heat and stir constantly.
- Mix in the powdered sugar until the icing thickens. Allow it to cool slightly.
- Pour on top of the cake.
- Let the cake cool completely before serving.





