Gluten and Dairy Free Chocolate Cake Recipe: Moist Layers With Hidden Almond Flour Secret

Desserts

Gluten and Dairy Free Chocolate Cake Recipe: Moist Layers With Hidden Almond Flour Secret

This gluten and dairy free chocolate cake recipe delivers moist, fudgy layers that rival traditional chocolate cake—without the gluten or dairy. The secret? A blend of almond flour and flax eggs that creates a tender crumb while keeping the structure intact.

I developed this recipe after years of baking for friends with dietary restrictions, and it’s now my go-to for birthdays, holidays, or just because.

The beauty of this recipe lies in its simplicity and foolproof method. You’ll use plant-based ingredients like coconut oil, almond milk, and a gluten-free flour blend to create a rich, chocolatey cake that’s just as satisfying as the classic version.

The almond flour adds natural sweetness and moisture, while the flax eggs bind everything together without compromising texture.

What you’ll end up with is a moist, decadent chocolate cake with layers that stay soft and fudgy—not dry or crumbly. The cake holds its shape beautifully while delivering deep chocolate flavor in every bite. Top it with dairy-free frosting or fresh berries for an extra touch of elegance.

Perfect for special occasions or everyday treats, this recipe is designed to impress while being completely inclusive. Whether you’re baking for dietary needs or simply want a healthier indulgence, this cake delivers restaurant-quality results at home. Let’s get baking!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for gluten and dairy free chocolate cake

Eight ingredients transform into decadent, gluten-free chocolate cake with almond flour's secret moisture.

Ingredient Amount Notes
Almond Flour 🌰 2 cups Finely ground, unsweetened preferred
Gluten-Free All-Purpose Flour Blend 🌾 1 cup Bob's Red Mill 1:1 preferred
Unsweetened Cocoa Powder 🍫 ¾ cup Dutch-processed for smoother texture
Granulated Coconut Sugar 🍯 1 ½ cups Lightly packed for accuracy
Extra-Virgin Coconut Oil 🥥 1 cup Melted, not solid
Unsweetened Almond Milk 🥛 1 ½ cups Cold, for proper emulsification
Flaxseed Meal 🌱 3 tbsp Ground flaxseed, not whole seeds
Pure Vanilla Extract 🌿 2 tsp Bourbon or Madagascar preferred
Baking Powder 🍞 1 tbsp Aluminum-free for best results
Salt 🧂 ¼ tsp Diamond Crystal kosher preferred
Distilled White Vinegar 🍶 1 tbsp For flax egg activation
Dark Chocolate Chips 🍫 1 ½ cups Vegan, 70% cocoa minimum
Espresso Powder ☕ 1 tsp Enhances chocolate depth

The almond flour is non-negotiable—Bob's Red Mill or Anthony's Goods are industry standards, but any high-quality brand works. Look for finely ground flour with a smooth texture; coarser varieties can create a gritty crumb. Trader Joe's often carries a budget-friendly option that performs well. The cocoa powder should be Dutch-processed (natural cocoa is too acidic for this delicate batter). For the coconut sugar, Wholesome! brand is my go-to—it dissolves smoothly and adds natural caramel notes without graininess. Store your almond flour in the freezer to prevent rancidity, and always sift the gluten-free flour blend to avoid lumps.

No almond flour? Cashew flour at a 1:1 ratio works, though texture will be slightly denser. Substituting regular cocoa powder for Dutch-processed? Add an extra 0.25 tsp baking soda to neutralize the acidity. The flax eggs require precise measurement—3 tbsp flaxseed meal plus 9 tbsp cold water equals 3 eggs. Let them thicken for 5 minutes before mixing. For the chocolate chips, Enjoy Life brand is the gold standard for vegan baking, but any dairy-free chips with 70%+ cocoa will deliver deep flavor. The espresso powder is optional but elevates the chocolate profile—Starbucks instant works perfectly.

This batter holds for 24 hours in the fridge, making it ideal for ahead-of-time prep. Portion into 8-inch pans for two 1-inch layers. The cake freezes beautifully—wrap tightly in plastic and store for up to 3 months. For optimal texture, bring all ingredients to room temperature before mixing. The coconut oil must be melted but not hot—microwave 30 seconds to just soften it. Avoid overmixing; combine wet and dry ingredients in three additions to maintain airiness.

❤️

Why You'll Love This Recipe

  • No Mixer Needed: I swear by this—just fold the almond flour and GF blend with the cocoa, then whisk in the coconut oil until it’s almost smooth. No electric mixer, no fuss, and the texture still comes out tender. Honestly, my stand mixer gets jealous.
  • Rich Without Dairy: That combo of unsweetened cocoa and coconut sugar? Deep, fudgy, and actually chocolatey—not that bitter aftertaste some GF cakes leave you with. The coconut oil keeps it moist without tasting like a health food store.
  • Birthday to Brunch: Serve it warm with a scoop of coconut ice cream for a party, or slice it cold for a grab-and-go breakfast. I’ve even used it as a base for a trifle—works every time. (Yes, even when I forget to plan ahead.)
  • Leftovers That Last: This cake stays fresh for days in the fridge, and slices reheat in 10 seconds. I’ve packed it in lunches, sent it to potlucks, and still had enough for midnight snacks. Budget-friendly? Absolutely—but it’s the kind of treat you won’t skimp on.

Step-by-step instructions for gluten and dairy free chocolate cake

Here's how to achieve perfectly moist layers with the almond flour secret that keeps this cake tender.

1

Create the Flax Egg and Prepare Wet Ingredients

In a small bowl, combine the 3 tablespoons flaxseed meal with 3 tablespoons unsweetened almond milk and 1 tablespoon distilled white vinegar. Let this mixture sit for 10 minutes—it will thicken into a gel-like consistency that perfectly replaces eggs. This is your flax egg binder, and it's crucial for the cake's moisture.

Meanwhile, in a separate large bowl, whisk together the 1 cup melted extra-virgin coconut oil with the 1.5 cups granulated coconut sugar until fully combined. The sugar should dissolve completely, creating a smooth, slightly grainy paste. This step ensures even distribution of sweetness throughout the batter, preventing any gritty pockets.

2

Combine Dry Ingredients and Fold in Wet Mixture

In a medium bowl, sift together the 2 cups almond flour, 1 cup gluten-free all-purpose flour blend, 0.75 cup unsweetened cocoa powder, 1 tablespoon baking powder, 0.25 teaspoon salt, and 1 teaspoon espresso powder. The espresso powder enhances the chocolate flavor without adding bitterness, while the almond flour keeps the texture tender. Whisk these dry ingredients thoroughly to eliminate any lumps.

Gradually add the dry mixture to the wet ingredients, alternating with the thickened flax egg mixture. Begin and end with the dry ingredients to ensure even distribution. Use a rubber spatula to gently fold everything together until just combined—overmixing develops gluten and can make the cake dense. The batter should be thick but pourable, with a rich, velvety chocolate appearance.

3

Fold in Chocolate Chips and Prepare the Pan

Using the same rubber spatula, gently fold in the 1.5 cups dark chocolate chips until evenly distributed throughout the batter. Be careful not to break up the chips too much—you want pockets of melted chocolate in every bite. The chocolate chips will create delicious surprises and add to the cake's moist texture as they melt during baking.

Preheat your oven to 350°F and grease two 8-inch round cake pans with coconut oil or line them with parchment paper. The almond flour in this recipe makes the batter stickier than traditional flour, so proper pan preparation is essential. Divide the batter evenly between the two pans, spreading it out to create level tops—this ensures even baking and uniform layers.

4

Bake to Perfect Moisture and Check for Doneness

Bake the cakes for 25-30 minutes, or until a toothpick inserted into the center comes out with just a few moist crumbs but no wet batter clinging to it. The cakes should spring back slightly when touched in the center, and the edges should be set but not overly dark. The almond flour and coconut oil work together to keep the cake moist even as it bakes, so don't be tempted to overbake—this is where the secret to moisture lies.

Real talk: Your oven might run hot, so start checking at the 20-minute mark. If the tops brown too quickly, tent the pans with aluminum foil to prevent over-browning while allowing the centers to finish baking. Once done, remove the cakes from the oven and let them cool in the pans for 10 minutes before transferring to a wire rack to cool completely.

👨‍🍳

Pro Tips For Making Gluten And Dairy Free Chocolate Cake

  • Sift the Flours Together: Almond flour is clumpy, and gluten-free blends are dense—skip mixing them dry, and you’ll end up with a cake that’s lumpy or tough. Toss them in a fine-mesh sieve first, then whisk vigorously to break up any remaining chunks. I learned this the hard way after pulling apart a cake that looked fine but crumbled like dry sand.
  • Melt the Coconut Oil Warm: Coconut oil solidifies fast, and cold lumps in your batter will leave pockets of dryness. Microwave it in 10-second bursts until just melted—no need to overheat. Pour it into the batter while still warm (but not hot) to ensure it emulsifies smoothly. Trust me, your cake’s texture will thank you.
  • Don’t Overmix the Batter: Gluten-free flours and almond flour have a sneaky way of developing gluten-like elasticity if you whip them too hard. Mix just until the dry ingredients disappear—maybe 20-30 seconds max. Overmixing turns your rich chocolate cake into a dense, rubbery brick. I’ve been there.
  • Weigh Your Cocoa Powder: Spooning cocoa powder from the bag packs in air, which means your cake will be less chocolatey and denser. Use a kitchen scale for precision—aim for 3 ounces per ¼ cup. If you’re measuring by volume, scoop it into the measuring cup, then level it off with a knife. This small step makes a real difference in flavor.

Common mistakes when making your gluten and dairy free chocolate cake

Overmixing the Batter

This is the #1 mistake that turns your cake dense and tough. The almond flour and gluten-free blend don't have gluten proteins to develop like wheat flour, but overmixing still creates a dense structure.

I recommend using a rubber spatula and folding just until combined—stop when you see a few dry spots remaining. The batter should hold its shape when dropped from a spoon but still be pourable. 💡

Skipping the Flax Egg Rest Time

Rushing the 10-minute rest for your flax eggs means they won't fully thicken, leading to a cake that collapses or has a gummy texture. I've seen this happen when people skip straight to mixing.

The flax meal needs time to absorb the liquid and form a proper gel. Set a timer—this small step makes all the difference in your cake's structure.

Using the Wrong Flour Blend

Not all gluten-free flour blends perform equally. Using a blend with xanthan gum or other additives can make your cake gummy, while blends without enough starch can make it dry.

I always recommend Bob's Red Mill 1:1 or King Arthur Measure for Measure for reliable results. These blends mimic wheat flour's behavior most closely while keeping the texture tender.

Incorrect Pan Preparation

The almond flour in this recipe makes the batter stickier than traditional flour, so proper pan prep is critical. I've seen cakes fail when people skip greasing or use non-stick spray that leaves residue.

Use coconut oil to grease your pans thoroughly, or line them with parchment paper circles cut to fit. The batter should release cleanly when tapping the side of the pan.

Overbaking for "Fully Done" Look

This cake is designed to stay moist, so baking it until completely dry is a common mistake. The almond flour and coconut oil work together to keep the cake tender even when slightly underdone.

Pull it out when a toothpick comes out with just a few moist crumbs (not wet batter). If your oven runs hot, tent the pans with foil after 20 minutes to prevent over-browning while the center finishes baking. 🌡️

Substituting Ingredients Without Adjustments

Swapping coconut sugar for regular sugar or using whole flaxseeds instead of ground flax meal can throw off your cake's texture and flavor. Coconut sugar adds moisture and caramel notes that regular sugar lacks, while whole flaxseeds won't bind properly.

If you must substitute, adjust measurements—1 tbsp ground flaxseed = 1 flax egg—and be prepared for slight texture differences. Always test small batches first if experimenting with new ingredients.

Nutrition facts

Servings 8
Amount Per Serving
Calories 490kcal
% Daily Value *
Total Fat 32g41%
Saturated Fat 24g120%
Cholesterol 0mg0%
Sodium 320mg14%
Total Carbohydrate 58g20%
Dietary Fiber 8g29%
Sugars 48g
Protein 10g20%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I make this cake without almond flour?

Yes, but texture will change slightly. Replace almond flour with 1:1 cashew flour for a denser crumb, or use 1 cup extra gluten-free flour blend and add 0.5 cup oat flour for better moisture. The almond flour adds natural sweetness and tenderness that's hard to replicate—just be prepared for a slightly different mouthfeel.

2

How do I prevent the cake from cracking?

Cracking often happens from uneven baking or sudden temperature changes. Always preheat your oven to 350°F and use the same size pans (8-inch rounds). Place pans on the middle rack to ensure even heat distribution. Let the cake cool in the pan for 10 minutes before transferring to a rack to prevent sudden cooling that causes cracks.

3

Is this cake suitable for nut-free diets?

No, this recipe contains almond flour. For a nut-free version, substitute with 1:1 oat flour or coconut flour (though you'll need to reduce other liquids by 0.25 cup since coconut flour absorbs more moisture). The flavor will be less rich, but it will still be delicious and safe for nut allergies.

4

Can I bake this in a single 9-inch pan instead of two 8-inch pans?

Yes, but expect a taller, denser cake. Reduce baking time by 5-7 minutes (check at 20 minutes) since heat will distribute differently. For best results, use a 9x2-inch pan and bake at 325°F instead of 350°F to prevent over-browning. The texture will be similar but slightly more compact.

5

What's the best dairy-free frosting for this cake?

I recommend a vegan chocolate ganache made with 1 cup dairy-free dark chocolate chips, 0.5 cup coconut cream, and 1 tbsp coconut oil. Heat gently until smooth, then cool to spreadable consistency. For a lighter option, try cream cheese frosting using vegan cream cheese (like Kite Hill) and powdered sugar—it pairs beautifully with the rich chocolate cake.

★★★★★4.7(14 reviews)
Categories Desserts