Moist Devil's Food Cake

title 1
Moist Devil's Food Cake
⏱️ cook time 2 hours 5 minutes
🍽️ servings 12
⚡ Difficulty medium

intro

Ultra-rich, moist, deeply chocolatey two-layer cake slathered in silky chocolate buttercream, a beloved American treat perfect for joyful celebrations.

Ingredients

All-purpose flour 240 grams (2 cups)
Dutch-processed unsweetened cocoa powder 130 grams (1 ¼ cups, divided for cake and buttercream)
Granulated white sugar 300 grams (1 ½ cups)
Baking soda 1 ½ teaspoons
Baking powder 1 teaspoon
Fine table salt 1 ¼ teaspoons, divided for cake and buttercream
Buttermilk, room temperature 240 milliliters (1 cup)
Neutral vegetable oil 120 milliliters (½ cup)
Large eggs, room temperature 2 units
Pure vanilla extract 3 teaspoons, divided for cake and buttercream
Hot brewed black coffee 240 milliliters (1 cup)
Unsalted butter, softened to room temperature 226 grams (1 cup / 2 standard sticks)
Powdered confectioners' sugar 360 grams (3 cups)
Heavy whipping cream 60 milliliters (¼ cup)

Steps

1

Prep pans and oven

Preheat your oven to 180°C (350°F) with a rack positioned in the center. Grease two 9-inch round cake pans with butter or nonstick spray, line the bottom of each with a circle of parchment paper, and lightly dust the sides with cocoa powder (instead of flour to avoid white residue on the dark cake layers).

Step 1
step1:Prep pans and oven
2

Whisk dry ingredients

In a large mixing bowl, combine 240g all-purpose flour, 80g of the Dutch-processed cocoa powder, 300g granulated sugar, 1 ½ tsp baking soda, 1 tsp baking powder, and 1 tsp of the fine salt. Whisk vigorously for 45 seconds to fully incorporate all ingredients and break up any cocoa lumps, ensuring even leavening distribution across the batter.

Step 2
step2:Whisk dry ingredients
3

Mix cake batter

Add 240ml room-temperature buttermilk, 120ml vegetable oil, 2 room-temperature large eggs, and 2 tsp of the vanilla extract to the dry ingredient bowl. Mix on medium speed with an electric mixer for 2 minutes, then slowly pour in 240ml hot brewed coffee, stirring on low speed for 30 seconds until the batter is smooth and thin (a very liquidy batter is normal for this recipe). Divide the batter evenly between the two prepared pans.

Step 3
step3:Mix cake batter
4

Bake and cool layers

Place the pans on the center oven rack and bake for 28-32 minutes at 180°C (350°F). Test for doneness by inserting a wooden toothpick into the center of each layer: it should come out with 2-3 moist crumbs attached, not coated in wet batter. Let the cakes cool in the pans on a wire rack for 10 minutes, then turn them out directly onto the rack to cool completely to room temperature (about 1 hour) before frosting; you can make the buttercream while the cakes cool to save time.

Step 4
step4:Bake and cool layers
5

Make chocolate buttercream

In a large bowl, beat 226g softened unsalted butter on medium-high speed for 3 minutes until pale and fluffy. Add the remaining 50g Dutch-processed cocoa powder and remaining ¼ tsp fine salt, beat on low for 30 seconds to combine, then gradually add 360g powdered sugar in 3 equal batches, alternating with splashes of 60ml heavy cream and the remaining 1 tsp vanilla extract. Beat on medium speed for 2 minutes until the frosting is smooth, silky, and easily spreadable.

Step 5
step5:Make chocolate buttercream
6

Assemble and frost cake

Place one fully cooled cake layer on a cake stand or serving plate, spread 1 cup (about 240ml) of the chocolate buttercream evenly over the top with an offset spatula, leaving a ¼-inch border if desired. Place the second cake layer flat-side up on top of the filling, then use the remaining buttercream to coat the top and sides of the cake in a smooth, even layer, creating gentle swirls with the spatula tip for a classic homemade look.

Step 6
step6:Assemble and frost cake

Tips

1.Always let cake layers cool completely to room temperature (about 1 hour) before frosting; warm cake will melt buttercream, causing it to slide and create a messy, uneven finish.
2.The hot brewed coffee in the batter blooms cocoa powder to amplify deep, rich chocolate flavor; if avoiding caffeine, substitute an equal amount of hot water for identical cake texture.
3.To reduce loose crumbs when frosting, wrap fully cooled cake layers in plastic wrap and chill them in the refrigerator for 2 hours before assembly for a smoother, professional-looking finish.

✨ You May Also Like

Desserts & Baking
🍜 Italy

Creamy, coffee-kissed classic Northern Italian no-bake dessert, with layers of rum-spiked mascarpone cream, soft ladyfingers, and a rich cocoa dusting.

⏱️ 4 hours 3Desserts & Baking ★ 4.7
Desserts & Baking
🍜 France

Flaky, shatteringly crisp, buttery French croissants with golden exteriors and soft, airy layered interiors, perfect for pairing with coffee for a special morning treat.

⏱️ 12 hours Desserts & Baking ★ 4.5
Desserts & Baking
🍜 United States

Warm, spiced baked apples topped with a fluffy golden biscuit crust, this cozy dessert pairs perfectly with vanilla ice cream for cool-weather comfort.

⏱️ 55 minuteDesserts & Baking ★ 4.6
Desserts & Baking
🍜 United States

A star-spangled classic American blueberry pie with buttery flaky crust and bright sweet-tart filling, perfect for summer patriotic gatherings.

⏱️ 1 hour 25Desserts & Baking ★ 4.7
Desserts & Baking
🍜 United States

A beloved no-bake regional Maine candy with a chewy coconut-potato center coated in rich dark chocolate, a New England holiday staple since the 1870s.

⏱️ 2 hours 3Desserts & Baking ★ 4.8
Desserts & Baking
🍜 France

Luxuriously creamy, floral frozen custard made with aromatic Tahitian vanilla beans, boasting a smooth, rich texture that melts slowly on the tongue.

⏱️ 3 hours 3Desserts & Baking ★ 4.5

Moist Devil's Food Cake:Frequently Asked Questions

1.What’s the difference between devil’s food cake and regular chocolate cake? ▾
Devil’s food cake is deeper, richer, and more moist than standard chocolate cake, which is what makes it such a beloved American celebration treat. This version uses a higher ratio of Dutch-processed unsweetened cocoa for deep, mellow chocolate flavor, plus a balanced leavener blend to create its signature tender, light crumb that pairs perfectly with silky chocolate buttercream.
2.Can I use natural unsweetened cocoa instead of Dutch-processed cocoa for this recipe? ▾
You can, but you’ll need a quick leavener tweak to get the right rise and texture. Dutch-processed cocoa is pH-neutral, so it’s calibrated to work with the recipe’s mix of baking soda and baking powder. If using natural cocoa, add 1/8 teaspoon extra baking soda and cut baking powder by 1/4 teaspoon to balance its natural acidity, and expect a slightly brighter chocolate flavor.
3.Why do I need both baking soda and baking powder in this cake? ▾
That dual leavener combo is non-negotiable for that perfect tender, evenly risen two-layer crumb. Baking soda creates early lift by reacting with recipe ingredients, while baking powder delivers a longer, steadier rise during baking so your layers don’t sink, turn dense, or rise unevenly—even if you take an extra minute folding in your dry ingredients.
4.How do I keep my cake layers from doming too much so they stack evenly? ▾
My go-to pro trick is to use damp fabric cake strips wrapped around the outside of your cake pans before pouring in batter. These keep the pan edges cooler as the cake bakes, so layers rise perfectly flat instead of forming a sharp center dome. First, confirm your oven is properly calibrated with an oven thermometer, since hot spots also cause lopsided, domed layers.
5.Can I make this cake a day ahead of my celebration without it drying out? ▾
Absolutely—this ultra-moist cake holds up beautifully when prepped ahead. Once layers are fully cooled, wrap them tightly in two layers of plastic wrap and refrigerate for up to 24 hours before frosting. Once slathered in chocolate buttercream, the finished cake will stay fresh for 3 days stored in a covered cake keeper at cool room temperature.
6.What happens if I overmix the all-purpose flour in the batter? ▾
Overmixing develops excess gluten in the all-purpose flour, which will turn your soft, tender cake tough, dense, and chewy with an uneven crumb. To avoid this, fold dry ingredients into the wet mix just until you no longer see obvious streaks of flour or cocoa. Small lumps in the batter are totally fine, and won’t ruin your final baked layers.
7.Why did my cake sink in the middle after I took it out of the oven? ▾
This usually comes down to one of three easy-to-fix issues: you underbaked the layers so the center wasn’t fully set, your baking soda or baking powder was expired and lost its leavening power, or you opened the oven door too early (before the 25-minute mark) letting cold air collapse the delicate risen structure. Test doneness with a toothpick—it should come out with 2-3 moist crumbs attached.
8.Can I swap the granulated white sugar for brown sugar in this recipe? ▾
Granulated white sugar is recommended for that classic, clean devil’s food cake flavor and light, tender crumb. You can swap up to 1/3 of the granulated sugar for light brown sugar for a subtle caramel note, but replacing all of it will make the cake overly dense, almost gummy, and will muffle the deep, rich chocolate flavor from the cocoa.
9.How do I get a smooth, crumb-free chocolate buttercream finish on my cake? ▾
Do a quick crumb coat first! After stacking your cooled layers, spread a very thin, even layer of buttercream over the entire top and sides of the cake, then pop it in the fridge for 15 minutes to set. That thin layer locks in all loose crumbs, so when you add your final thicker coat of buttercream, you’ll get a perfectly smooth, bakery-worthy finish with zero fuss.
10.Can I freeze this cake to enjoy later, or prep it weeks ahead of an event? ▾
Both frosted and unfrosted cake freeze beautifully! Unfrosted, tightly wrapped layers keep for up to 3 months in the freezer—thaw them in the fridge overnight before frosting. Individual frosted slices keep for 1 month frozen in airtight containers; just thaw them for 20 minutes at room temperature before serving for that fresh, moist texture.

Comments (11)

2 days ago

OMG this devil’s food cake is SO good! I made it for my son’s 10th birthday party last weekend and every single kid asked for a second slice. It stayed moist for 3 whole days even after I sliced it, total game changer compared to the dry box mix I usually grab. Already got 3 requests for the recipe from the other parents at the party!

yesterday

Wait how did you store it to keep it moist that long? I made a chocolate cake last month for a work potluck and it was crumbly and dry by the time we got to the event!

30 minutes ago

So happy it was a hit at the birthday party! Great question from @PotluckQueen92 too— to lock in moisture, let the cake layers cool completely before wrapping tightly in plastic wrap and storing in the fridge until you’re ready to frost. That trick keeps them perfectly moist for 2-3 days, even after slicing if you cover the cut edge with a bit of extra frosting!

30 minutes ago

This is marked medium difficulty and I’m super new to baking—should I actually attempt this? I’ve only ever made cookies from pre-made dough before, and I don’t want to mess up my anniversary dessert for my partner next week.

5 minutes ago

You’ve totally got this! The recipe has step-by-step notes for every tricky part (like not overmixing the batter and properly melting the chocolate) — just take your time, measure your ingredients accurately, and it’ll turn out great. If you run into any snags while baking, feel free to drop another question here and I’ll help!

1 week ago

Made this for our weekly family dinner last night and WOW. The deep chocolate flavor is unreal, not too sweet, and the crumb is so perfectly tender I almost didn’t believe I made it from scratch. Skipped the fancy coffee addition the recipe mentions because I didn’t have any on hand, and it was still incredible. 10/10 will make again.

3 days ago

I brought this to my office potluck earlier this week and people were literally scraping the cake plate clean. My only tweak is that I added a half teaspoon of extra espresso powder to bump up the chocolate flavor even more, and it was chef’s kiss. My coworker who swears he hates chocolate cake had two slices!

2 days ago

Oh I’ve been wondering if adding extra espresso would work! I love that deep, rich chocolate taste that espresso brings out, I’m definitely trying that hack when I make this this weekend.

yesterday

Love that espresso hack! Adding a little extra coffee or espresso powder never makes the cake taste like coffee—it just amplifies the chocolate so well, I’m glad that tweak worked out for your potluck!

yesterday

Wait, has anyone tried making this with a 1:1 gluten free flour blend? I have a celiac kiddo and I’m dying to make a good chocolate cake for his birthday that doesn’t taste like dry cardboard.

2 hours ago

I made it last week with Bob’s Red Mill 1:1 GF flour and added an extra tablespoon of sour cream to keep it moist, it turned out perfect! Nobody at my book club even realized it was gluten free, total win.

2 weeks ago

Made this for my roommate’s birthday in our tiny dorm kitchen, and it was so much easier than I thought it would be! We didn’t have round cake pans so I baked it in a 9x13 pan and slathered extra chocolate frosting on top, and our whole floor came by to grab a piece. Will absolutely be making this for every birthday from now on, no more overpriced grocery store cakes for us.

5 days ago

The cake itself was perfect, but my chocolate buttercream came out way too grainy when I made it? I followed the measurements exactly, not sure what I did wrong. Did I overbeat it maybe?

3 days ago

Sorry the frosting gave you trouble! Grainy buttercream usually happens if your powdered sugar isn’t sifted first, or if your butter was too cold when you started mixing. Next time, let your butter sit out until it’s room temperature (soft enough to indent with a finger) and sift your powdered sugar before adding it slowly, and it’ll come out super smooth!

1 week ago

Taste was great, but the cook time listed felt way off for me? I had my oven calibrated recently, and my layers were still totally jiggly in the middle at the 35 minute mark, ended up adding almost 12 extra minutes of bake time. Almost made me late to my kid’s soccer banquet when I thought I’d have time to let it cool before we left.

5 days ago

Oh that happened to me too! Turns out my oven runs 25 degrees cool even after I thought I calibrated it, I picked up a cheap oven thermometer to hang on the rack and now all my bake times line up perfectly with recipes.

3 days ago

Sorry the bake time didn’t line up for you! Oven temperature variations are super common even in new ovens, which is why I always recommend keeping an oven thermometer on hand to double check. If your layers need a little extra time, just cover the top loosely with foil halfway through to keep the edges from burning while the center sets!

5 days ago

I swapped the sour cream for full fat Greek yogurt because that’s all I had in the fridge, and it was still so moist and delicious! The chocolate flavor is so deep, it pairs perfectly with a cold glass of milk. My husband said it’s better than the devil’s food cake his grandma used to make, which is the highest praise possible in our house.

2 days ago

Oh thank you for sharing that swap! I never have sour cream on hand but I always have Greek yogurt, I was worried it would make the cake tangy in a bad way, I can’t wait to try this for my book club next week.

2 weeks ago

I’ve been baking devil’s food cake for over 40 years, and this is hands down the best recipe I’ve ever tested. The ratio of fat to flour is perfect, it doesn’t sink in the middle like so many other recipes I’ve tried over the years. I made it for my granddaughter’s high school graduation party and got so many compliments, I already printed out copies of the recipe to hand out to my friends at the senior center.

1 week ago

This makes me so excited to try it! I just became a grandma last month and I’m collecting go-to recipes to make for my grandkid as they grow up, this is going straight to the top of the list.

just now

Saw this recipe going around on my TikTok For You Page and decided to try it instead of my usual box mix, and it did NOT disappoint. I added a layer of salted caramel between the cake layers and topped it with chocolate shavings, and my prom date said it was the best cake he’s ever had. Definitely not as hard as I thought scratch baking would be, I’m hooked.