This is the best gluten-free chocolate cake recipe. It's soft and moist with intense chocolate flavor that comes from cocoa powder and hot coffee. It's so moist and fluffy, nobody will know it's gluten-free. Top it with a smooth chocolate buttercream. Perfect for any celebration.
2cups(280g)gluten-free all purpose flour blend - I used Bob's Red Mill 1-to-1 Gluten-Free Flour Blend*
2cups(400g)granulated sugar
¾cup(75g)cocoa powder
2teaspoonsbaking powder
2teaspoonsbaking soda
1teaspoonsalt
1cup(240g)buttermilk - or 1 cup almond milk mixed with 1 tablespoon apple cider vinegar
½cup(113g)vegetable oil - or melted butter if you prefer
2(100g)large eggs
1tablespoon(13g)vanilla extract
1cup(240g)hot coffee
Chocolate Frosting:
2cups(454g)unsalted butter - softened at room temperature (or a 50/50 mix of palm oil shortening and vegan butter)
1 ½cups(150g)cocoa powder - sifted
5cups(600g)powdered sugar - sifted
¼cup(60g)whole milk - or almond milk, you may need more to thin out the frosting
1tablespoon(13g)vanilla
¼teaspoonsalt
**Use the toggle button above to turn the instruction photos on and off!
Instructions
Make the Cake:
Preheat the oven to 350°F. Grease two 8-inch round cake pans with butter. Line the bottoms with parchment paper circles. Butter the parchment paper, then dust the pans with cocoa powder, tapping out any excess.
In a large bowl, whisk together 2 cups(280g) gluten-free all purpose flour blend, 2 cups(400g) granulated sugar, ¾ cup(75g) cocoa powder, 2 teaspoons baking powder, 2 teaspoons baking soda, and 1 teaspoon salt. Whisk for about 30 seconds to make sure everything is evenly distributed and there are no lumps of cocoa powder.
Add 1 cup(240g) buttermilk, ½ cup(113g) vegetable oil, 2(100g) large eggs and 1 tablespoon(13g) vanilla extract directly to the bowl with the dry ingredients. Mix with an electric mixer on medium speed for about 2 minutes, stopping to scrape down the sides of the bowl halfway through. The batter should look smooth and well combined.
Reduce the mixer speed to low. Carefully and slowly pour in 1 cup(240g) hot coffee while the mixer is running. Mix until just combined, about 30 seconds. The batter will be very thin. Let the batter sit for 2-3 minutes to thicken slightly before pouring into the pans.
Divide the batter between the two prepared cake pans. I like to use a food scale to ensure that my layers have approximately the same amount of batter.
Bake at 350°F for 30-35 minutes. The cakes are done when a toothpick inserted in the center comes out clean or with just a few moist crumbs. For the most accurate test, use an instant-read thermometer. The internal temperature should read 200-205°F in the center.
Remove the pans from the oven and place them on a wire rack. Let the cakes cool in the pans for 10 minutes.
Run a knife around the edges of the pans to loosen the cakes. Turn them out onto the wire rack, peel off the parchment paper, and let them cool completely before frosting.
Make the Frosting:
While the cakes are cooling, make the frosting. In a large bowl, beat 2 cups(454g) unsalted butter with an electric mixer on medium speed until creamy and smooth, about 2 minutes.
Add 1 ½ cups(150g) cocoa powder and mix until combined.
Add 5 cups(600g) powdered sugar, ¼ cup(60g) whole milk, 1 tablespoon(13g) vanilla, and ¼ teaspoon salt to the bowl.
Beat on low speed for about 30 seconds until the ingredients start to come together. Then increase the speed to medium-high and beat for 3-4 minutes until the frosting is light, fluffy, and smooth. Scrape down the sides of the bowl as needed.
If the frosting is too thick, add another tablespoon of milk. If it's too thin, add 2-3 tablespoons more powdered sugar.
Frost the Cake:
Make sure the cakes are completely cool before frosting. If they're even slightly warm, the frosting will melt.
Place one cake layer on a serving plate or cake stand. If the top is very domed, you can use a serrated knife to level it off for easier stacking.
Spread about 1 cup of chocolate buttercream evenly over the top of the first layer, leaving about ¼ inch from the edges.
Place the second cake layer on top, pressing down gently to secure it.
Spread a thin layer of frosting over the top and sides of the entire cake. This is called a crumb coat and it helps seal in any loose crumbs. Don't worry if you can see cake through the frosting at this stage.
Refrigerate the cake for 15-20 minutes to let the crumb coat set.
Spread the remaining frosting over the top and sides of the cake in a thicker, final layer. Use an offset spatula or butter knife to smooth it out.
Slice and serve. The cake is best at room temperature.
Notes
Gluten-Free Flour: I recommend Bob's Red Mill 1-to-1 Gluten Free Baking Flour (in the blue bag) for this recipe, which contains xanthan gum. I can't verify other brands work since I haven't tested them.
Weighing Ingredients: For best results, weigh your flour and cocoa powder using a kitchen scale. This is especially important for gluten-free baking to get the right texture. Scooping with measuring cups can pack in too much flour and make the cake dense.
Storage: Store the frosted cake covered at room temperature for up to 2 days, or in the refrigerator for up to 5 days. If you refrigerate it, let the cake sit at room temperature for 30 minutes before serving so the frosting softens and the cake tastes its best.