Devil's Food Cake

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.8
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.7
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.7
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.8
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.9
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.6

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 (11)

2 days ago

OMG this devil’s food cake is SO good! I made it for my kid’s birthday potluck at school and every single parent asked for the recipe. It stayed moist for 3 whole days in the cake carrier, total game changer compared to the dry box mix I usually grab. 10/10 will make again for our Sunday family dinner next month!

yesterday

So glad it was a hit at the potluck! If you want an extra fudgy kick for your next family dinner, try adding a handful of mini chocolate chips to the batter right before baking — it works so well with the rich cocoa flavor.

1 week ago

Tasted absolutely incredible, but I definitely underbaked my first round because I forgot the cooling time is factored into the total cook time listed! Oops. Second batch came out perfect, super rich and moist, paired great with a cream cheese frosting I had on hand. My husband ate two slices before I even got it fully frosted.

5 days ago

Oh I did the exact same thing my first try! I set a timer for just the bake time and was panicking when it looked jiggly, turns out I skipped over the note that total time includes cooling lol. Worth the extra wait though, right?

3 days ago

So glad your second batch turned out! Pro tip for next time: start checking the cake for doneness at the 35 minute bake mark with a toothpick — a few moist crumbs stuck to the pick means it’s ready to come out and cool, no dry slices guaranteed!

3 days ago

Made this for my book club meetup last weekend and everyone raved! I topped it with the chocolate ganache recipe linked on the site and it was pure decadence. Even my friend who swears she doesn’t like chocolate cake went back for a second slice. No notes, this is going in my permanent recipe rotation.

5 minutes ago

As someone who’s still pretty new to baking, I was nervous this would be too hard since it’s marked medium difficulty, but the steps were super straightforward! I made it for my roommate’s birthday and he thought I bought it from the fancy bakery downtown. Only change I made was using coffee instead of hot water to amp up the chocolate flavor, chef’s kiss.

just now

The coffee swap is such a good call! I do that with all my chocolate baked goods now and you can’t even taste the coffee, it just makes the cocoa taste so much deeper. Gonna try this recipe this weekend for my floor’s potluck!

2 weeks ago

Flavor is 10/10 but I had to adjust a ton for my 6,000ft elevation — first batch sank right in the middle! I ended up adding an extra 2 tbsp of flour, knocking the baking soda down by 1/4 tsp, and baking 10 minutes longer and it turned out fine. Wish there were high altitude notes included for those of us up in the mountains!

1 week ago

Thanks so much for the honest feedback! We’re actually working on adding high altitude adjustment notes to all our cake recipes as we speak, and your tips are super helpful for other bakers reading too. So glad you were able to tweak it to get a great final result!

3 days ago

Thank you for posting your tweaks! I live at 7,000ft and was just about to ask if anyone adjusted for altitude, this saves me so much guesswork when I make this for my son’s graduation party next week.

yesterday

SO rich, SO moist, exactly what a devil’s food cake should be! I’ve tried half a dozen devil’s food recipes online over the years and this is the first one that doesn’t come out dry or bland. The secret with the brown sugar in the batter? Total game changer, I’ll never skip that again.

2 hours ago

Made this with my 8 year old daughter for our Father’s Day family cookout and we had a blast making it together! She loved helping measure the cocoa and stir the batter, and the final cake was a huge hit with the whole crew. Only thing is we ran out of powdered sugar for frosting so we topped it with whipped cream and fresh berries and it still slapped.

30 minutes ago

Love that you got to bake this with your daughter — those are the best kitchen memories! Whipped cream and berries is such a perfect light topping to balance the rich chocolate, that sounds delicious.

5 days ago

I was worried a from-scratch cake would be too much work for weekly treat prep, but this came together faster than I expected! I portioned slices into individual containers and they held up great all week for after-dinner desserts. Only knock is it’s a little too rich for my taste to eat every single night, so I’ll save it for special treats going forward. Perfectly moist even on day 5, I was shocked.

1 week ago

Took this to my office potluck last week and it was gone in 10 minutes flat! People were hovering by the dessert table waiting to cut a slice. I used a salted caramel buttercream between the layers and the sweet-salty combo with the deep chocolate cake was unreal. Will absolutely be making this for every office event from now on.

5 days ago

Wait the salted caramel buttercream combo sounds insane! Do you have a go-to recipe for that? I’m making this cake for our team happy hour next week and that would take it over the top.

30 minutes ago

Quick question — I’m planning to make this for a birthday party on Saturday and want to get as much prep done on Friday as possible so I’m not rushing around when guests arrive. Can I bake the layers a day ahead and store them in the fridge? Also, does this make two 9-inch layers like most devil’s food cakes? I’ve heard nothing but amazing things about this recipe so I’m super excited to try it!

5 minutes ago

Great questions! Yes, this recipe makes two perfect 9-inch layers, and you can absolutely bake them a day ahead — just wrap each cooled layer tightly in plastic wrap and store them in the fridge overnight before frosting. It actually helps the flavors meld even more!

just now

I did this exact thing for my sister’s birthday last month! I baked the layers Friday, frosted them Saturday morning, and it was so moist nobody could tell I made it ahead. Saved me so much stress day of, highly recommend.

3 days ago

I made this dairy free for my son who has a milk allergy by swapping the butter for vegan stick butter and using dairy free milk, and it turned out perfectly! I was worried the texture would be off but it was just as moist and rich as the regular devil’s food cake I remember growing up. My kid loved it so much he asked for it for his end-of-soccer-season team party.

2 days ago

Thank you so much for sharing the dairy free swap! My daughter has a dairy allergy and I’ve been struggling to find a good from-scratch chocolate cake recipe that doesn’t come out crumbly or weird. Can’t wait to try this for her birthday next month!

yesterday

So happy the dairy free swap worked out for you! We love hearing about substitution wins that make the recipe accessible for more folks — we’ll be sure to test your vegan butter/dairy free milk swap for our next recipe update to officially add it to the notes!