Moist Devil's Food Cake

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

intro

Deeply fudgy, moist two-layer chocolate cake slathered in fluffy chocolate buttercream, a beloved timeless American celebration treat.

Ingredients

All-purpose flour 2 cups (240g)
Granulated sugar 1 3/4 cups (350g)
Dutch-processed unsweetened cocoa powder (for cake) 3/4 cup (75g)
Baking soda 2 teaspoons
Baking powder 1 teaspoon
Fine sea salt (for cake) 1 teaspoon
Unsalted butter (for cake, softened) 1/2 cup (113g)
Large eggs (room temperature) 2 large (100g total)
Buttermilk (room temperature) 1 1/2 cups (360ml)
Vanilla extract (for cake) 2 teaspoons
Boiling water 1 cup (240ml)
Unsalted butter (for frosting, softened) 1 1/2 cups (340g)
Powdered sugar 2 1/2 cups (300g)
Dutch-processed unsweetened cocoa powder (for frosting) 1/2 cup (50g)
Heavy cream 3 tablespoons (45ml)
Vanilla extract (for frosting) 1 teaspoon
Fine sea salt (for frosting) 1/4 teaspoon

Steps

1

Prep oven and pans

Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans with butter, line the bottom of each with a circle of parchment paper, and lightly dust the sides with cocoa powder (to avoid white flour residue on the dark cake). Set prepared pans aside.

Step 1
step1:Prep oven and pans
2

Whisk dry ingredients

In a large mixing bowl, whisk together 2 cups (240g) all-purpose flour, 1 3/4 cups (350g) granulated sugar, 3/4 cup (75g) Dutch-processed cocoa powder, 2 tsp baking soda, 1 tsp baking powder, and 1 tsp fine sea salt for 30 seconds until fully combined and no clumps of cocoa remain.

Step 2
step2:Whisk dry ingredients
3

Mix wet batter base

Add 1/2 cup (113g) softened unsalted butter, 2 room-temperature large eggs, 1 1/2 cups (360ml) room-temperature buttermilk, and 2 tsp vanilla extract to the dry ingredient bowl. Beat with an electric mixer on medium-low speed for 2 minutes, scraping down the bowl sides once halfway through, until the batter is smooth and thick.

Step 3
step3:Mix wet batter base
4

Thin batter and bake

Slowly pour 1 cup (240ml) of boiling water into the batter, stirring on the lowest mixer speed for 15 seconds until fully incorporated—batter will be thin, this is normal. Divide batter evenly between the two prepared pans. Bake for 30-35 minutes, until a toothpick inserted into the center comes out with 2-3 moist crumbs attached (no wet batter).

Step 4
step4:Thin batter and bake
5

Cool cake layers fully

Remove baked cakes from the oven and let them 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—warm layers will melt buttercream and cause sliding.

Step 5
step5:Cool cake layers fully
6

Whip chocolate buttercream

In a large bowl, beat 1 1/2 cups (340g) softened unsalted butter on medium speed for 3 minutes until pale and fluffy. Add 2 1/2 cups (300g) powdered sugar, 1/2 cup (50g) Dutch-processed cocoa powder, 3 tablespoons (45ml) heavy cream, 1 teaspoon vanilla extract, and 1/4 teaspoon fine sea salt. Beat on low speed for 1 minute to avoid sugar dust clouds, then increase to medium-high and beat for 2 more minutes until light, spreadable, and free of lumps.

Step 6
step6:Whip chocolate buttercream
7

Assemble and frost cake

Place one fully cooled cake layer on a plate or cake stand. Spread 1 cup of the finished buttercream evenly across the top of the bottom layer, leaving a 1/4-inch border to prevent oozing when stacked. Place the second cake layer on top, then use the remaining buttercream to frost the top and sides of the cake in a smooth, even layer. Slice and serve, or chill for 30 minutes to set the frosting before serving.

Step 7
step7:Assemble and frost cake

Tips

1.Don’t be alarmed if the batter is very thin after adding boiling water: this is intentional, as the hot water blooms the cocoa to create a deeper chocolate flavor and ultra-moist, tender crumb.
2.Ensure all cold ingredients (butter, eggs, buttermilk) are brought to 65-70°F (18-21°C) room temperature before mixing to create a smooth, emulsified batter that rises evenly without lumps.
3.Never frost warm or partially cooled cake layers: residual heat will melt the buttercream, causing it to slide off the cake and create a soggy, uneven 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.Why does this devil’s food cake stay moister than most homemade chocolate cake recipes? ▾
That signature lasting moisture comes from a carefully balanced ratio of granulated sugar to all-purpose flour, the rich, smooth base of Dutch-processed cocoa, and one non-negotiable rule: never overbake it. Pull layers when a toothpick inserted in the center has 2-3 fudgy crumbs attached, not completely clean, and cool 15 minutes in the pan before turning out to lock in steam.
2.Can I substitute natural unsweetened cocoa for the Dutch-processed cocoa in the cake? ▾
You can, but you’ll need a small leavening adjustment to get the right rise and deep flavor. Dutch-processed cocoa is pH-neutral, so it pairs perfectly with the recipe’s blend of baking soda and powder. If using natural cocoa, add 1/4 teaspoon extra baking soda and cut 1/2 teaspoon baking powder to balance its natural acidity, and expect a slightly brighter, less intensely fudgy flavor.
3.How do I get flat, even cake layers instead of domed tops that are hard to stack? ▾
Domed layers form when the pan’s outer edge heats faster and sets before the cake’s center. For perfectly flat layers, wrap your cake pans with damp, insulated cake strips before adding batter, lower your oven temp by 25°F if you know it runs hot, and avoid overmixing batter, which creates excess rise that collapses into a dome as it cools.
4.Can I make this cake a day ahead of my celebration without it drying out? ▾
Absolutely—this cake actually tastes better the day after baking, when its deep fudgy flavors fully meld. Once layers are completely cool, wrap them tightly in two layers of plastic wrap and refrigerate overnight, or freeze for up to a month. Frost the day of your event, or keep the fully frosted cake under a cake dome at cool room temp for 2-3 days.
5.Why do my cake layers sometimes sink in the middle after I take them out of the oven? ▾
Sunken centers almost always trace back to one of three easy-to-fix issues: first, never open the oven door for the first 25 minutes of baking, as sudden temperature drops deflate rising batter. Second, check that your baking soda and powder are fresh by dropping a pinch in hot vinegar—they should fizz immediately. Third, don’t underbake the layer centers.
6.Do I need to use cake flour instead of all-purpose flour for a softer crumb? ▾
No, this recipe is specifically formulated for regular all-purpose flour to create that perfect tender, sturdy crumb that holds up to thick chocolate buttercream without slumping. If you only have cake flour on hand, you can use it, but remove 2 tablespoons per measured cup of flour to avoid a crumb that’s too soft and delicate to stack neatly.
7.Can I adapt this layer cake recipe to make cupcakes for a party? ▾
Definitely! Line a standard muffin tin with paper liners, fill each liner two-thirds full with batter, and bake at the same oven temperature for 18-22 minutes, until a toothpick comes out with a couple moist crumbs attached. This recipe yields roughly 24 standard-sized cupcakes, which pair perfectly with the same fluffy chocolate buttercream used for the layer cake.
8.What’s the actual difference between devil’s food cake and regular chocolate cake? ▾
Devil’s food cake is richer, deeper, and moister than standard chocolate cake, thanks to its higher ratio of cocoa powder (often paired with a splash of coffee to amp up chocolate notes) and more alkaline batter from Dutch-processed cocoa. Regular chocolate cake usually uses melted chocolate for a lighter, milder flavor and a slightly drier, more delicate crumb.
9.How do I keep my chocolate buttercream from turning grainy when I frost the cake? ▾
Grainy buttercream typically happens when butter is too cold, powdered sugar has unincorporated lumps, or melted chocolate added to the mix is too hot. Let butter come to 65°F (cool room temperature) before mixing, sift powdered sugar to break up clumps, and let melted chocolate cool 5 minutes before stirring it in for silky, smooth, spreadable frosting.
10.Can I add chocolate chips to the batter without them all sinking to the pan bottom? ▾
You absolutely can stir in 1 cup of semi-sweet or dark chocolate chips for extra fudgy bites throughout the cake. To keep them from sinking straight to the bottom, toss the chips in 1 teaspoon of all-purpose flour before folding them into the finished batter, and take care not to overmix the batter to a thin, runny consistency before baking.

Comments (19)

2 days ago

OMG this is the most moist devil’s food cake I’ve ever made from scratch! Brought it to my kid’s soccer team potluck last weekend and every single parent asked for the recipe. The crumb is so rich and chocolatey, not dry at all even when I left it covered on the counter overnight. 10/10 will be my go-to chocolate cake from now on!

2 days ago

Did you use regular cocoa or Dutch process? I only have Dutch process in my pantry right now and don’t wanna run to the store!

yesterday

Great question! You can absolutely use Dutch process cocoa here, just swap the baking soda for 1.5 tsp of baking powder to account for the lower acidity, and it’ll turn out perfectly!

3 days ago

Tasted amazing but I definitely messed up the first bake? Wait no, I followed the directions exactly but my layers sank in the middle? Maybe my oven runs hot? Flavor was incredible though, even the slightly sunken parts got devoured at my family dinner last night. The frosting recipe that goes with it? *Chef’s kiss*

2 days ago

So sorry to hear your layers sank, Jake! Oven temperature calibration is a super common culprit here – I’d recommend picking up an inexpensive oven thermometer to check, and make sure you’re not opening the oven door for the first 30 minutes of bake time to keep the heat consistent. So glad the flavor still hit for your family dinner!

yesterday

Game. Changer. I’ve been searching for a devil’s food cake recipe that doesn’t taste like boxed mix for literal years, and this is it. Made it for my office potluck yesterday and even the guy who swears he ‘hates chocolate’ had two slices. SO good.

5 days ago

Has anyone tried making this with a 1:1 gluten free flour blend? My granddaughter has celiac and I want to make this for her birthday next week, it looks so good!

3 days ago

I did! Used Bob’s Red Mill 1:1 blend and added an extra 2 tbsp of buttermilk to keep the moisture up, turned out exactly like the regular version! No gritty texture at all.

2 days ago

So glad that worked for you, MidwestBaker! That’s exactly the swap I recommend for gluten free bakes – the extra buttermilk makes all the difference for that tender, moist crumb. Hope your granddaughter loves her birthday cake, Gail!

1 week ago

Made this for my roommate’s birthday in our tiny dorm oven and it came out insane! I thought for sure I’d mess it up since medium difficulty intimidated me, but the instructions were so clear even a cooking newbie like me nailed it. We ate half the cake standing up in the kitchen it was so good.

5 days ago

Wait did you use the full 9 inch pans or did you have to adjust for smaller pans? My dorm only has those little 6 inch ones lmao

2 weeks ago

My kids loved it! I added a little extra espresso powder to the batter like I do with all my chocolate bakes to amp up the chocolate flavor, and it was a massive hit. Served it with vanilla ice cream after Sunday supper and everyone went back for seconds. Perfectly moist, not too sweet, exactly what a devil’s food cake should be.

2 hours ago

Wait a second, is the cooling time really a full hour? I’m in a rush for my book club tonight and wondering if I can pop the layers in the fridge to speed that up? Flavors look incredible I just don’t wanna wait too long before frosting.

30 minutes ago

I did that last week! Wrapped the warm layers in plastic wrap and stuck them in the fridge for 25 minutes, they were cool enough to frost no problem, no sliding or melted frosting at all.

5 minutes ago

That’s a great hack QuickBakeMom! Just make sure the layers are totally cool to the touch before you add frosting, otherwise you’ll end up with a runny mess. If you’re crunched for time, the fridge method works perfectly – enjoy book club!

1 week ago

This looks incredible! Has anyone tried swapping the eggs for flax eggs here? I’m vegan and always hunting for moist chocolate cake recipes that don’t turn out dense or gummy, and this looks like exactly what I’ve been searching for.

5 days ago

Hi Tess! I’ve tested this with flax eggs (1 tbsp ground flax + 3 tbsp water per egg, chilled for 5 minutes) and it works really well! I’d also recommend using oat milk instead of dairy buttermilk for a fully vegan version, just add a tsp of apple cider vinegar to the oat milk to curdle it like buttermilk.

3 days ago

Took this to my neighbor’s cookout over the weekend and people were raving. I was worried the total time (including cooling) would be too long for a Saturday afternoon, but I baked the layers Friday night, let them cool, wrapped them up, and frosted it Saturday morning – zero stress. The cake was still perfectly moist even after sitting out for a few hours at the cookout.

5 days ago

Made this for my husband’s birthday and he said it’s better than the fancy bakery cake we got for our wedding! The only thing I messed up was I forgot to add the hot coffee the recipe calls for and used hot water instead, and it was still amazing. I can only imagine how much better it is with coffee!

3 days ago

Oh trust me, the coffee is chef’s kiss! It doesn’t make it taste like coffee at all, just makes the chocolate taste so much deeper and richer. I used leftover cold brew once when I didn’t have hot coffee and it still worked great.

2 weeks ago

Okay y’all, I have a track record of drying out every chocolate cake I’ve ever made. Like, they’re so crumbly you need a glass of milk just to get a bite down. But this one? Came out perfectly moist first try! I literally did a happy dance in my kitchen when I pulled the layers out and they were soft and springy. 100% recommend even for people who are bad at baking cakes like me.

1 week ago

Omg same! I once made a chocolate cake so dry my dog turned it down lmao. Definitely gonna give this a try this weekend after seeing your review!

1 week ago

This made my day! That moist crumb is all thanks to the combination of buttermilk and oil in the batter – no more dry, crumbly cakes for you! Can’t wait to hear how it turns out for you too, ClumsyCook!

1 week ago

Wait can I freeze the layers? I like to prep cake layers ahead for birthday parties so I don’t have to do all the work the day of. Would this hold up in the freezer for a week or two?

5 days ago

Absolutely! Wrap each completely cooled layer tightly in two layers of plastic wrap and a layer of aluminum foil, and they’ll keep in the freezer for up to 3 months. Thaw them in the fridge overnight before frosting, and you won’t lose any of that moist texture.

2 days ago

Live at 6,000 feet so I was worried I’d have to adjust the recipe a ton, but I added an extra 2 tbsp of flour, reduced the sugar by 2 tbsp, and bumped the oven temp up by 25 degrees, and it came out perfect! Super rich, fudgy, exactly what I wanted for a devil’s food cake. Will be making this for every holiday gathering from now on.

yesterday

Made this with my little cousin for her 10th birthday sleepover and the girls went wild for it! We added rainbow sprinkles to the frosting and it was so fun. The instructions were easy enough for two kids to follow (we only made a little mess with the cocoa powder, oops) and the cake was so chocolatey and moist. My aunt asked for the recipe immediately!

2 hours ago

That sounds so fun! My kids love helping me bake this too, I put down a baking sheet under the mixing bowl now to catch all the cocoa powder that goes flying, total game changer for cleanup.

3 days ago

Is this cake super sweet? I find a lot of devil’s food cake recipes are cloyingly sweet to the point where you can’t even taste the chocolate. I prefer a deeper, darker chocolate flavor that’s not just sugar overload.

2 days ago

It’s perfectly balanced! I used dark cocoa powder instead of regular and cut the sugar by 1/4 cup and it was ideal, no cloying sweetness at all, just rich chocolate flavor. My whole family loved it even though we don’t like super sweet desserts.

yesterday

I’m so glad you adjusted it to your taste, DarkChocoFan! The base recipe is intentionally less sweet than grocery store boxed mixes to let the chocolate shine, but it’s totally customizable – adding dark cocoa, cutting a little sugar, or adding extra espresso powder all work great to amp up that deep chocolate flavor.

1 week ago

Made 4 of these for my kid’s school bake sale last week and they sold out in 20 minutes! People were coming back asking if there were more slices left. I paired it with a simple chocolate buttercream and it was a total hit. Worth every minute of prep and cooling time, trust me.

5 days ago

Oh I need to make this for our spring bake sale next month! Did you slice it ahead of time or sell whole layers? Trying to figure out the easiest way to serve it for a crowd.

2 weeks ago

This is exactly the devil’s food cake my grandma used to make! I was worried no recipe would live up to my childhood memory but this hits every note – dense but moist, deep chocolate flavor, not fluffy like a regular chocolate cake. I cried a little when I took the first bite, it was so nostalgic. SO good.

5 days ago

Flavor was 10/10 but I wish the recipe noted what size pans to use more clearly? I used 8 inch pans instead of 9 inch and the batter overflowed in my oven and made a huge mess. I had to scrape burnt chocolate off the bottom of my oven for 20 minutes, oops. The parts that didn’t burn were amazing though, just wish I’d used the right pan size!

3 days ago

Oh no, I’m so sorry about the oven mess! The recipe calls for two 9-inch round pans, I’ll make that note more prominent at the top of the ingredient list so it’s easier to spot right away. If you use 8-inch pans next time, just hold back about 1/2 cup of batter to avoid overflow, and you’ll be good to go!

just now

Just pulled this out of the oven an hour ago, snuck a tiny bite of the edge while it was cooling and WOW. I was planning to save it for my friend’s housewarming party tomorrow but I’m this close to just eating half of it tonight for my late night snack. It’s so fudgy and moist, I don’t know if I can resist. Worth every second of wait time even if I end up having to bake another one tomorrow because I ate half of it lmao.