
This is the chocolate cake you turn to when you need a dependable, deeply chocolatey dessert that happens to be gluten-free and dairy-free. It comes together in a single bowl, no electric mixer required, and bakes up tender, moist, and rich enough to satisfy anyone who isn’t avoiding gluten or dairy. The vanilla bean buttercream on top is silky, fragrant, and the perfect counterpoint to the dark, fudgy crumb.
What makes this version work so well is the combination of applesauce and neutral oil, which replace the moisture and tenderness that butter and eggs usually provide. The applesauce acts as a binder, while the oil keeps the crumb soft and prevents it from drying out. The result is a cake that’s almost fudgy in texture, with a pronounced chocolate flavor that isn’t masked by too much sweetness. It’s the kind of cake you can serve to a crowd without announcing it’s gluten-free—it’s just a great cake.
Why This Recipe Works
Using applesauce instead of eggs is the key to this cake’s structure. Applesauce contains pectin, which helps bind the batter, and its natural moisture keeps the crumb tender. Combined with a neutral oil, it mimics the richness of butter without any dairy. The oil also ensures the cake stays moist for days, as it doesn’t solidify at room temperature like butter would.
The leavening is a careful balance of baking soda and baking powder. Baking soda reacts with the acidity in the applesauce and cocoa powder (which is naturally acidic), while baking powder provides additional lift. This double action gives the cake a good rise without making it too airy—you want a dense, moist crumb, not a light sponge. The gluten-free flour blend is chosen for its ability to mimic wheat flour’s structure; a blend with xanthan gum is essential to prevent a crumbly texture.
Ingredients
- 1 ½ cups (210 g) gluten-free all-purpose flour (with xanthan gum, if your blend doesn’t include it, add ½ tsp xanthan gum)
- ¾ cup (75 g) unsweetened cocoa powder (natural or Dutch-processed; both work, but natural gives a slightly more acidic tang)
- 1 ½ cups (300 g) granulated sugar
- 1 tsp baking soda
- ½ tsp baking powder
- ½ tsp salt
- 1 cup (240 ml) unsweetened applesauce
- 1 cup (240 ml) plant-based milk (almond, oat, or coconut; use unsweetened for best control of sweetness)
- ⅓ cup (80 ml) neutral oil (canola, avocado, or sunflower)
- 2 tsp pure vanilla extract
- For the buttercream: 1 cup (225 g) dairy-free butter or margarine (room temperature), 3 cups (360 g) powdered sugar, 1 tbsp vanilla bean paste (or seeds from 1 vanilla bean), 2–3 tbsp plant-based milk (as needed)
Ingredient Notes
Gluten-Free All-Purpose Flour: This is the base of your cake. Use a blend that contains xanthan gum (like Bob’s Red Mill 1-to-1 or King Arthur Measure for Measure) to mimic the elasticity of gluten. If your blend doesn’t have it, add ½ teaspoon to the dry ingredients. Don’t substitute coconut flour or almond flour—they absorb liquid differently and will change the texture.
Unsweetened Cocoa Powder: Look for a good quality cocoa powder to ensure a rich chocolate flavor. Natural cocoa (not Dutch-processed) is more acidic and will react with the baking soda, giving a slightly lighter crumb. Dutch-processed will be darker and less tangy; either works, but if you use Dutch-processed, consider adding ¼ tsp more baking soda to compensate for the lower acidity.
Granulated Sugar: This adds sweetness and helps to create a tender cake. Sugar also helps with browning and moisture retention. You can reduce it to 1 ¼ cups if you prefer a less sweet cake, but don’t go lower or the texture may suffer.
Baking Soda and Baking Powder: These leavening agents help the cake rise. Baking soda needs an acid to activate, which comes from the cocoa and applesauce. Baking powder is double-acting, providing lift both when mixed and when heated. Make sure both are fresh—old leaveners can cause a dense cake.
Salt: A small amount enhances the flavor of the chocolate. Don’t skip it; it balances the sweetness.
Unsweetened Applesauce: This acts as a binder and adds moisture to the cake. It replaces eggs, so don’t substitute with sweetened applesauce unless you reduce the sugar. If you don’t have applesauce, you can use mashed banana (about 1 cup), but the flavor will change slightly.
Plant-Based Milk: Almond milk, oat milk, or coconut milk are all excellent choices to keep the cake dairy-free. Oat milk is the most neutral; almond adds a slight nuttiness; coconut milk (from a carton, not canned) adds richness. Avoid canned coconut milk as it’s too thick and fatty.
Vanilla Extract: Use pure vanilla extract for the best flavor. It rounds out the chocolate and enhances the buttercream.
Neutral Oil: Canola or avocado oil works well to keep the cake moist. Use a flavorless oil so it doesn’t compete with the chocolate. Olive oil will add a fruity note that’s not ideal here.
For the Buttercream: Dairy-free butter (like Earth Balance or Miyoko’s) should be at room temperature for a smooth, fluffy texture. Vanilla bean paste gives a beautiful speckled look and intense flavor; you can also scrape the seeds from one vanilla bean. If you only have extract, use 2 teaspoons.
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9-inch round cake pan (or two 8-inch pans for a layer cake) with a little oil or dairy-free butter, then line the bottom with a circle of parchment paper. Greasing and lining ensures the cake releases cleanly—gluten-free cakes can be more fragile than wheat cakes.
- In a large mixing bowl, whisk together the gluten-free flour, cocoa powder, sugar, baking soda, baking powder, and salt. Whisking aerates the mixture and breaks up any lumps, which is especially important for cocoa powder. Make sure there are no visible clumps of baking soda or powder.
- Add the applesauce, plant-based milk, oil, and vanilla extract to the dry ingredients. Use a spatula or wooden spoon to stir until just combined. The batter will be thin—that’s normal. Stir until no dry streaks remain, but don’t overmix; overmixing can develop the gluten-free flour’s starches and make the cake tough. The batter should be smooth and pourable.
- Pour the batter into the prepared pan(s). Tap the pan on the counter a few times to release any air bubbles. This helps prevent large holes in the crumb.
- Bake for 30–35 minutes (or 25–30 minutes for 8-inch layers) until a toothpick inserted into the center comes out clean or with just a few moist crumbs. The cake should pull away from the sides of the pan slightly. If the top springs back when lightly pressed, it’s done. Don’t open the oven door before 25 minutes—a sudden temperature drop can cause the cake to sink.
- Let the cake cool in the pan for 10 minutes. Then run a knife around the edges to loosen, invert onto a wire rack, remove the parchment, and let cool completely. Cooling completely is crucial before frosting; if the cake is warm, the buttercream will melt and slide off.
- While the cake cools, make the buttercream. In a medium bowl, beat the dairy-free butter with a hand mixer or stand mixer on medium speed until smooth and creamy, about 1 minute. Add the powdered sugar, one cup at a time, beating on low to avoid a sugar cloud. Once all the sugar is incorporated, add the vanilla bean paste and 2 tablespoons of plant-based milk. Beat on medium-high for 2–3 minutes until light and fluffy. If the frosting is too thick, add the remaining tablespoon of milk; if too thin, add a little more powdered sugar.
- Once the cake is completely cool, spread the buttercream over the top and sides. If you’re making a layer cake, place one layer on a plate, spread a thick layer of frosting, then top with the second layer and frost the outside. Use an offset spatula for a smooth finish, or leave swirls for a rustic look.
- Slice and serve. For clean slices, use a serrated knife and wipe it between cuts.
Servings: 10–12 slices | Prep time: 15 minutes | Cook time: 30–35 minutes | Total time: 1 hour (including cooling)
Tips for Success
- Weigh your flour and cocoa powder if you can. Gluten-free flours vary in density; weighing ensures consistent results. If using cups, spoon the flour into the cup and level it off—don’t scoop directly, which compacts the flour.
- Use room-temperature ingredients. Cold milk or applesauce can make the batter lumpy and affect the rise. Let them sit out for 15 minutes before mixing.
- Don’t overmix the batter. Stir until just combined—a few small lumps are fine. Overmixing can develop the starches in the gluten-free flour, leading to a dense, gummy texture.
- Check your oven’s accuracy with an oven thermometer. Many ovens run hot or cold, and a 25°F difference can make the difference between a moist cake and a dry one.
- For a more intense chocolate flavor, use Dutch-processed cocoa and add ¼ tsp more baking soda. For a lighter, more classic chocolate cake, use natural cocoa.
- If your dairy-free butter is very soft, chill the frosting for 15 minutes before using if it seems too loose. You want it spreadable but not runny.
- To make a two-layer cake, double the recipe and use two 8-inch pans. Bake for 25–30 minutes, and check doneness early.
Troubleshooting
Cake is too dense or didn’t rise: Your leaveners may be old. Baking soda and powder lose potency after 6 months. Also, make sure your gluten-free flour blend contains xanthan gum; without it, the cake may not hold its structure. If you added too much liquid, the batter may be too thin to rise properly—measure accurately.
Cake is dry: Overbaking is the most common cause. Check the cake at the minimum time. Also, ensure you’re using a neutral oil, not a light one like grapeseed that might not provide enough moisture. If your applesauce was very thick, add an extra tablespoon of milk to the batter.
Cake sinks in the middle: This can happen if the oven door is opened too early, or if the batter is overmixed. Also, if you used a pan that’s too small, the batter will be too deep and sink. Use the specified pan size.
Buttercream is runny: Your dairy-free butter might have too high a water content, or it was too warm. Chill the frosting for 15–20 minutes, then re-whip. If it’s still runny, add more powdered sugar, a tablespoon at a time.
Buttercream is lumpy: Make sure your butter is truly at room temperature—not melted. Beat it alone until smooth before adding sugar. If lumps persist, sift the powdered sugar.
Cake sticks to the pan: Always line the bottom with parchment paper. Even if you grease the pan, gluten-free cakes can be delicate. Let the cake cool for 10 minutes before turning out—if you wait too long, it may stick.
Variations
Orange Chocolate: Add 1 tablespoon of orange zest to the batter and replace the vanilla extract in the frosting with 1 teaspoon of orange extract. The citrus brightens the chocolate beautifully.
Mint Chocolate: Add ½ teaspoon of peppermint extract to the batter and use the same in the frosting instead of vanilla. Top with crushed dairy-free chocolate mints.
Spiced Chocolate: Add 1 teaspoon of ground cinnamon and ¼ teaspoon of cayenne pepper to the dry ingredients for a Mexican-style chocolate cake. The warmth is subtle but lovely.
Berry Layer: Spread a layer of dairy-free strawberry jam or fresh mashed berries between the cake layers before frosting. The tartness cuts through the sweetness.
Chocolate Buttercream: For a double-chocolate version, add ¼ cup of sifted cocoa powder to the buttercream along with the powdered sugar. You may need an extra tablespoon of milk.
What to Serve With It
This cake is wonderful on its own, but a scoop of dairy-free vanilla ice cream or a dollop of coconut whipped cream takes it over the top. A fresh berry compote—strawberries, raspberries, or cherries—adds a bright, tangy contrast. For a cozy pairing, serve it with a cup of strong coffee or a glass of cold almond milk. If you’re serving a crowd, a simple dusting of powdered sugar and a few chocolate shavings make it look festive.
Make-Ahead, Storage and Reheating
Make-Ahead: You can bake the cake layers up to 2 days in advance. Let them cool completely, wrap tightly in plastic wrap, and store at room temperature. Frost them the day you plan to serve. The buttercream can be made 3 days ahead and refrigerated in an airtight container. Let it come to room temperature and re-whip for 30 seconds before using.
Storage: Frosted cake can be stored in an airtight container at room temperature for up to 2 days, or in the refrigerator for up to 5 days. If refrigerated, let it sit at room temperature for 30 minutes before serving to soften the buttercream. Unfrosted cake layers can be wrapped tightly and stored at room temperature for 2 days, or frozen for up to 3 months.
Freezing: To freeze, wrap the unfrosted cake layers tightly in plastic wrap, then in foil. They can be frozen for up to 3 months. Thaw overnight in the refrigerator before frosting. Frosted cake can also be frozen (unwrapped first, then wrapped after freezing) for up to 1 month; thaw in the fridge overnight.
Reheating: If you like your cake slightly warm, microwave a slice for 10–15 seconds. This is especially nice if you’re serving it with ice cream. Don’t reheat the whole cake—it will dry out.
Frequently Asked Questions
Can I use a different gluten-free flour blend? Yes, as long as it’s a 1-to-1 baking blend that contains xanthan gum. Avoid blends that are primarily rice flour and potato starch without a binder. If your blend lacks xanthan gum, add ½ teaspoon to the dry ingredients.
Can I make this cake without applesauce? You can substitute 1 cup of mashed ripe banana (about 2 medium bananas) for the applesauce. The cake will have a subtle banana flavor and may be slightly denser. You can also use 3 flax eggs (3 tbsp ground flaxseed mixed with 9 tbsp water) but the texture will be a bit more crumbly.
Can I use coconut oil instead of neutral oil? Yes, but use refined coconut oil (not virgin) to avoid a coconut flavor. Melt it before adding. The cake may be slightly firmer when chilled, but it will soften at room temperature.
How do I make this cake nut-free? This recipe is naturally nut-free if you use a nut-free plant-based milk (like oat or rice milk) and a nut-free dairy-free butter (like soy-based). Check your gluten-free flour blend for nut flours—some blends contain almond flour.
Can I reduce the sugar? You can reduce the sugar to 1 ¼ cups without a major impact on texture. However, sugar contributes to moisture and tenderness, so don’t go below 1 cup. You may also want to use a slightly sweeter frosting to compensate.
Why is my cake so dark? That’s the cocoa powder. Natural cocoa is a reddish-brown, while Dutch-processed is darker. If you used Dutch-processed, the cake will be very dark. It’s fine—just a visual difference.
Can I make this into cupcakes? Absolutely. Divide the batter into a 12-cup muffin tin lined with paper liners. Bake at 350°F for 18–22 minutes, until a toothpick comes out clean. The frosting recipe will cover 12 cupcakes generously.
How do I get clean slices? Use a serrated knife and cut with a gentle sawing motion. Wipe the knife clean between cuts. For the cleanest slices, chill the frosted cake in the fridge for 15 minutes before slicing.
