Dr. Pepper Cake

Jump to Recipe ▼
Reader Rating
Total Time 1 hour 5 minutes

This post may contain affiliate links. Please read our disclosure policy.

This Dr Pepper cake takes a whole can of soda and turns it into the moistest chocolate sheet cake you’ve ever pulled out of the oven. It’s got warm spice, deep chocolate flavor, and a fudgy frosting that gets swooshed right over the top while everything’s still a little warm.

If you’re in a chocolate mood, you’ll also love my Chocolate Sheet Cake with Strawberry Frosting, Cherry Chip Cake, and Chocolate Chip Bundt Cake for more easy, crowd-pleasing desserts.

A dirty Dr. Pepper float in a mason jar with a spoon and a slice of a lime on the top with a can of Dr. Pepper in the background.

Why This Recipe Works

One can of soda does a lot of work. Dr Pepper adds moisture, a subtle warm-spiced sweetness, and a little natural carbonation that helps lighten the crumb, so you get a genuinely tender cake without any fancy techniques.

It’s a true one-bowl, one-pan situation. There’s no layering here, so you can just just mix, pour, and bake in a single sheet pan, which means less cleanup and way less room for error.

The frosting comes together while the cake cools. By the time your cake is out of the oven and resting on a wire rack, you can have the chocolate Dr Pepper frosting mixed up and ready to spread, so the whole dessert is done in just about an hour.

It feeds a crowd without any extra effort. This Dr Pepper cake recipe makes a generous 9×14 sheet cake that serves up to 18 people, making it a natural pick for potlucks, birthday parties, or any get-together where you need a dessert that goes far.

A hand pouring a can of Dr. Pepper into a mason jar with vanilla ice cream in it and a slice of a lime on top.

Ingredients for Dr Pepper Cake

For the Sheet Cake

Butter — Room temperature butter creams smoothly with the sugar, giving the cake a good base of flavor and helping the batter come together evenly.

Sugar — Granulated sugar sweetens the cake and helps create that soft, tender crumb once it’s creamed with the butter.

Oil — A neutral oil like vegetable or canola keeps the cake moist for days!

Eggs — Add these one at a time so each one fully incorporates into the batter.

Buttermilk — The acidity in buttermilk reacts with the baking soda for extra lift and adds a subtle tang.

Vanilla — A classic flavor booster that rounds out the chocolate and spice notes in the batter.

Cocoa — Use a good-quality unsweetened cocoa powder here for that deep chocolate flavor.

Baking soda — This is your main leavener, working with the buttermilk and Dr Pepper’s carbonation to help the cake rise.

Salt — Just a small amount to balance the sweetness and make all the other flavors pop.

Ginger and cinnamon — These warm spices are what give this cake its signature cozy flavor, along with the Dr Pepper.

Flour — All-purpose flour is all you need here. Add it gradually so the batter comes together smoothly without overmixing.

Dr Pepper — This adds moisture, a hint of that signature 23-flavor sweetness, and a little carbonation lift. Use regular Dr Pepper rather than diet for the best texture.

For the Frosting

Butter — Room temperature butter blends into a smooth, lump-free frosting base.

Cocoa — More unsweetened cocoa powder here keeps the frosting rich and deeply chocolatey.

Powdered sugar — This sweetens and thickens the frosting into a spreadable consistency. Add it gradually for the smoothest results.

Dr Pepper — A splash of soda in the frosting ties the whole cake together and keeps the frosting glossy and easy to spread.

A mason jar full of a dirty Dr. Pepper float with a lime on the top and a hand pouring a can of Dr. Pepper in the mason jar.

How to Make Easy Dr Pepper Cake

  1. Preheat & Prep: Preheat the oven to 350F and prepare a 9×14 rectangular cake pan with cooking spray and baking parchment. 
  2. Cream Butter & Sugar: In a large bowl or stand mixer, beat together the butter and sugar until combined and lightened in color. Add stir in the oil, then the eggs, one at a time, followed by the buttermilk and vanilla.
  3. Add Dry Ingredients: Stir in the cocoa, baking soda, salt and spices until just combined, then add the flour, 1 cup at a time, stirring until you have produced a thick but smooth batter. Then, stir in the Dr Pepper.
  4. Bake: Transfer to the pan and bake for 35-40 minutes until the cake springs back at your touch and a skewer or the tip of a sharp knife inserted into the middle of the cake comes away clean. Once the cake is cool enough to remove from the pan allow it to cool on a wire rack while you make the frosting. 
  5. Make the Frosting: Beat the butter and cocoa together until smooth. Then beat in the powdered sugar, 1/2 a cup at a time, gradually adding the Dr Pepper when the mixture becomes too thick. Once all the powdered sugar and Dr Pepper has been used, you should be left with a smooth, spreadable frosting.
  6. Decorate & Enjoy: Use a rounded knife to swoosh the frosting over the top of the sheet cake.

Variations

Extra spice. If you love the warm, almost gingerbread-adjacent flavor here, try bumping the ginger and cinnamon up slightly for a more pronounced spiced chocolate cake.

No Dr Pepper on hand? Any dark cola or even root beer will work in a pinch, though the flavor will shift slightly away from that classic Dr Pepper spice.

Marshmallow layer. Some Southern versions of soda cakes scatter mini marshmallows over the batter before baking, letting them melt into a gooey, slightly crisp top layer.

Close up of a half of a lime and a ice cream scooper with a scoop of vanilla ice cream on it surrounded by coconut shavings.

FAQs

What does Dr Pepper do to a cake?

Dr Pepper adds moisture and a subtle sweetness with warm, almost spiced undertones that pair especially well with chocolate. Its natural carbonation also gives the batter a gentle lift, helping create a lighter, more tender crumb than you’d get from eggs and oil alone.

Can I use diet Dr Pepper in this recipe?

It’s best to stick with regular Dr Pepper, since diet versions have a different sugar content that can throw off both the texture and sweetness of the finished cake. If you only have diet on hand it will likely still bake up fine, but the texture may be slightly different from the original.

Top view of a metal serving tray holding a mason jar of a dirty Dr. Pepper float, a can of Dr. Pepper, half of a lime, and an ice cream scooper with vanilla ice cream on it all surrounded with coconut shavings.

Expert Tips

  • Don’t overmix once the flour goes in. Stir just until the batter comes together smoothly, since overworking the batter at this stage can lead to a denser, tougher cake instead of a tender one.
  • Let your cake cool before frosting it. Frosting a warm cake will cause the frosting to melt and slide right off, so give the cake plenty of time on a wire rack until it’s fully cool to the touch.
  • Add the powdered sugar gradually. Beating it in a half cup at a time, alternating with splashes of Dr Pepper, helps you control the frosting’s consistency and avoid a batch that’s too thick or too runny.
Dirty Dr. Pepper floats, a can of Dr Pepper, half of a lime, a scoop of vanilla ice cream on an ice cream scooper, surrounded in coconut shavings on a metal serving tray.

More Recipes to Try

When you make this recipe, snap a photo and tag me on social – I love connecting with you and seeing what you’re up to in the kitchen!

Dirty Dr. Pepper Floats
No ratings yet

Dr Pepper Cake

This Dr Pepper Cake takes a whole can of soda and turns it into the moistest chocolate sheet cake you've ever pulled out of the oven. It's got warm spice, deep chocolate flavor, and a fudgy frosting that gets swooshed right over the top while everything's still a little warm.
Prep: 25 minutes
Cook: 40 minutes
Total: 1 hour 5 minutes
Servings: 18
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Ingredients 

For the Sheet Cake

  • ½ cup butter, at room temperature
  • 2 cups sugar
  • ½ cup oil
  • 2 eggs
  • ½ cup buttermilk
  • 1 tsp vanilla
  • cup cocoa
  • 1 tsp baking soda
  • ½ tsp salt
  • ½ tsp ginger
  • ½ tsp cinnamon
  • 2 cups flour
  • 1 ½ cups Dr Pepper

For the Frosting

  • ¼ cup butter, at room temperature
  • ¼ cup cocoa
  • 2 cups powdered sugar
  • ¼ cup Dr Pepper

Instructions 

  • Preheat the oven to 350F and prepare a 9×14 rectangular cake pan with cooking spray and baking parchment.
  • In a large bowl or stand mixer, beat together the butter and sugar until combined and lightened in color. Add stir in the oil, then the eggs, one at a time, followed by the buttermilk and vanilla.
  • Stir in the cocoa, baking soda, salt and spices until just combined, then add the flour, 1 cup at a time, stirring until you have produced a thick but smooth batter. Then, stir in the Dr Pepper.
  • Transfer to the pan and bake for 35-40 minutes until the cake springs back at your touch and a skewer or the tip of a sharp knife inserted into the middle of the cake comes away clean. Once the cake is cool enough to remove from the pan allow it to cool on a wire rack while you make the frosting.
  • Beat the butter and cocoa together until smooth. Then beat in the powdered sugar, 1/2 a cup at a time, gradually adding the Dr Pepper when the mixture becomes too thick. Once all the powdered sugar and Dr Pepper has been used, you should be left with a smooth, spreadable frosting.
  • Use a rounded knife to swoosh the frosting over the top of the sheet cake.

Notes

  • The cake can be made ahead and frosted the next day, or frozen well wrapped in food wrap for up to 1 month.

Nutrition

Calories: 278kcal | Carbohydrates: 51g | Protein: 3g | Fat: 8g | Saturated Fat: 1g | Polyunsaturated Fat: 2g | Monounsaturated Fat: 4g | Trans Fat: 0.03g | Cholesterol: 20mg | Sodium: 155mg | Potassium: 88mg | Fiber: 1g | Sugar: 39g | Vitamin A: 54IU | Vitamin C: 0.01mg | Calcium: 29mg | Iron: 1mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Did you make this?Leave a star rating or comment below!
Tiffany of Creme de la Crumb in the kitchen

Welcome!

Hey there, I’m Tiffany – chef, photographer, mother, and avid taco eater. I am passionate about turning simple flavors and ingredients into tasty meals the whole family will love, with minimal prep and cleanup so there’s more time to spend eating and enjoying. Stay awhile, and help yourself to a taco or two!

More Recipes To Love

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating




3 Comments

  1. Librarian Lavender says:

    I’m not much of a soda drinker either, but this looks like something I have to try! Great recipe, it looks delicious!