Dr. Pepper Cake
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.

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.

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.

How to Make Easy Dr Pepper Cake
- Preheat & Prep: Preheat the oven to 350F and prepare a 9×14 rectangular cake pan with cooking spray and baking parchment.
- 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.
- 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.
- 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.
- 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.
- 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.

FAQs
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.
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.

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.

More Recipes to Try
- 5 Ingredient Pina Colada Smoothies (non-alcoholic) – creamy tropical flavor in every icy sip.
- Cherry Limeade – a bright and refreshing drink everyone will love.
- Whipped Milk: Three Ways – the easiest way to make everyday drinks feel special.
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!

Dr Pepper Cake
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
Nutrition information is automatically calculated, so should only be used as an approximation.













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