Homemade Devil’s Food Cake Recipe: Tons better than anything you could buy! Moist & deeply chocolate-y, with a fluffy marshmallow frosting.

Devil's food cake baked in a square pan with marshmallow frosting.

I’m really excited to share this devil’s food cake recipe with you today! I made a YouTube video and everything!

In case you’re not a social media expert, I’ll tell you that YouTube likes videos that are a little bit longer. They are so fun to make but so TIME-CONSUMING! Plus I have to change out of my jammies, whomp whomp.

But AI! Did you know that AI bots are stealing from hardworking single mamas like me?? With decades of personal and professional experience, not to mention actual tastebuds?

Do you think a shot of real-ness and personality and a human face can combat this? Let’s hope!!

Please know that those recipes are untested and extremely unreliable. Steer clear, people! #keepitreal <– for reals!

And for more great cake recipes that are actually achievable and have been tested, tasted, and perfected, check out my cream cheese pound cake, old-fashioned gingerbread, and Key lime cake.

Devils food cake cut into squares and garnished with chocolate cake crumbs.

Table of Contents

Jump to Recipe

What is devil’s food cake?

Devil’s food is just another name for chocolate cake, but in my mind it’s perhaps darker and deeply chocolate-y.

And when I think of devil’s food cake I think of that square cake you could buy in a blue and white box on the end cap of the grocery store shelf. It had a fluffy vanilla frosting and it was covered with chocolate cake crumbs. Do you know what I mean?

This is a lot like that but waaay better. It’s not loaded with preservatives you can’t pronounce. Everything that goes into this cake recipe is there to make it taste good. Nothing more, nothing less!

Plus it’s really nice and moist.

Why this is the best devil’s food cake recipe

  1. Tastes amazing: Deeply, darkly chocolate-y, in contrast with the sweet, airy vanilla icing.
  2. Few ingredients: You can make this with pantry staples you probably already have on hand.
  3. Easy to make: Comes together quickly in just one bowl. So key!
  4. Versatile: I make it in a square pan but you can also make it as a loaf, a layer cake, or as cupcakes (see the FAQ’s below!)

What does devil’s food chocolate cake taste like?

The contrast of deep, dark chocolate against airy, marshmallow-y vanilla frosting is so on point!

Ingredients

Ingredients for making devil's food cake and marshmallow frosting, with text labels.

Sugar: Granulated white sugar sweetens the cake and the frosting, and also keeps the cake moist. You can substitute another type of sweetener if you like. As long as it swaps 1:1 it should work.

Flour: A combination of all-purpose flour and cake flour results in a cake that’s sturdy soft and downy. If you’re not familiar, check out this post–> What is Cake Flour?

Cocoa: I like a combination of mostly dark (Dutch-processed) cocoa and natural cocoa powder. This gives that midnight dark color while still tasting very much like chocolate!

Leavening: A combination of baking powder and baking soda means you can use whichever kind of cocoa you like best, without tasting soapy or turning the cake’s color in a weird way. These ingredients work together with the natural acids and help the cake rise nice and fluffy.

Salt: Enhances and intensifies all the flavors. I prefer kosher salt because it’s cheap, easy to get, and doesn’t contain any additives like iodine, which can result in an oddly bitter taste.

Butter: I love a butter-based cake. So rich and satisfying! Use unsalted butter (different brands could be saltier or less salty) and make sure it’s at room temperature. How to Soften Butter Quickly.

Eggs: Lend structure and richness to the cake. Egg whites are also the basis of the marshmallow frosting. Use large chicken eggs or a 1:1 plant-based substitute. It’s best if they’re at room temperature.

Sour cream: Results in a really moist cake and also ups the acidity just enough to activate the leavening. If you don’t have sour cream you can also use unsweetened plain yogurt or buttermilk. How to Make Homemade Buttermilk.

Vanilla: Vanilla extract balances the chocolate flavor and really makes the frosting taste like marshmallow.

Special equipment

How to make devil’s food cake

This easy recipe comes together in 5 simple steps.

Step 1: Combine the dry ingredients

Sugar, flours, cocoas, leavening, and salt all go into the bowl. Give them a quick stir just to get them combined.

Combining dry ingredients and adding softened butter.

Step 2: Work in the butter

Next, add the butter, stirring it into the dry ingredients until the mixture resembles damp sand.

Step 3: Liquid ingredients

Add in the eggs, one at a time, allowing each one to fully incorporate before adding the next.

Adding eggs, sour cream, and vanilla to cake batter.

Then scrape the bottom and sides of the bowl and paddle and stir in the sour cream and vanilla extract.

Step 4: Bake

Transfer all but a few tablespoons of this batter to a greased, parchment-lined pan.

Those few tablespoons can go into a ramekin or small, oven-safe bowl. This will be for the cake-crumb-garnish!

Bake until the cake is puffy and springy all the way to the center. A toothpick should come out clean or with a few moist crumbs.

Step 5: Marshmallow frosting

While the cake bakes and cools you can get going on the frosting.

Whip the whites together with cream of tartar and salt. If you don’t have cream of tartar you can sub in a few drops of lemon juice or distilled white vinegar. You just want to lower the pH slightly so the whites whip up better.

Once they’re looking foamy, start adding the sugar. Just a little bit at a time! Go slow so that the sugar has time to dissolve and doesn’t weigh everything down.

Add the vanilla and keep the mixer going on low speed while you heat the syrup.

Heat the remaining sugar in a small pot with water, until it boils and reaches 235 degrees F. This is important so the frosting sets up properly as it cools!

Whipping marshmallow frosting to soft peaks.

Once you hit that magic number, start drizzling it into the meringue with the mixer on low. Once it’s all in, turn the mixer up to high and whip it until it can hold stiff peaks.

How to serve this devil’s food cake recipe

Dollop the frosting over the cooled cake and swirl it into a pretty pattern. Then crumble your cake crumbs all over the top. Gorgeous!

I love this cake as an afternoon snack or dessert.

It’s best at room temp but you can also chill it if you like!

Devil's food chocolate cake served on a ceramic plate with a vintage silver fork.

Expert tips

Room temp ingredients: To avoid a lumpy batter, it’s best to use room temperature ingredients.

Gluten-free devil’s food cake: Swap in a cup-for-cup gluten-free flour blend if you or your loved one has a sensitivity.

Don’t pierce the yolks: When separating the eggs, be really careful not to break the yolks. If you do, your marshmallow frosting may not whip up properly. Same goes for if your bowl or whip has any residual grease on it.

Frequently asked questions

Can I use a different-sized pan?

Yes!

This recipe can also be baked in a standard-sized loaf pan, or you can double it to make a 9×13-inch sheet cake, a triple-decker 6-inch diameter layer cake, or a double-decker 8- or 9-inch diameter layer cake.

You can also double it and bake it as 24 standard-sized cupcakes.

Can you make devil’s food cake ahead of time?

Definitely a good idea to do that! You want to allow this cake plenty of time to cool.

I’ll often make it a day or so before I plan to serve it, then cover it with plastic wrap and let it chill in the fridge. This makes it much easier to frost!

How to store devil’s food cake

It’s fine to leave this out at room temperature for a couple of hours, but any longer than that and it should probably go into the fridge.

Cover it lightly and it should keep there for 5 to 7 days.

Or you can freeze it. The unfrosted cake should last in the freezer for a month or two.

What is the serving size?


Cut this cake into 9 equal squares and each square counts as 1 serving.

The nutritional info below is for 1/9th of the whole cake and it includes the frosting.

Devil's food sheet cake with Italian meringue and a blue cloth in the background.

A few more of my best cake recipes

As an amazon associate I earn from qualifying purchases.

Devil's food cake baked in a square pan with marshmallow frosting.
No ratings yet

Devil’s Food Cake Recipe

Servings: 9 squares
Prep Time: 50 minutes
Cook Time: 40 minutes
Total Time: 1 hour 30 minutes
Homemade Devil's Food Cake Recipe: Tons better than anything you could buy! Moist & deeply chocolate-y, with a fluffy marshmallow frosting.

Ingredients

For the Devil's Food Cake

For the Marshmallow Frosting

Instructions
 

To Make the Devil's Food Cake

  • Preheat the oven to 325 degrees F.
  • Lightly mist a small oven-safe ramekin and an 8×8-inch metal pan with non-stick spray and line it with parchment.
  • Place the sugar, flour, cake flour, dark cocoa, natural cocoa, baking powderbaking soda, and salt in a large mixing bowl and stir to combine.
  • Mix in the butter on low speed, until the mixture resembles damp sand (about 2 minutes).
  • Stir in the eggs,one at a time, scraping the bottom and sides of the bowl with a silicone spatula after each addition.
  • Add the sour cream and vanilla, scraping the bottom and sides of the bowl to be sure all the ingredients are well combined.
  • Beat on medium speed for 1 to 1 1/2 minutes, to aerate the batter and build the cake’s structure.
  • Place about 3 tablespoons of batter in the prepared ramekin, and transfer the rest to the prepared square cake pan.
  • Bake until set and springy in the center (approx. 30 minutes). A toothpick inserted in the thickest part should come out clean or with a few moist crumbs.
  • Cool completely then top with marshmallow frosting and cake crumbs.

To Make the Marshmallow Frosting

  • Place the egg whites, vanilla, cream of tartar, and salt in a large mixing bowl and whip on medium speed until foamy.
  • While continuing to whip, add 1/2 cup of the sugar in a very slow and steady stream (about 1 teaspoon at a time).
  • Once the entire 1/2 cup of sugar has been added, continue to whip until the meringue can hold stiff peaks.
  • Whip in the vanilla extract, and continue to stir the meringue on low speed while you prepare the hot sugar syrup.
  • Place the remaining 1/2 cup of sugar in a small pot, along with the water.
  • Place the pot over medium heat and cook until the syrup boils and reaches 235 degrees F.
  • In a very slow and steady stream, add the hot sugar syrup to the meringue, while continuing to whip on low speed.
  • When all the syrup has been added, turn the mixer up to high speed and whip until very stiff and glossy.

Notes

*Unsweetened plain yogurt or buttermilk can be substituted.
**A few drops of lemon juice or distilled white vinegar can be substituted.
TURN OFF YOUR AD BLOCKER TO VIEW A QUICK VIDEO TUTORIAL
Serving: 0.11cake, Calories: 337kcal, Carbohydrates: 50g, Protein: 5g, Fat: 15g, Saturated Fat: 8g, Polyunsaturated Fat: 1g, Monounsaturated Fat: 4g, Trans Fat: 0.4g, Cholesterol: 71mg, Sodium: 196mg, Potassium: 183mg, Fiber: 2g, Sugar: 40g, Vitamin A: 448IU, Vitamin C: 0.1mg, Calcium: 45mg, Iron: 1mg
Cuisine: American
Course: Dessert, Snack
Tried this recipe?Mention @bakingamoment on Instagram or tag #bakingamoment.

Author

  • Allie is the creator and owner of Baking a Moment. She has been developing, photographing, videographing, and writing and sharing recipes here since 2012.

    View all posts