Best Gluten-Free Chocolate Cake Recipe: 3 Simple Secrets for a Moist, Fudgy Cake

Prep Time 35min
Cook Time 30min
Total Time 2h 5min (+1h of cooling)
Calories 660 kcal

Quick answer: This gluten free chocolate cake recipe gets its tender crumb from a 1:1 gluten-free flour blend, cocoa powder, neutral oil, and a cup of hot coffee or water that hydrates the batter. Plant milk soured with vinegar and flax or chia eggs keep it egg-free and dairy-free, and it bakes level without turning gummy or sinking.

I’ve baked a lot of bad gluten-free cakes. Dry ones, gummy ones, one that sank so badly in the middle I filled the crater with frosting and called it a “chocolate bowl.” This gluten free chocolate cake recipe is the one that finally stopped all that. It’s dark, soft, and fudgy, and nobody at the table asks whether it’s gluten-free until you tell them.

It also happens to skip eggs and dairy, which mostly comes down to the way the recipe is built. Oil instead of butter, soured plant milk instead of buttermilk, and a lot of hot liquid. I’ll explain why each of those matters first, because once you know what’s going on in the bowl, a gluten-free chocolate cake gets a lot less mysterious. If you just want to bake, skip to the recipe. And if you’re in the mood for something other than chocolate, there are more gluten-free cake recipes to pick from.

The science behind a moist gluten-free chocolate cake

Wheat flour forgives a lot. Gluten builds a stretchy net that holds a cake together even when you overmix or overbake a little. Gluten-free flour blends are mostly rice flour and starches held together with xanthan gum, and they behave differently. They need more liquid, they dry out faster, and they punish guesswork. Three choices in this recipe do most of the heavy lifting.

Why oil beats plant butter here

Butter and plant butter blocks are roughly 80% fat and 15 to 20% water. Oil is all fat. That fat coats the starch granules and keeps the crumb soft for days, where a butter-based gluten-free cake tends to go dry and crumbly by the next afternoon.

A neutral oil like avocado, canola, or vegetable oil lets the cocoa do the talking. Unrefined coconut oil leaves a faint coconut note, which I happen to like with chocolate. A mild olive oil works too; its flavor mostly fades behind the cocoa once the cake cools.

Hot coffee and why the batter looks wrong

Pouring hot coffee into thin gluten-free chocolate cake batter

The last thing you add is a cup of hot coffee or boiling water. Hot liquid dissolves cocoa lumps and “blooms” the cocoa, which pulls out more chocolate flavor. It also gives the rice flour and starches the water they need to soften. You won’t taste coffee in the finished cake. It just tastes more like chocolate.

Here’s the part that scares people: the batter will be thin. Really thin, closer to chocolate milk than cake batter. That’s correct. Gluten-free starches soak up that liquid in the oven, and the extra hydration is exactly what keeps the crumb from turning dry or gummy. Don’t add more flour to “fix” it.

Getting the rise right without a collapse

Stirring a tablespoon of vinegar into soy or oat milk makes a quick dairy-free buttermilk. The acid reacts with baking soda the moment they meet, which gives the batter its first lift. That acid matters even more if you use Dutch-process cocoa, which is treated with alkali to neutralize its natural acidity and can’t wake up baking soda on its own. Baking powder keeps working in the oven and supports the rise until the structure sets.

The balance matters more than the amount. Too much acid or leavening makes the cake rise fast and then fall, leaving a sunken middle. So resist adding an extra splash of vinegar “for good measure.” Plain plant milk plus the measured vinegar gives you the most predictable cake.

Gluten-free flour guide: what works and what fails

The flour blend changes this cake more than anything else in the recipe. Whatever you buy, check that the bag says gluten-free. In the US, that claim means the food contains less than 20 parts per million of gluten under FDA labeling rules. I’ve baked this cake with the three blends below, and each one gives a slightly different result. (If you want to go deeper on blends, my fluffy gluten free pancake guide walks through five flour options.)

FlourXanthan gum included?What to expect
Bob’s Red Mill Gluten Free 1-to-1 (blue bag)YesThin batter, very moist and fudgy layers. My favorite for this cake.
King Arthur Measure for MeasureYesSlightly thicker batter and a fluffier, more delicate cake. It often needs a few extra minutes in the oven.
Doves Farm FREEE Plain Gluten Free FlourNoWorks well, but you have to add xanthan gum yourself. Follow the amount on the bag for cakes.

A small tweak if your cake comes out gummy

Some 1:1 blends lean heavily on starch, and starch-heavy cakes can feel gummy. Swapping 30 to 40% of the blend for certified gluten-free oat flour fixes this. In practice that means 1 cup of your 1:1 blend plus 3/4 cup oat flour. The oat flour adds a little whole-grain flavor and a softer, less elastic crumb. One caution: a review of the research by Health Canada found most people with celiac disease can eat uncontaminated oats, but not everyone can. Skip this swap if you’re baking for someone who avoids oats.

If you’re working with a lighter or whole-grain blend that bakes up too crumbly, a tablespoon or two of tapioca starch adds some stretch and chew.

Flours you can’t swap in one-for-one

Almond flour, coconut flour, plain rice flour, and oat flour on its own won’t work as a straight swap. Each absorbs liquid at a completely different rate, and none of them can hold a cake together without a blend and a binder. Coconut flour is the worst offender. It drinks so much liquid that this cake would turn into a dense brick. If you want an almond flour chocolate cake, use a recipe written for it.

Egg replacers compared

In a cake without gluten, eggs usually do a lot of the binding. This chocolate cake doesn’t use them, so the egg replacer has to hold things together. Any of these works for the two eggs the recipe calls for.

Replacer (for 2 eggs)AmountResult
Flax eggs2 tbsp ground flaxseed + 6 tbsp water, rested 10 minutesStrong binding and a dense, fudgy crumb. My default.
Chia eggs2 tbsp ground chia + 6 tbsp water, rested 10 minutesA good gel with no flavor you’ll notice.
Unsweetened applesauce1/2 cupExtra moisture, decent binding, and you can’t taste it.
Mashed banana or avocado1/2 cupMoist and a bit sweeter, with a faint fruity note. Banana is the more obvious of the two.

Flax gives the most “brownie-like” texture, which is what I want from a chocolate cake. If you’d rather have something lighter and softer, applesauce is the better pick. And if banana is your thing, it does a lot more work in our gluten free banana bread.

The gluten free chocolate cake recipe

Prep time: 20 minutes. Bake time: 28 to 35 minutes. Makes two 8-inch round layers or one 9×13-inch sheet cake.

Slice of moist gluten free chocolate layer cake with chocolate buttercream

Ingredients

Weigh the flour if you can. Gluten-free blends vary a lot in weight per cup, so check your bag.

  • 1 3/4 cups gluten-free 1:1 flour blend with xanthan gum (about 245 to 260 g). Or use 1 cup 1:1 blend plus 3/4 cup certified gluten-free oat flour.
  • 3/4 cup unsweetened cocoa powder (about 70 g), Dutch-process if you have it
  • 1 cup granulated sugar (200 g)
  • 3/4 cup packed light brown sugar (150 g). The molasses in it keeps the cake moist.
  • 1 1/2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon fine sea salt
  • 1 cup unsweetened soy or oat milk (240 ml)
  • 1 tablespoon white vinegar or apple cider vinegar
  • 1/2 cup neutral oil (120 ml), such as avocado, canola, or melted refined coconut oil
  • 2 flax or chia eggs, or 1/2 cup unsweetened applesauce
  • 1 tablespoon pure vanilla extract
  • 1 cup hot brewed coffee or boiling water (240 ml)
  • Optional: 1 cup dark chocolate chips tossed in 2 teaspoons of the flour blend so they don’t sink

How to make it

  1. Prep the pans. Heat the oven to 350°F (175°C). Grease two 8-inch round pans, line the bottoms with parchment, and grease the parchment too. If you have fabric cake strips, soak them and wrap them around the pans. They keep the layers flat.
  2. Make the buttermilk. Stir the vinegar into the plant milk and leave it for 5 minutes. It will thicken and look slightly curdled.
  3. Sift the dry ingredients. Sift the flour, cocoa, both sugars, baking powder, baking soda, and salt into a large bowl. Cocoa clumps stubbornly, so don’t skip the sieve.
  4. Whisk the wet ingredients by hand. In another bowl, whisk the oil, soured milk, flax eggs, and vanilla. Leave the electric mixer in the cupboard. It beats in too much air, and that air is a common reason gluten-free cakes sink.
  5. Combine, then add the hot liquid. Pour the wet ingredients into the dry ones and whisk until no dry flour remains. Slowly pour in the hot coffee while whisking. The batter will be thin and pourable. That’s what you want.
  6. Bake. Divide the batter between the pans and bake for 28 to 35 minutes.
  7. Check early. Start testing at 28 minutes. A toothpick in the center should come out with moist crumbs clinging to it. Wet batter means it needs longer, but a perfectly clean toothpick means you’ve gone a little too far.
  8. Cool before frosting. Leave the layers in their pans on a wire rack for 10 to 15 minutes. Run a knife around the edges, turn them out, peel off the parchment, and let them cool completely. Frosting a warm gluten-free cake is how you get torn layers.

Troubleshooting common gluten-free cake problems

Most failures with this cake trace back to one of four things. Find your problem in the left column.

ProblemLikely causeFix
Center sinksToo much air from an electric mixerWhisk the batter by hand.
Center sinksToo much acid or leaveningMeasure the vinegar and baking soda exactly. Don’t add extra.
Dry, crumbly textureOverbakedPull the cake when the toothpick shows moist crumbs.
Dry, crumbly textureButter used instead of oilUse a neutral liquid oil.
Gummy or heavyStarch-heavy flour blendReplace 30 to 40% of the blend with gluten-free oat flour.
Gummy or heavyToo much flour from scoopingWeigh the flour, or spoon it into the cup and level it.
Sticks to the panNo parchmentLine the pan bottoms with greased parchment rounds.

If I had to pick one habit that saves the most cakes, it’s weighing the flour. A scooped cup of gluten-free flour can easily run 20% heavy, and that alone turns a fudgy cake into a gummy one.

Frosting, assembly, and storage

This chocolate cake is good enough to eat plain, but two layers of it with fudgy frosting is a proper celebration cake. Both frostings below stay dairy-free. Check that your chocolate is too, since some dark chocolate contains milk.

Fluffy chocolate buttercream

Beat 1 cup of room-temperature plant butter block (Country Crock Plant Butter and Stork both work) for 3 to 4 minutes, until pale. Sift in 3 cups of powdered sugar and 1/2 cup of cocoa powder a little at a time. Then beat in 1 teaspoon of vanilla, a pinch of salt, 8 oz of melted dark chocolate, and a splash of plant milk.

Let the melted chocolate cool to room temperature before it goes in. Warm chocolate melts the butter and you end up with chocolate soup. I learned this the hard way, twice.

Two-ingredient dark chocolate ganache

Heat 1 cup of full-fat canned coconut milk until steaming. Pour it over 8 oz of finely chopped 70 to 85% dark chocolate, wait one minute, then whisk until glossy. You can pour it straight over the cake or let it cool a bit and spoon it around the edge of a buttercream-frosted cake for drips.

Assembly and storage

Crumb coat first. Spread a very thin layer of frosting over the top and sides, then chill the cake for 20 minutes. This locks loose crumbs in place so your final layer goes on clean. Gluten-free cake is more crumbly than regular cake, so this step matters more here.

Wrapped well, the cake keeps for up to 3 days at room temperature, 5 days in the fridge, or 3 months in the freezer. Unfrosted layers freeze best. Bring refrigerated cake back to room temperature before serving, because cold gluten-free cake tastes dry even when it isn’t.

Frequently asked questions

Can I make this as cupcakes or a sheet cake?

Yes. For a 9×13-inch sheet cake, pour all the batter into one lined pan and bake for 30 to 35 minutes. For cupcakes, fill liners two-thirds full and bake at 350°F (175°C) for 15 to 18 minutes. You’ll get about two dozen.

Can I use regular all-purpose flour instead?

Yes. If you don’t need the cake to be gluten-free, swap in all-purpose wheat flour cup for cup and leave out any xanthan gum you would have added separately. The batter will still be thin, and the cake will be a little springier.

Will the cake taste like coffee?

No. The coffee makes the chocolate taste deeper and darker, but you won’t pick out a coffee flavor. If you’re avoiding caffeine, decaf or plain boiling water both work fine. Water gives a slightly milder chocolate flavor.

How do I stop the layers from doming?

Wrap damp fabric cake strips around the outside of the pans before baking. The edges heat more slowly, so the cake rises evenly instead of peaking in the middle. A sheet of wet folded paper towel wrapped in foil does the same job if you don’t own strips.

Is this the best gluten free recipe for chocolate cake for birthdays?

It’s the one I make for every birthday in our house, and the one I’d hand to anyone baking gluten-free for the first time. The batter is forgiving, the layers stack well, and it tastes like the chocolate cake you grew up with. Start with the buttercream, and save the ganache for when you want to show off. Planning a whole dessert table? These 13 easy gluten free dessert recipes pair well with it, and you’ll find even more in our gluten-free desserts collection.

Best Gluten-Free Chocolate Cake Recipe: 3 Simple Secrets for a Moist, Fudgy Cake

A moist, fudgy gluten free chocolate cake made with a 1:1 gluten-free flour blend, oil, and hot coffee, layered with fluffy chocolate buttercream and finished with an optional dark chocolate ganache drip. It's egg-free and dairy-free, and nobody will guess it's gluten-free.

  • Prep Time 35min
  • Cook Time 30min
  • Total Time 2h 5min (+1h of cooling)
  • Servings 12
  • Calories 660 kcal

Ingredients

For the cake

For the chocolate buttercream

For the ganache drip (optional)

Instructions

Make the cake

  1. Heat the oven to 350°F (175°C). Grease two 8-inch round cake pans, line the bottoms with parchment, and grease the parchment.
  2. Mix the ground flaxseed with the water and let it rest for 10 minutes to thicken.
  3. Stir the vinegar into the plant milk and let it sit for 5 minutes until slightly curdled.
  4. Sift the flour, cocoa powder, granulated sugar, brown sugar, baking powder, baking soda, and salt into a large bowl.
  5. In a separate bowl, whisk the oil, soured plant milk, flax eggs, and vanilla by hand.
  6. Pour the wet ingredients into the dry ingredients and whisk until no dry flour remains.
  7. Slowly pour in the hot coffee while whisking until smooth. The batter will be very thin.
  8. Divide the batter between the pans and bake for 28 to 35 minutes, until a toothpick in the center comes out with moist crumbs.
  9. Cool in the pans for 10 to 15 minutes, then turn the layers out onto a wire rack, peel off the parchment, and cool completely.

Make the buttercream

  1. Beat the plant butter for 3 to 4 minutes until pale and fluffy.
  2. Sift in the powdered sugar and cocoa powder a little at a time, beating after each addition.
  3. Beat in the vanilla, salt, and cooled melted chocolate, then add plant milk a splash at a time until spreadable.

Make the ganache

  1. Heat the coconut milk until steaming, pour it over the chopped chocolate, wait 1 minute, then whisk until glossy. Let it cool slightly.

Assemble

  1. Place one cake layer on a stand, spread a thick layer of buttercream on top, and add the second layer.
  2. Spread a thin crumb coat of buttercream over the top and sides and chill for 20 minutes.
  3. Frost the cake with the remaining buttercream.
  4. Spoon the slightly cooled ganache around the top edge so it drips down the sides, then spread the rest over the top.

Notes

Weigh the flour if you can. Gluten-free blends vary in weight per cup, and too much flour makes the cake gummy.
The thin, watery batter is correct. Don't add extra flour.
Whisk by hand. An electric mixer adds too much air and can make the center sink.
No coffee? Use decaf or boiling water. The cake won't taste like coffee either way.
Egg swaps: 2 chia eggs or 1/2 cup unsweetened applesauce work in place of the flax eggs.
Gummy cake? Replace 3/4 cup of the 1:1 blend with certified gluten-free oat flour.
Sheet cake: bake in a lined 9x13-inch pan for 30 to 35 minutes. Cupcakes: fill liners two-thirds full and bake for 15 to 18 minutes (makes about 24).
Storage: keeps well wrapped for 3 days at room temperature, 5 days in the fridge, or 3 months in the freezer. Serve at room temperature.
Check that your chocolate, cocoa, and powdered sugar are labeled gluten-free, and that your chocolate is dairy-free if needed.
Calories are an estimate per slice (1/12 of the cake) with buttercream, without the ganache. The ganache adds about 150 kcal per slice.

SliceOfSweet-dessert-cake-cookies-pie-recipes

SliceOfSweet

Every recipe on SliceOfSweet is tested in a real kitchen before it goes live nothing gets posted unless it’s good enough to make again. When we’re not baking, we’re experimenting with the next flavor combination to try.