Moist Devil's Food Cake

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.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

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

2 days ago

OMG this cake is SO good!!! I made it for my partner’s birthday dinner this weekend and every single guest asked for the recipe. It’s perfectly moist, not too sweet, and the deep chocolate flavor is *chef’s kiss*. Total game changer for my go-to chocolate cake recipe.

yesterday

Did you use coffee in the batter like the recipe says? I’m scared it’ll make it taste like coffee instead of chocolate!

2 hours ago

Great question! The hot coffee just amplifies the chocolate flavor without adding a strong coffee taste—if you’re extra sensitive, you can swap it for hot water and still get fantastic results!

1 week ago

Made this for my kids’ end-of-soccer-season potluck and it was a huge hit! My only note is that the cook time for the layers ran a little short in my older oven—mine were done at about 32 minutes instead of the 40 listed, so definitely start checking with a toothpick early. My kids loved it so much they already asked for it again for our next family dinner.

5 days ago

Thanks for the helpful tip! Oven temperatures can vary a ton between models, so that’s such a good reminder for folks to test doneness early instead of waiting for the full listed time. So glad the whole soccer crew loved it!

3 days ago

As someone who’s only ever made boxed cake mix before, I was nervous to try a from-scratch recipe rated medium difficulty, but this was so doable! It came out moist and rich, even when I messed up the frosting a little and had to add extra powdered sugar. 10/10 will be making this for my dorm floor potluck next month.

5 days ago

The flavor of this cake is incredible, but I ran into a big issue where my layers sunk in the middle after I took them out of the oven. I followed the recipe exactly, so I’m not sure what went wrong? I ended up cutting the sunken parts off and filling the gap with extra frosting, which worked, but it was so stressful making it for my sister’s baby shower.

3 days ago

Oh no, that happened to me the first time too! I realized I’d opened the oven door way too early to check on them, which makes the centers fall right out. Second time I waited 30 minutes before peeking and they came out perfectly flat!

2 days ago

So sorry the layers sunk on your first try! That almost always happens from opening the oven too early, overmixing the batter, or slightly expired baking soda/powder. The extra frosting fix sounds genius, though—bet none of the shower guests even noticed!

yesterday

I’ve tried half a dozen devil’s food cake recipes over the years looking for one that stays moist for more than a day, and this is IT! I stored the leftover cake in an airtight container on the counter and it was still perfectly fudgy 4 days later. Absolute winner for regular Sunday family dinners.

2 hours ago

Second this! I made mine last week and took slices to work for a little afternoon treat all week, it didn’t dry out at all. SO good!

2 weeks ago

This recipe reminds me so much of the devil’s food cake my own mom used to make when I was a kid! It’s rich, chocolatey, and the chocolate buttercream is perfectly fluffy. I made it for my grandkids’ visit last weekend and they went back for second slices before they even finished their dinner.

1 week ago

This makes our whole day to hear! There’s nothing better than a recipe that feels like a nostalgic family favorite, and we’re so glad your grandkids loved it as much as we do.

2 hours ago

I was worried this would be too heavy for a post-long-run treat for my running group, but I lightened up the frosting a tiny bit by using half Greek yogurt and no one could tell! The cake itself is so deeply chocolatey that it doesn’t even need a ton of super sweet frosting to feel indulgent. Will definitely be adding this to my weekend meal prep rotation for sweet treats.

30 minutes ago

Just pulled this out of the oven and frosted it, and I may have eaten a whole edge piece while it was still warm. No regrets. The crumb is so tender and the chocolate flavor is next level. Can’t wait to serve this at my board game night tonight!

5 minutes ago

Pro tip: save a couple extra slices for yourself before you set it out! I made this for a block party last month and people ate the whole thing in 10 minutes, I didn’t even get a second piece.

just now

We fully support sneaking warm edge pieces—baker’s treat is 100% non-negotiable! Hope your game night crew loves it as much as you did.

5 minutes ago

I made this as a surprise for my husband who’s obsessed with all things chocolate, and he said it’s better than the $12 slice we got at that fancy downtown bakery for our anniversary. Total win for me! The buttermilk in the recipe makes such a difference for that moist texture, right?

just now

That’s the highest compliment we could ask for! The buttermilk is definitely key for that tender, slightly tangy, moist crumb that keeps people coming back for more. So glad you two loved it!

3 days ago

Great recipe! The only tweak I made was adding a little espresso powder to the frosting to amp up the chocolate flavor even more, and it was chef’s kiss. I brought it to my office potluck and only two crumbs were left in the pan by the end of the lunch hour.

2 days ago

Oh the espresso powder in the frosting idea is genius! I’m making this again next weekend for a Halloween party and I’m totally stealing that hack.

1 week ago

I’ve been scared to make layer cakes because mine always come out lopsided, but this recipe’s tips for leveling the layers and letting them cool completely before frosting made it so easy! My cake looked like it came straight from a fancy bakery, and it tasted even better. My whole family raved about it at our Sunday dinner.

2 days ago

Wait, is there a typo in the frosting recipe? I added the exact amount of cocoa powder listed and my frosting came out super grainy, almost gritty? I had to toss half of it and run to the store for a quick backup for my daughter’s graduation party. The cake itself was amazing, but the frosting was a total flop for me.

yesterday

Did you sift your cocoa powder first? I almost skipped that step the first time I made it, and I noticed mine was getting clumpy too. Sifting gets rid of all those dry lumps that make it feel grainy!

30 minutes ago

We’re so sorry the frosting gave you trouble! Grainy frosting usually happens if the cocoa powder isn’t sifted, or if the butter isn’t fully softened to room temperature before mixing. We’re glad the cake itself was a hit, and hope you give the frosting another shot with those tips next time!

5 days ago

Made this for my monthly book club meeting and we spent 20 minutes just talking about how good the cake was instead of discussing the book. Oops! The deep chocolate flavor pairs so well with a glass of red wine, 10/10. I already sent the recipe to three of my friends from the group.

3 days ago

We won’t tell your book club you skipped discussion for cake—we’d definitely do the same thing! So glad it was a hit with the group, and thanks for passing the recipe along!

just now

I made this as a little birthday treat for my roommate and even my super picky cat tried to steal a bite off the counter when I wasn’t looking! That’s how you know it’s good. It was moist, rich, and not cloyingly sweet like so many chocolate cake recipes I’ve tried before. Will absolutely be making this again.

1 week ago

Game changer! I’ve been using the same devil’s food cake recipe for neighborhood potlucks for 10 years and this one just permanently replaced it. It’s so moist even when I make it the night before an event, which is a total lifesaver when I’m juggling 3 different dishes for a gathering. My neighbors are already asking when I’ll bring it again.

5 days ago

Right? The make-ahead factor is such a win! I baked my layers two days before my office potluck, wrapped them tight in plastic wrap, and they were even more moist than when I first pulled them out of the oven.

3 days ago

We love hearing that! Baking layers ahead and wrapping them tight is one of our favorite pro tips for less stress when you’re cooking for a crowd. So glad it earned a permanent spot in your potluck rotation!