Gluten-Free Chocolate Cake
This batter looks wrong. It pours almost like thin pancake batter, and that’s exactly what you want from a gluten free chocolate cake that bakes up tender instead of dry. Trust the thin batter and the rest is mostly measuring.
Start with a gluten free flour blend that already has xanthan gum
For a gluten free chocolate cake, you need 1 cup (140 g) of a 1-to-1 baking blend, and the label has to say it contains xanthan gum. The gum does the work that wheat gluten normally does, trapping air and holding the crumb together. Leave it out and you get a cake that rises, then crumbles when you cut it.

Brands differ. Some blends lean on rice flour and can feel faintly sandy, while others use more starch and bake softer. Any gluten free flour blend with gum will work, though the texture shifts a little from brand to brand. If yours has no gum, pick another blend instead of guessing how much to add. If you’re baking for someone with celiac disease, the Celiac Disease Foundation’s overview of what gluten is and where it hides is worth a read.
Don’t skip the 5-minute rest before baking. Gluten free flours absorb liquid slowly, so the batter thickens a little as it sits and the cake bakes up less gritty. Skip it and a sandy bite is the usual complaint. You’ll see the same slow soaking across gluten free baking, which is why a short rest helps so many batters.
Natural cocoa, baking soda and hot coffee
Use unsweetened natural cocoa, not Dutch-processed. Natural cocoa is acidic, and that acid is what sets off the 3/4 tsp of baking soda to produce lift. Switch to Dutch-processed and the soda has little to react with, so the cake can bake up flat and dense. The 1 tsp of baking powder adds a second source of rise.

Half a cup (45 g) of cocoa is a lot of dry material, and it soaks up liquid. That’s part of why the batter is so thin. Our gluten free brownies get a shiny, crackly top.
Then comes the hot coffee. A 1/2 cup (120 ml) deepens the chocolate flavor without making the cake taste like coffee, and the heat helps the cocoa dissolve into the batter. Hot water works if you’d rather skip it, though the chocolate will taste a bit less deep. Whisk gently once it goes in.
Eggs, milk and oil keep the crumb soft
Oil is what makes this a moist chocolate cake. A 1/4 cup (60 ml) of vegetable oil stays liquid when the cake cools, so the crumb feels soft the next day, while butter would firm up as it chilled. Butter shows up only to grease the pan. Our gluten free sugar cookies have soft, chewy centers.

Room temperature eggs and milk blend more evenly into the cocoa mix. Cold ones can leave the batter patchy, and you’ll chase lumps with the whisk.
Some gluten free cake substitutions hold up, and some don’t:
- Works: a plain non-dairy milk in the same 1/2 cup (120 ml) amount, or another neutral oil in place of the vegetable oil. The flavor shifts slightly, and the structure stays.
- Doesn’t: swapping out the two eggs. With no gluten in the flour, the eggs carry much of the structure, so skip any replacement that isn’t from a recipe built for it.
If you’re cooking for someone with an allergy or intolerance, read the labels on your flour blend, cocoa and vanilla yourself. Ingredients vary by brand.
What you should see from bowl to rack
Exact steps live on the recipe card. This table is for checking your progress against them. If you’re baking for a birthday, our gluten free cupcakes are easy to share.
| Stage | What you should see |
|---|---|
| Dry ingredients whisked | One even dark color, no cocoa lumps |
| Eggs, milk, oil and vanilla added | Smooth and thick, no dry streaks |
| Hot coffee added | Glossy and pourable, like thin pancake batter |
| After the 5-minute rest | Slightly thicker than before |
| In the pan | Level surface after two taps on the counter |
| 28 to 32 minutes at 350°F | Top springs back, toothpick has a few moist crumbs |
| 10 minutes cooling in the pan | Edges pull slightly from the sides |
Fixing a gluten free chocolate cake that went wrong
Most failures trace back to a handful of causes, and most are avoidable the next time. For a breakfast loaf, bake our gluten free banana bread.
| Problem | Likely cause | What to do |
|---|---|---|
| Sandy, gritty bite | Batter wasn’t rested, or the blend is rice-heavy | Rest the batter the full 5 minutes next time, or try a different blend |
| Crumbles when sliced | Blend without xanthan gum | Use a 1-to-1 blend that lists it |
| Flat, dense cake | Dutch-processed cocoa or tired baking soda | Use natural cocoa and fresh leaveners |
| Dry edges | Baked past 32 minutes | Start checking at 28 minutes |
| Sticks to the pan | Skipped parchment, or turned out too early | Line and grease the parchment, and run a thin knife around the edge |
A cake that’s already dry can’t be fixed, but a thin layer of ganache or frosting hides a lot and makes each slice taste moister.
Pan sizes, toppings and storage
This cake pan size guide is short. The batter is built for one 9-inch round pan. An 8-inch pan gives a taller cake that needs longer, and a wider pan gives a thinner one that bakes faster. Judge by the springy top and the toothpick, not the clock, and keep the oven at 350°F either way.
A dusting of powdered sugar is all the card asks for. If you want more, a chocolate ganache topping sets glossy and holds up well on this cake. A dairy free chocolate frosting, made with a non-dairy spread, is the other easy route. Put either on only after the cake is cool all the way through, because a warm cake melts it.
For a gluten free birthday cake with layers, mix a second batch and bake it in a second 9-inch pan instead of stretching one batch.
As for how to store cake like this, keep it covered at room temperature for a day or two. Gluten free cakes tend to stale faster than wheat ones, and the fridge often speeds that up. Wrap slices tightly and freeze them if you need longer.
Questions people ask
Can I make this cake without xanthan gum?
Not reliably. The recipe is written for a 1-to-1 blend that already contains it, and without it the cake tends to crumble. Choose a different blend rather than guessing an amount to add.
Can I use hot water instead of coffee?
Yes, in the same 1/2 cup (120 ml) amount. The cake still bakes the same way, but the chocolate flavor is a little less deep.
Why is my gluten free chocolate cake dry or crumbly?
Usual causes are baking past 32 minutes, skipping the 5-minute rest, or using a blend with no xanthan gum. Check the cake from 28 minutes, when the top should spring back and a toothpick should show a few moist crumbs.
Is it safe to taste the batter?
Skip it. The batter contains raw eggs, and the CDC advises against eating raw dough or batter.
Wait the full 30 minutes before slicing
It’s tempting to cut short the 10 minutes in the pan and 20 more on the rack that the card asks for. Don’t. Gluten free cakes keep setting as they cool, and a slice from a still-warm cake can look gummy even when it’s perfectly baked. Dust the powdered sugar on only when you’re ready to serve, so it stays pale on the surface.
Looking for something else to bake? See everything in Gluten-Free Baking.
Gluten Free Chocolate Cake: Moist and Easy in 45 Minutes
A one-bowl gluten free chocolate cake with a tender, moist crumb and deep cocoa flavor. It bakes in a single 9-inch pan and needs only a dusting of powdered sugar.
- Prep
- 15 min
- Cook
- 30 min
- Rest
- 30 min
- Total
- 1 hr 15 min
- Makes
- 8 slices
- Calories
- About 270 per serving
- Oven
- 350°F / 175°C
Ingredients
Cake
- 1 Tbsp (14 g) butter, softened, for greasing the pan
- 1 cup (140 g) gluten free 1-to-1 baking flour blend that contains xanthan gum
- 1 cup (200 g) granulated sugar
- 1/2 cup (45 g) unsweetened natural cocoa powder
- 1 tsp baking powder
- 3/4 tsp baking soda
- 1/2 tsp fine salt
- 2 large eggs, at room temperature
- 1/2 cup (120 ml) milk, at room temperature
- 1/4 cup (60 ml) vegetable oil
- 1 tsp vanilla extract
- 1/2 cup (120 ml) hot brewed coffee or hot water
To finish
- 2 Tbsp (15 g) powdered sugar
Instructions
- Heat the oven to 350°F. Grease a 9-inch round cake pan with the butter, line the bottom with a parchment circle, and grease the parchment. The pan should look evenly glossy.
- In a large bowl, whisk the flour blend, granulated sugar, cocoa powder, baking powder, baking soda, and salt until no cocoa lumps remain and the mix is one even dark color, about 1 minute.
- Add the eggs, milk, oil, and vanilla. Whisk until smooth and thick, about 1 minute, with no dry streaks left.
- Pour in the hot coffee and whisk gently until the batter is glossy and pourable, like thin pancake batter. It will look thin, which is correct.
- Let the batter rest for 5 minutes so the gluten free flour can absorb the liquid. It will thicken slightly.
- Pour the batter into the pan and tap the pan on the counter twice to pop large bubbles. The surface should look level.
- Bake at 350°F for 28 to 32 minutes. The cake is done when the top springs back when lightly pressed and a toothpick in the center comes out with a few moist crumbs, not wet batter.
- Cool the cake in the pan on a rack for 10 minutes, until the edges pull slightly from the sides. Run a thin knife around the edge, turn the cake out, peel off the parchment, and set it right side up on the rack.
- Cool for 20 more minutes, until the cake feels barely warm to the touch. Dust with the powdered sugar through a fine sieve just before serving.
Notes
- Use a 1-to-1 flour blend that already contains xanthan gum. If yours does not, add 1/2 teaspoon xanthan gum to the dry ingredients.
- Weigh the flour blend. Gluten free flours pack differently, and scooping can make the cake dry.
- Do not skip the 5-minute rest. It reduces any gritty texture in the finished cake.
- Coffee deepens the chocolate flavor without making the cake taste like coffee. Hot water works if you prefer.
- Check for doneness at 28 minutes. Overbaking dries out gluten free cakes quickly.
- If you want a frosted cake, let it cool completely first so the frosting does not melt.
- Storage: Cover and keep at room temperature for up to 2 days, or refrigerate for up to 5 days. Bring slices to room temperature before serving. For longer storage, wrap slices tightly and freeze for up to 2 months, then thaw at room temperature.