Most people assume a gluten-free chocolate cake is dry and crumbly, but a good gluten-free flour blend plus a few extra moistening ingredients makes a cake that is tender, rich, and nearly indistinguishable from a wheat-flour version. The direct answer: yes, you can bake a chocolate cake with gluten-free flour, and it will be moist and fudgy if you use a 1-to-1 baking blend and add an extra egg or a little more liquid. The key is knowing which flour to pick and how to adjust the batter.
Choose a 1-to-1 Gluten-Free Flour Blend
Use a 1-to-1 gluten-free baking flour that already contains xanthan gum, such as Bob’s Red Mill 1-to-1 Baking Flour or King Arthur Measure for Measure. These blends are formulated to replace wheat flour cup for cup in most recipes, so you don’t need to change the amount of flour. If your blend does not list xanthan gum, add 1/2 teaspoon per cup of flour; without it, the cake will be crumbly and fall apart.
Avoid using single flours like almond flour, coconut flour, or rice flour alone—they behave very differently and need their own recipes. Almond flour makes a denser, moister cake but is not a straight swap. Coconut flour absorbs a huge amount of liquid and would turn your cake into a brick. Stick with a labeled 1-to-1 blend for the simplest, most reliable result.
Add Moisture: Extra Egg and a Little More Liquid
Gluten-free flours soak up more liquid than wheat flour, so the batter needs a boost. For a standard 9-inch two-layer cake that calls for 2 cups of flour, add one extra large egg and 2 to 3 tablespoons of milk or buttermilk. This replaces the structure and tenderness that gluten would normally provide.
You can also swap the oil for a combination of oil and sour cream or yogurt—use 1/2 cup oil and 1/2 cup sour cream instead of 1 cup oil. The extra fat and acid keep the crumb soft and help the cake stay moist for days. If you use a blend with xanthan gum, do not overmix; stir just until the flour is incorporated, about 30 seconds, or the cake can become gummy.
Bake at 350°F (177°C) for 25–30 Minutes
Preheat your oven to 350°F (177°C). Grease and line two 9-inch (23 cm) round pans with parchment paper. Pour the batter into the pans and bake for 25–30 minutes, until a toothpick inserted in the center comes out with a few moist crumbs, not wet batter. Start checking at 25 minutes; gluten-free cakes can go from done to dry quickly.
Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack and cool completely before frosting. If you are making a single 9×13-inch pan, bake for 30–35 minutes. For cupcakes, bake for 18–22 minutes. The cake is done when the top springs back lightly to a touch.
Adjust the Recipe: Cocoa, Sugar, and Liquid Balance
If you are converting your own chocolate cake recipe, keep the cocoa and sugar amounts the same, but reduce the flour by 2 tablespoons per cup and add that much extra liquid. For example, if the recipe calls for 2 cups all-purpose flour, use 2 cups gluten-free flour minus 2 tablespoons, and add 2 tablespoons of milk or coffee. Coffee deepens the chocolate flavor without adding a coffee taste—use brewed coffee or espresso in place of the water or milk in the batter.
For a richer, fudgier cake, replace 1/4 cup of the flour with 1/4 cup of unsweetened cocoa powder (in addition to the recipe’s cocoa) and add 1 extra tablespoon of oil. This works well for a single-layer cake. If you want a lighter, airier texture, separate the eggs and whip the whites to soft peaks, then fold them in at the end; this adds volume that gluten-free flours lack.
Quick Reference Table for Common Cake Pans
| Pan Size | Batter Amount | Bake Time at 350°F (177°C) |
|---|---|---|
| Two 9-inch (23 cm) rounds | Full recipe (about 6 cups batter) | 25–30 minutes |
| 9×13-inch (23×33 cm) rectangle | Full recipe | 30–35 minutes |
| 12 cupcakes | Full recipe | 18–22 minutes |
| One 8-inch (20 cm) round | Half recipe | 22–26 minutes |
Check doneness with a toothpick or a thin knife; it should come out with only a few moist crumbs, not wet batter. If the top browns too fast, tent the pan loosely with foil after 20 minutes.
Frost and Store So It Stays Moist
Use a buttercream, cream cheese, or ganache frosting—all work well on gluten-free cake. Because the cake is more delicate than wheat cake, chill the layers for 30 minutes before frosting to prevent crumbs from pulling off. Frost the cake the day you serve it for the best texture, or store unfrosted layers wrapped tightly in plastic wrap for up to 2 days at room temperature.
Frosted cake keeps in the refrigerator for up to 4 days; let it sit at room temperature for 30 minutes before serving to soften. You can freeze unfrosted layers for up to 3 months: wrap each layer in plastic wrap, then foil, and thaw in the refrigerator overnight. Do not freeze a frosted cake—the frosting can weep and the cake can become soggy.
If you have leftover batter, bake it into cupcakes or a small loaf; do not refrigerate raw batter for more than a few hours because the leavening will lose strength. Always check your flour blend’s label for xanthan gum and any other additives, and if you are baking for someone with celiac disease, confirm the flour is certified gluten-free.
Spotted a mistake? Tell us and we will correct it. How we write and check articles.