Fudgy Gluten Free Chocolate Cake Recipe

This gluten-free chocolate cake is unbelievably moist, fudgy, and tender, finished with a light buttercream frosting — it truly rivals the best chocolate cakes. This version is adapted from a classic chocolate cake recipe with adjustments for the absence of gluten. The recipe is straightforward, but there are a few important tips to note, so read through the post before you begin.

gluten free chocolate cake slice in plate

How to make gluten free chocolate cake

1. Mix milk and vinegar and set aside.
2. Whisk dry ingredients together. For gluten-free cakes a whisk is preferred because it aerates the mix and breaks up clumps without the need to sift. This “hipper” method helps distribute leavening evenly.
3. Add the wet ingredients (except the coffee). Whisk until streak-free; the batter will be thicker at this stage. Give it a few extra whisks (about 4–5) to fully emulsify the mixture.
4. Pour in hot coffee. If you prefer not to use coffee, boiling water works too, but coffee enhances the chocolate flavor.
5. Whisk until smooth and fluid. At this point be careful not to overmix — you want to preserve the air bubbles created by baking powder and baking soda. The batter will become very loose and pourable.
6. Bake and cool. Once baked and cooled to room temperature, chilling the layers in the freezer for 20–30 minutes makes them easier to frost.
7. Make the frosting. Cream butter with cocoa powder, powdered sugar, and salt until smooth; add vanilla and milk and whip until light and fluffy.
8. Layer and frost. Assemble the cooled layers, frost, and add a light sprinkle of sea salt flakes if desired — the combination with chocolate is excellent.

gluten free chocolate cake dry ingredients whisked together in bowl
gluten free chocolate cake wet ingredients added to dry ingredients in bowl
gluten free chocolate cake batter minus hot coffee
gluten free chocolate cake batter with hot coffee being poured in

After adding the hot coffee, whisk just until combined. Overmixing now can deflate the batter. You should see lots of tiny bubbles in the batter — an excellent sign that the leavening is active.

gluten free chocolate cake complete batter in bowl

Cooling tips: allow cakes to cool completely at room temperature. For easier decorating, place the fully cooled layers in the freezer for 20–30 minutes until firm. This makes trimming and frosting much cleaner.

gluten free chocolate cake buttercream frosting in bowl

Picking a gluten free flour blend

Not all gluten-free flour blends behave the same. If you want the most reliable result, choose a 1:1 gluten-free baking flour that already contains xanthan gum. Xanthan gum helps thicken and bind the batter so the cake holds structure and slices cleanly. If you try a different brand later, expect slight differences in texture and baking time.

sliced gluten free chocolate cake on cake stand

Measuring gluten free flour

Gluten-free flour is typically finer and can pack more densely than regular all-purpose flour. For the most consistent results, use a kitchen scale. If you must use measuring cups, use the spoon-and-level method: spoon the flour into the measuring cup so it stays light, then level with a knife. Do not shake or tap the cup, as that packs the flour and adds extra weight.

Gluten free cake batter

Gluten-free cake batters often look much thinner than traditional batters. That’s intentional: gluten-free flours absorb liquid differently, so a looser batter helps ensure the finished cake remains moist and tender. Expect this batter to be quite fluid after the hot coffee is added — almost as thin as water — and know that’s normal for a successful result.

How to bake gluten free cake

Because gluten-free batter contains extra liquid, slightly longer baking helps the flour fully absorb moisture and avoids a gummy or gritty texture. This cake benefits from a little extra oven time — but avoid overbaking to the point of dryness. Signs of a perfectly baked gluten-free chocolate cake:

  1. Puffed center: Cakes will dome slightly in the oven, which helps keep them moist.
  2. Golden edges: Edges may appear lightly golden — a helpful cue that the cake is baked through.
  3. Poke test: The center should spring back when pressed gently.
  4. Skewer test: A skewer will usually come out with a few moist crumbs; it shouldn’t be overly wet.

Also cool the cake in the pan a bit longer than you might for a wheat-based cake. That resting time helps the crumb set and makes removing the layers easier.

sliced gluten free chocolate cake on cake stand

One last tip

Make the recipe as written for your first attempt. Gluten-free baking can be sensitive to substitutions; small changes in flour type, liquid, or fat can significantly alter the outcome. Once you’ve made the cake exactly as written and understand how it behaves, feel free to experiment.

sliced gluten free chocolate cake on cake stand

Other recipes to try

Flourless Chocolate Chip Cookies • Easy Chocolate Pudding • Chocolate Cream Cheese Frosting • Vanilla Buttercream Frosting

Ingredients

For the chocolate cake:

  • 1 cup (240 mL) whole milk
  • 1 tablespoon white or apple cider vinegar
  • 2 cups (270 g) 1:1 gluten-free baking flour (blend must include xanthan gum)
  • 1 ½ cups (300 g) granulated sugar
  • 1 cup (90 g) unsweetened cocoa powder
  • 2 tablespoons cornstarch
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • ½ teaspoon salt
  • 3 large eggs
  • ½ cup (120 mL) vegetable oil or other neutral oil
  • 2 teaspoons pure vanilla extract
  • 1 cup (240 mL) hot coffee (or boiling water)

For the chocolate buttercream:

  • 1 ½ cups (340 g) unsalted butter, softened
  • ¾ cup (75 g) unsweetened cocoa powder
  • 5 cups (600 g) powdered sugar
  • ½ teaspoon salt
  • 2 teaspoons pure vanilla extract
  • 3–4 tablespoons milk, as needed for consistency
  • Sea salt flakes (optional, for topping)

Instructions

Make the chocolate cake:

  1. Preheat the oven to 350°F (175°C). Butter the bottoms and sides of two 8-inch round cake pans and line the bottoms with parchment rounds. Set aside.
  2. Combine the milk and vinegar in a measuring cup and set aside to curdle slightly.
  3. In a large bowl, whisk together the gluten-free flour, sugar, cocoa powder, cornstarch, baking powder, baking soda, and salt. Use a whisk to break up clumps and aerate the mixture.
  4. Add the eggs, oil, vanilla, and the milk mixture to the dry ingredients. Whisk until streak-free, then give 4–5 extra whisks to fully combine.
  5. Stir in the boiling hot coffee and whisk just until combined. Do not overmix. The batter will be very thin.
  6. Divide the batter evenly between the prepared pans.
  7. Bake on the center rack for 35–40 minutes. The tops should spring back lightly and the edges may be slightly golden. A toothpick should come out with just a few moist crumbs.
  8. Cool in the pans for 20 minutes, then turn the cakes out onto a wire rack and cool completely before frosting.

Make the buttercream frosting:

  1. In a large bowl, beat the butter with the cocoa powder, powdered sugar, and salt on low speed until the dry ingredients are incorporated and no large lumps remain.
  2. Add the vanilla and 3 tablespoons of milk. Increase speed to medium-high and whip until light and fluffy, about 3–4 minutes.
  3. If needed, add more milk a little at a time until the frosting reaches your desired consistency.
  4. If your cake tops are domed, trim them level with a serrated knife before filling and frosting.
  5. Place one cake layer on a serving plate, spread about one-third of the frosting over it, top with the second layer, and frost the outside of the cake. Sprinkle with sea salt flakes if desired, then slice and serve.

Equipment

  • Two 8″ round cake pans
  • Mixing bowls
  • Whisk
  • Electric mixer (optional, for frosting)
  • Wire cooling rack

Notes

* Choose a 1:1 gluten-free baking flour that includes xanthan gum. That ingredient is important for structure and texture in this cake.

** Coffee deepens the chocolate flavor; it will not make the cake taste like coffee. Substitute boiling water if preferred.

Did you make this recipe?

Tag me on Instagram — I love seeing photos of what you bake!

Enjoy!