Forfoodiefriends

  • Quick and Easy Recipes
  • Recipe Roundups
  • Browse Recipes
  • About Sana Umer | Home Cook Behind For Foodie Friends
  • Newsletter
menu icon
go to homepage
  • Quick and Easy Recipes
  • Recipe Roundups
  • Browse Recipes
  • About Sana Umer | Home Cook Behind For Foodie Friends
  • Newsletter
search icon
Homepage link
  • Quick and Easy Recipes
  • Recipe Roundups
  • Browse Recipes
  • About Sana Umer | Home Cook Behind For Foodie Friends
  • Newsletter
×
Home » Desserts

Dr. Pepper Cake with Cream Cheese Frosting (Moist & Fudgy)

Updated: May 15, 2026 · Published: Jun 22, 2025 by Sana Umer · This post may contain affiliate links · Leave a Comment

10 shares
  • Facebook
  • X
↓ Jump to Recipe

I made this Dr. Pepper Cake for the first time on a whim — I had a half-finished bottle of Dr. Pepper sitting on the counter and I didn't want to waste it. I figured soda in cake couldn't be that weird, given that I've made cream cheese muffins and all sorts of other experiments in this kitchen. What came out of the oven surprised me. The cinnamon and cloves in the batter pick up something in the Dr. Pepper that I can't fully explain — it tastes almost like a spiced chocolate cola cake, which sounds odd but absolutely works.

What makes this recipe mine is the frosting. The original Southern versions I've seen use a poured chocolate frosting, but I went with a cream cheese and butter base with a splash of Dr. Pepper mixed in. It's tangy, it's sweet, and it holds up beautifully on a 9x13 slab cake. I also melt the butter for the batter (rather than creaming it) which gives the whole cake a denser, fudgier crumb that I genuinely prefer over the fluffy box-cake texture.

My husband ate three pieces the night I first made this. Zainab thought it tasted like a chocolate cherry cake, which honestly isn't wrong — there's something in Dr. Pepper that reads almost fruity. I make a 9x13 pan every time because anything smaller disappears before it even cools properly.

One thing to know before you start: the batter will look thinner than a typical chocolate cake batter. That's normal. The soda loosens it up, and it bakes into something moist and tight-crumbed. Don't panic and add more flour — I did that on my second attempt and the cake came out dry. Trust the process and pull it out at 35 minutes to check.

Layered chocolate cake with chocolate frosting on white plate, slice removed to reveal interior.

Why You'll Love This Recipe

  • The flavor is genuinely different: Dr. Pepper has 23 flavors in it — or so the legend goes — and whatever they are, they do something interesting with cocoa and warm spices. This doesn't taste like a standard chocolate cake. It's a little deeper, a little more complex, and people always ask what's in it. I've served this to guests who don't even like chocolate cake and watched them go back for seconds.

  • Seriously moist crumb: The combination of melted butter, buttermilk, and Dr. Pepper keeps this cake tender for days. I've had slices on day three that were still soft — which almost never happens with homemade cake. The soda's carbonation also helps the batter rise without needing a ton of leavening.

  • One bowl, one pan, done: You melt butter in a saucepan, mix your wet ingredients into it, then add the dry. That's the whole batter. No stand mixer, no electric hand mixer — I make this with a whisk and a wooden spoon. If you've got an hour from start to finish, you've got cake.

  • The cream cheese frosting is the best part: I know some people prefer a poured chocolate ganache on this style of cake, but this cream cheese frosting — with a little Dr. Pepper stirred in — is tangy and light in a way that cuts through the richness of the chocolate. It spreads beautifully over a cooled 9x13, and you can make it a day ahead and refrigerate it separately until you're ready.

  • It feeds a crowd without drama: A 9x13 pan cuts into 12-15 slices easily, which means this is my go-to for birthday parties and potlucks. There's no stacking, no leveling, no worrying about layers sliding. You just bake, cool, frost, and slice. I've brought this to school events twice now and come home with an empty pan both times.

Ingredients

  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 teaspoon baking soda
  • ½ teaspoon salt
  • ½ teaspoon ground cinnamon
  • ¼ teaspoon ground cloves
  • ½ cup unsalted butter
  • 1 cup Dr. Pepper soda (use a freshly opened can or bottle)
  • ½ cup buttermilk (or ½ cup milk + 1½ teaspoons lemon juice, left to sit 5 minutes)
  • 2 large eggs
  • 1 teaspoon vanilla extract
  • 1 cup chopped pecans, optional

For the Frosting:

  • ½ cup unsalted butter, softened
  • 4 oz cream cheese, softened
  • 1 teaspoon vanilla extract
  • 3 cups powdered sugar
  • ¼ cup Dr. Pepper soda

Directions

  1. Preheat and prep the pan: Heat your oven to 350°F (175°C). Grease a 9x13-inch baking pan and dust it lightly with flour, tapping out any excess. I skip parchment paper on this one — the greased flour gives a nice edge on the cake sides.
  2. Mix the dry ingredients: In a large bowl, whisk together the flour, sugar, baking soda, salt, cinnamon, and cloves until evenly combined. The cinnamon and cloves are small amounts but they matter — they're what make this cake taste like more than just a chocolate soda cake.
  3. Melt butter and combine wet ingredients: In a medium saucepan over low heat, melt the butter. Take the pan off the heat and let it cool for a minute or two, then stir in the Dr. Pepper, buttermilk, eggs, and vanilla. Don't add the eggs when the butter is screaming hot or you'll scramble them — I've done it, it's not fun.
  4. Combine wet and dry: Pour the wet mixture into the dry ingredients slowly, stirring as you go. Mix until just combined — you want no dry streaks, but don't overwork it. If you're adding pecans, fold them in now. The batter will be thinner than you expect. That's fine.
  5. Bake: Pour the batter into your prepared pan and bake for 35–40 minutes. Start checking at 35 minutes with a toothpick inserted into the center — it should come out clean or with just a couple of dry crumbs. Ovens vary, so don't walk away after 35 minutes.
  6. Cool completely: Let the cake cool in the pan on a wire rack for at least an hour before frosting. I know it's tempting to rush this step. I've rushed it. The frosting melted into a puddle and slid right off. An hour minimum, two hours if you can wait.
  7. Make the frosting: Beat the softened butter and cream cheese together until smooth — a hand mixer works fine here, but a wooden spoon and some patience will also get you there. Add the vanilla, then the powdered sugar a cup at a time, and finally stir in the Dr. Pepper soda. It should be thick but spreadable. If it's too thin, add a little more powdered sugar.
  8. Frost and serve: Spread the frosting over the cooled cake in an even layer. Slice into squares and serve directly from the pan.
Fork lifting a fudgy slice of Dr Pepper cake with chocolate frosting and crumb texture.

Tips for Success

  • Use a freshly opened Dr. Pepper: Flat soda doesn't give you the same lift. I tested this once with leftover Dr. Pepper that had been open overnight and the cake was noticeably denser. A fresh can takes 30 seconds to open — don't skip it.

  • Don't add extra flour if the batter looks thin: This was my mistake on attempt number two. The batter is genuinely thinner than a standard cake batter because of the soda and buttermilk. Adding more flour dried the cake out completely. Trust the recipe and pour it as-is.

  • Spoon and level your flour: This matters more than people realize. If you scoop your measuring cup directly into the flour bag, you pack in up to 20% more flour than the recipe intends. Spoon the flour into the cup and level it off with a knife. It only takes an extra 30 seconds and makes a real difference in the final texture.

  • Let your cream cheese and butter come to room temperature before making the frosting: Cold cream cheese doesn't beat smoothly — it leaves lumps in the frosting that you can't whisk out afterward. I pull both out of the fridge about an hour before I start. If I forget (which happens), I microwave the cream cheese in 10-second bursts until it's just barely soft.

  • Check doneness at 35 minutes, not 40: Every oven runs a little different, and this cake can go from perfectly done to slightly dry if you give it those extra 5 minutes it doesn't need. A toothpick test at 35 minutes has saved me twice. The cake is done when the toothpick comes out clean and the edges pull very slightly away from the pan.

Variations

  • Cherry Dr. Pepper version: Add 1 teaspoon of almond extract to the batter alongside the vanilla, and top the frosted cake with a handful of maraschino cherries. Zainab thinks it tastes like a chocolate-covered cherry, which is high praise from a 9-year-old. Cherry Dr. Pepper also works here if you can find it — it leans a little sweeter but it works.

  • Swap the soda: Root beer gives you a more vanilla-forward cake with a little anise note in the background. Cola (like Coke or Pepsi) gives you the most straightforward chocolate soda cake. Cream soda produces something lighter and almost vanilla-caramel. I've tried all three — they all work, Dr. Pepper just has the most character.

  • Cupcake version: Line a standard muffin tin with paper liners and fill each about two-thirds full. Bake at 350°F for 18–20 minutes, checking with a toothpick at the 18-minute mark. This makes about 24 cupcakes from one batch, which is handy for birthday parties where you need individual portions. The cream cheese frosting pipes beautifully onto cupcakes if you have a simple piping bag — or just use a zip-lock bag with one corner snipped off.

  • Add chocolate chips: Fold ½ cup of mini chocolate chips into the batter before baking. They distribute more evenly than regular chips and give you little pockets of melted chocolate throughout the cake. If I'm making this for adults, I sometimes use dark chocolate chips — the bitterness plays nicely against the sweet soda flavor.

  • Pecan and brown sugar topping: Instead of (or in addition to) the cream cheese frosting, mix ½ cup chopped pecans with 2 tablespoons of brown sugar and scatter it over the cake for the last 10 minutes of baking. It caramelizes into a crunchy praline-like top that's genuinely wonderful. This is the version I make when I want something a little more Southern-style — similar in spirit to what you'd see alongside something like a classic peach cobbler dessert spread.

Serving and Storage

Serving

This cake is good at room temperature and honestly even better slightly chilled. I serve it straight from the pan — sliced into squares, no plating required. It pairs well with a cup of coffee or tea for adults, and my kids like it with a cold glass of milk. If you're serving it at a party, a small scoop of vanilla ice cream alongside each slice isn't a bad idea at all. You can make the cake and frosting a day ahead and assemble the morning of — it holds up well in the fridge overnight. Just let it sit at room temperature for about 20 minutes before serving so the frosting softens slightly.

Storage

Cover the pan tightly with plastic wrap or foil and store in the refrigerator for up to 4 days. Because of the cream cheese frosting, I don't leave this out at room temperature for more than 2 hours — cream cheese doesn't do well sitting out in a warm kitchen. To freeze, wrap individual unfrosted cake squares tightly in plastic wrap and then foil, and freeze for up to 2 months. Thaw overnight in the fridge, then frost before serving. I don't recommend freezing already-frosted slices — the cream cheese frosting gets watery when it thaws.

Overhead view of chocolate frosting swirled in a white bowl for Dr. Pepper Cake recipe.

Frequently Asked Questions

Can I use a different soda if I don't have Dr. Pepper?

Yes, absolutely. Cola (Coke or Pepsi), root beer, and cream soda all work in this recipe with similar moisture and rise results. The flavor will shift — cola gives you a more classic chocolate soda cake, root beer adds a vanilla-anise note, and cream soda is sweeter and lighter. Dr. Pepper has the most complexity of the bunch because of its spice notes, but any of these will produce a good cake.

I don't have buttermilk — what can I use instead?

Make a quick substitute: pour 1½ teaspoons of lemon juice or white vinegar into a measuring cup, then fill it up to the ½ cup line with regular whole milk. Stir and let it sit for 5 minutes — it'll curdle slightly, and that's exactly what you want. It works almost identically to store-bought buttermilk in this recipe. I use this substitute probably half the time because I don't always have buttermilk on hand.

Can I make this cake ahead of time?

Yes — this is actually a great make-ahead cake. Bake the cake and make the frosting a day before you need it. Store the cooled unfrosted cake covered at room temperature overnight, keep the frosting in a covered bowl in the fridge, and then frost the cake the morning of your event. The cake stays moist easily overnight and the frosting takes only a few minutes to spread. Let the frosting sit at room temperature for 15 minutes before spreading so it loosens up a little.

Can I freeze this cake?

You can freeze the unfrosted cake for up to 2 months. Wrap individual squares (or the whole uncut slab) tightly in plastic wrap and then in foil, and freeze flat. Thaw overnight in the refrigerator, then frost just before serving. I don't recommend freezing the cake once it's already frosted with cream cheese frosting — it tends to get watery and separated when it thaws, and the texture is noticeably off.

Why does my frosting look runny?

Two likely causes: either the cream cheese or butter wasn't fully softened before beating, or you added the Dr. Pepper too quickly. If your frosting is too thin, add powdered sugar a tablespoon at a time until it thickens to a spreadable consistency. If it's lumpy, the cream cheese was too cold — keep beating and it will usually smooth out. In a worst case, a 10-second microwave blast on the bowl can help, but only do that if you've exhausted other options.

DR. PEPPER CAKE

Sana Umer
This moist and flavorful Dr. Pepper Cake combines the unique taste of Dr. Pepper soda with rich chocolate and spice notes. It’s a classic Southern dessert perfect for celebrations or any special occasion.
Print Recipe Pin Recipe
Prep Time 15 minutes mins
Cook Time 40 minutes mins
Total Time 55 minutes mins
Course Dessert
Cuisine American
Servings 12 Serves
Calories 380 kcal

Ingredients
  

  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 teaspoon baking soda
  • ½ teaspoon salt
  • ½ teaspoon ground cinnamon
  • ¼ teaspoon ground cloves
  • ½ cup unsalted butter
  • 1 cup Dr. Pepper soda
  • ½ cup buttermilk
  • 2 large eggs
  • 1 teaspoon vanilla extract
  • 1 cup chopped pecans optional

For the Frosting:

  • ½ cup unsalted butter softened
  • 4 ounces cream cheese softened
  • 1 teaspoon vanilla extract
  • 3 cups powdered sugar
  • ¼ cup Dr. Pepper soda

Instructions
 

Preheat Oven:

  • Preheat oven to 350°F (175°C). Grease and flour a 9x13-inch baking pan.

Mix Dry Ingredients:

  • In a large bowl, whisk together flour, sugar, baking soda, salt, cinnamon, and cloves.

Add Wet Ingredients:

  • In a saucepan, melt butter. Remove from heat and stir in Dr. Pepper, buttermilk, eggs, and vanilla.

Combine:

  • Slowly add wet ingredients to dry ingredients, mixing until just combined. Stir in pecans if using.

Bake:

  • Pour batter into prepared pan. Bake for 35–40 minutes or until a toothpick inserted into the center comes out clean.

Prepare Frosting:

  • Beat butter and cream cheese until smooth. Add vanilla, powdered sugar, and Dr. Pepper soda, beating until creamy.

Frost Cake:

  • Spread frosting over cooled cake before serving.

Notes

Make Ahead: Cake and frosting can be made a day ahead and refrigerated.
Customisations: Add chopped cherries or substitute nuts for pecans.
Serving Suggestions: Serve with whipped cream or vanilla ice cream.
Storage Tips: Store in an airtight container in the fridge for up to 4 days.
Keyword chocolate spice cake, Dr. Pepper cake, moist cake, soda cake

This is one of those recipes I keep coming back to because it genuinely surprises people. I grew up on Pakistani desserts — halwa, kheer, gulab jamun — and soda cake was not a thing in my mother's kitchen. But I've been cooking American and Southern-inspired baking for years now, and this Dr. Pepper Cake has quietly become one of my most-requested recipes. There's something about that combination of warm spices and soda that works in a way I didn't expect when I first made it on a whim.

What I like most about it practically is that it's a 9x13

  • TRADITIONAL BRITISH PIMM’S TRIFLE FOR SUMMER GARDEN PARTIES (SHOWSTOPPER DESSERT)
  • FOOLPROOF FIRST-TIMER'S BLUEBERRY COBBLER WITH BISQUICK
  • SMALL-BATCH STRAWBERRY SHORTCAKE FOR TWO EMPTY NESTERS
  • SINGLE-SERVE PEACH COBBLER MUG CAKE FOR ONE PERSON
10 shares
  • Facebook
  • X

About Sana Umer

I'm Sana Umer — the home cook behind every recipe on For Foodie Friends. I'm a Pakistani-American mom of two based in the US, and I've been cooking seriously for about a decade now, mostly because feeding a family every day is the fastest way to learn how to actually cook.

I'm completely self-taught. I learned by watching my mother in Pakistan, by burning a lot of food in my early years, and by paying attention to which recipes worked and which ones needed fixing. I don't specialize in just one cuisine — I cook the Pakistani dishes I grew up with, the American desserts my kids request, weeknight dinners, holiday roasts, and everything in between.

Every recipe is personally tested in my own kitchen, every word is written by me, and every photo is taken of food I actually made.

Comments

No Comments

Cancel reply

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

Recipe Rating




for-foodie-frends-logo-1

Hi, I'm Sana Umer — the home cook, recipe tester, and writer behind For Foodie Friends.

I'm a Pakistani-American mom based in the US. I learned to cook in two kitchens — my mother's in Pakistan, where I grew up watching whole spices bloom in oil, and my own kitchen now, where I cook for my husband and kids.

Every recipe on this site has been tested in my own kitchen, often more times than I'd like to admit, before it ever made it here. I cook a little bit of everything: the Pakistani comfort food I grew up with, the American desserts my kids beg for, weeknight dinners that need to come together fast, and the holiday spreads that take all day.

If a recipe is on this site, it earned its place. No ghostwriters, no AI shortcuts, no copy-paste from somewhere else — just real recipes from a real kitchen, written to actually work the first time you make them.

Welcome to my corner of the internet.

— Sana

More about me →

Popular

  • 23 BUDGET CHICKEN RECIPES FOR THE WHOLE WEEK
  • 25 PANTRY STAPLE RECIPES WHEN THE FRIDGE IS EMPTY
  • 31 CHEAP FAMILY DINNERS THAT FEED 4 FOR UNDER $15
  • 27 BUDGET-FRIENDLY MEAL PREP RECIPES FOR THE WHOLE WEEK
  • 29 DINNERS UNDER $5 PER SERVING (REAL RECIPES, REAL MATH)
  • 19 EASY TILAPIA RECIPES THAT DON'T TASTE BLAND
  • 23 SEAFOOD PASTA DISHES FOR COASTAL-INSPIRED DINNERS
  • 21 HEALTHY WHITE FISH RECIPES THE FAMILY WILL LOVE

Footer

↑ back to top

About

  • Privacy Policy
  • Disclaimer
  • Terms & Conditions
  • Editorial Principles
  • Corrections Policy
  • Affiliate Disclosure

Newsletter

  • Sign Up! for emails and updates

Contact

  • Contact

Resources

  • Kitchen Essentials
  • Pantry Essentials

As an Amazon Associate I earn from qualifying purchases.

Copyright © 2024 For Foodie Friends

  • Facebook
  • Pinterest