Devil's Food Cake

title 1
Devil's Food Cake
⏱️ cook time 2 hours 15 minutes (includes cooling and setting time)
🍽️ servings 8
⚡ Difficulty medium

intro

Rich, deeply fudgy chocolate layer cake with silky chocolate buttercream, a nostalgic American dessert beloved by chocolate lovers for its moist, tender crumb.

Ingredients

All-purpose flour 220 grams (1 ¾ cups)
Dutch-processed unsweetened cocoa powder 110 grams (1 ¼ cups, divided)
Granulated sugar 300 grams (1 ½ cups)
Baking soda 1 ½ teaspoons
Baking powder 1 teaspoon
Fine sea salt 1 ¼ teaspoons (divided)
Buttermilk, room temperature 240 ml (1 cup)
Vegetable oil 120 ml (½ cup)
Large eggs, room temperature 2 (about 100 grams)
Pure vanilla extract 3 teaspoons (divided)
Hot brewed coffee 240 ml (1 cup, ~95°C/200°F)
Unsalted butter, softened to room temperature 226 grams (1 cup / 2 sticks)
Powdered sugar 360 grams (3 cups)
Heavy whipping cream 60 ml (¼ cup)

Steps

1

Prep Oven and Pans

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

Step 1
step1:Prep Oven and Pans
2

Whisk Dry Ingredients

In a large mixing bowl, combine 220g all-purpose flour, 65g (¾ cup) of the Dutch-processed cocoa powder, 300g granulated sugar, 1 ½ teaspoons baking soda, 1 teaspoon baking powder, and 1 teaspoon of the fine sea salt. Whisk vigorously for 30 seconds to fully combine and break up any cocoa lumps, ensuring leavening is evenly distributed.

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 teaspoons of the vanilla extract to the dry ingredient bowl. Mix with an electric hand mixer on low speed for 1 minute, then slowly stream in 240ml hot (just off boil, ~95°C/200°F) brewed coffee, mixing on low for an additional 30 seconds until the batter is smooth and thin; the thin consistency is normal and creates a moist crumb.

Step 3
step3:Mix Cake Batter
4

Bake Cake Layers

Divide the batter evenly between the two prepared pans (roughly 480g of batter per pan). Bake for 28-32 minutes at 180°C (350°F), until a toothpick inserted into the center of each cake comes out with 2-3 moist crumbs attached (not coated in wet batter, not completely clean). Do not overbake, as this will result in a dry, crumbly cake.

Step 4
step4:Bake Cake Layers
5

Cool Cake Layers

Let the cakes cool in their pans on a wire rack for 10 minutes at room temperature, then run a thin offset spatula around the inner edge of each pan to loosen the cake, invert the layers onto the wire rack, and peel off the parchment paper circles. Allow layers to cool completely to 21°C (70°F) for 1 full hour before frosting, as warm cake will melt buttercream on contact.

Step 5
step5:Cool Cake Layers
6

Make Chocolate Buttercream

In a large bowl, beat 226g softened room-temperature unsalted butter with an electric mixer on medium speed for 3 minutes until pale and fluffy. Add 360g powdered sugar, the remaining 45g (½ cup) cocoa powder, 60ml heavy cream, the remaining 1 teaspoon vanilla extract, and remaining ¼ teaspoon fine sea salt. Mix on low speed for 1 minute to incorporate, then increase to medium-high and beat for 2 more minutes until light, smooth, and spreadable.

Step 6
step6:Make Chocolate Buttercream
7

Assemble and Frost Cake

Place one fully cooled cake layer on a cake stand or serving plate, spread 240ml (1 cup) of the chocolate buttercream evenly across the top in a 1cm (½-inch) thick filling layer. Place the second cake layer on top, centered, then use the remaining buttercream to frost the top and sides of the cake in a smooth, even coat. Chill the assembled cake in the refrigerator for 15 minutes to set the frosting before slicing and serving.

Step 7
step7:Assemble and Frost Cake

Tips

1.Avoid overbaking the layers: a toothpick inserted in the center should have 2-3 moist crumbs attached, not come out completely clean, as the cake continues to set while cooling and overbaking ruins its signature moist texture.
2.Use room temperature eggs, buttermilk, and butter: cold ingredients fail to emulsify smoothly, leading to a dense, uneven crumb in the cake and lumpy, hard-to-spread buttercream.
3.Hot coffee amplifies the deep, rich chocolate flavor without adding a prominent coffee taste; substitute equal amounts of hot water if you prefer to make the cake caffeine-free.

✨ 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

Devil's Food Cake:Frequently Asked Questions

1.Why does this recipe call for Dutch-processed unsweetened cocoa instead of natural cocoa? ▾
Dutch-processed cocoa is treated to reduce sharp natural acidity, delivering the smooth, deep, rich fudgy flavor that is classic to devil’s food cake. Since the recipe uses both baking soda and baking powder for leavening, it perfectly balances batter pH to support a tender, even crumb, without the flat, slightly soapy off-flavor you get from mismatched cocoa and leavener.
2.My devil’s food cake always turns out dry instead of moist—what am I doing wrong? ▾
Dry cake almost always stems from two common missteps: overmeasuring your flour (spoon flour into dry measuring cups and level with a knife, never scoop straight from the bag, which packs it tight) or overbaking. Start checking doneness 5 minutes before the listed bake time; a toothpick inserted in the center should have 2-3 moist fudgy crumbs attached, not come out totally clean.
3.Can I bake the cake layers ahead of time for an event? ▾
Absolutely! Let baked layers cool completely to room temperature first, then wrap them tightly in two layers of plastic wrap followed by a layer of aluminum foil. They’ll keep in the fridge for up to 3 days, or the freezer for up to 3 months. Slightly frozen layers are actually easier to frost without pulling loose crumbs into your buttercream, so no full thaw is needed.
4.Why did my cake layers sink in the middle after baking? ▾
Sunken centers almost always come down to three easy-to-fix missteps: opening the oven door too early (wait until layers are 80% baked, about 25 minutes in for 9-inch pans, to peek), overmixing batter that deflates delicate air bubbles, or using expired leavening that can’t support crumb structure as it rises. Test leaveners by dropping a pinch into hot water to confirm they fizz before using.
5.Can I use a gluten-free flour blend instead of all-purpose flour for this recipe? ▾
You absolutely can, for a delicious, reliable gluten-free result. Swap the all-purpose flour 1:1 for a high-quality gluten-free all-purpose blend that includes xanthan gum to mimic wheat’s soft structure. Add 1 extra tablespoon of neutral vegetable oil to the batter to match the original’s moist crumb, since gluten-free flours tend to absorb more moisture than standard wheat flour.

Comments (8)

1 week ago

OMG this devil's food cake was the star of our Sunday family dinner! I baked it for my son's birthday and all the kids were begging for second slices. It was so moist even after I left it covered on the counter overnight — total game changer compared to the box mix I usually use. Worth every minute of the 2+ hour time commitment, trust me!

5 days ago

Did you use the suggested frosting too? I’m making this for my office potluck next week and don’t know if I should pair it with the chocolate buttercream or cream cheese frosting!

3 days ago

So glad it was a birthday hit! The chocolate buttercream pairs perfectly with the rich devil's food crumb, but cream cheese frosting works great too if you prefer a little tang to cut the sweetness. Just make sure your cake layers are fully cooled before frosting to avoid sliding!

3 days ago

Took a stab at this for my partner's anniversary dessert and wow, SO good. I’m usually terrible at layer cakes — mine always come out dry or lopsided — but the tip about lining the pans with parchment and letting the batter rest before baking made all the difference. Only tiny gripe is I wish the cooling time guidance was a little more specific for people with super warm kitchens, mine took a bit longer to set than expected.

2 days ago

Happy anniversary! Great note about warm kitchens — if your space is over 75°F, you can pop the cooled layers in the fridge for 20 minutes before frosting to help them set faster, and it makes crumb coating way easier too. We’ll add that tip to the recipe card soon!

2 days ago

Made this last minute for a neighbor’s potluck and got so many recipe requests! It’s rich without being cloying, and the crumb is perfectly tender. I added a tiny pinch of espresso powder to the batter like I do with all chocolate baked goods and it amped up the chocolate flavor so much, highly recommend that hack.

5 days ago

Wait, is there a trick to getting the cakes to not stick to the pan? I greased and floured like the recipe said but half of my first layer stuck when I went to flip it out 😭 I patched it up with extra frosting and no one complained, but I want to get it right next time!

3 days ago

I had the same issue the first time! Switched to parchment rounds cut to fit the bottom of the pans and didn’t have a single stick on my second bake. Game changer for messy bakers like me.

2 days ago

So sorry about the stuck layer! Parchment rounds on the pan bottom are 100% the most reliable trick, even if you grease and flour well. If you don’t have parchment, a light coating of cocoa powder instead of flour works extra well for chocolate cakes too, and it won’t leave that white flour residue on the outside.

2 weeks ago

My kids loved it! I cut the sugar by a quarter cup because I don’t love super sweet desserts and it was still perfectly chocolatey. Baked it in a 9x13 pan instead of two round layers to make it easier for school snack time and it baked up perfectly in 35 minutes, for anyone who wants to skip the layer cake hassle.

1 week ago

Oh thank you for the 9x13 tip! I was just about to ask if this would work for sheet pan style for weekly meal prep snacks, you just saved me a test run. How long did you let it cool in the pan before slicing?

yesterday

Hands down the best devil's food cake recipe I’ve ever tried. I’ve made so many dry, bland versions over the years and this one checks every box: deep chocolate flavor, moist for days, sturdy enough to stack but still melts in your mouth. Made it for my book club and everyone thought I bought it from a fancy bakery, little do they know I’m just a guy who follows directions well lmao.

30 minutes ago

Pro tip for anyone short on time: I made the cake layers two days ahead, wrapped them tight in plastic wrap, and stuck them in the freezer until I was ready to frost. They were even moister than when I baked them fresh the last time I made this recipe! Total lifesaver when you’re prepping for a big party.

5 minutes ago

Great make-ahead tip! Wrapping cooled layers tightly and freezing for up to a month works beautifully for this recipe, and it cuts down on day-of prep so much. Just make sure to frost while the layers are still slightly frozen for the easiest crumb coat ever.

2 hours ago

I made this cake last month for my roommate’s birthday and it was incredible — easily the best chocolate cake I’ve ever had! Has anyone tried making it with a 1:1 gluten free flour blend? I’m hosting a birthday party for my niece who has celiac and this looks too good not to serve, I just don’t want it to turn out gummy or dense.

30 minutes ago

I used my favorite 1:1 GF blend (the one with xanthan gum already in it) last month and it turned out perfect! No one at my backyard cookout could tell it was gluten free, even my super picky teen.

just now

So glad it worked with GF flour! We recommend using a 1:1 baking blend that includes xanthan gum for the best texture, and adding an extra tablespoon of milk to the batter if it feels too thick. It’ll be just as moist as the original version!