Easy Gluten-Free Chocolate Cake

Prep 30 minutes
Cook 30 minutes
Servings 16 servings

I’ve baked my fair share of chocolate cakes, but this easy gluten-free chocolate cake might just be my favorite. It’s rich, decadent, incredibly moist, and fudgy, with a deep chocolate flavor that no one would guess is gluten-free. Whether you need a simple gluten-free dessert for a special occasion or just want a no-fuss treat, this quick chocolate cake recipe is the one to try.

A slice of rich, two-layer chocolate cake with creamy chocolate frosting, served on a white plate. A full cake sits on a wooden cake stand in the background, with additional slices plated and glasses of milk nearby.

Listen, when I want a truly indulgent and decadent dessert without a ton of effort, I turn to this moist and fudgy cake. It’s everything a chocolate cake should be—rich, deeply chocolaty, and incredibly satisfying. I promise you won’t go back to boxed gluten-free cake mixes after you try my recipe.

Tips for Success

  • Use the spoon and level method to measure gluten-free flour accurately. Scooping directly from the bag can pack in too much flour, leading to a dry cake.
  • Not all gluten-free flours are created equal. You may experience different baking results depending on the gluten-free flour blend you choose. I like Pillsbury gluten-free.
  • Use room-temperature ingredients, mix just until combined, and avoid peeking while baking. Not following these steps can lead to a sunken or dense cake.
  • Make sure the butter is softened, but not hot.
5 from 92 votes

Gluten-Free Chocolate Cake

Servings: 16 servings
Prep: 30 minutes
Cook: 30 minutes
Total: 1 hour
A slice of rich, two-layer chocolate cake with creamy chocolate frosting, served on a white plate. A full cake sits on a wooden cake stand in the background, with additional slices plated and glasses of milk nearby.
An easy recipe for a gluten-free chocolate cake topped with chocolate buttercream frosting. This recipe also has a dairy-free option.
Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

Equipment

  • 2 9" cake pans

Ingredients 

Cake

  • 1 cup milk, For a dairy-free option, use unsweetened almond milk
  • 1 tablespoon white vinegar or lemon juice
  • 2 cups all-purpose gluten-free flour with xanthan gum, I like Pillsbury gluten-free.
  • 1/2 teaspoon gluten-free baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon salt
  • 1/2 teaspoon ground cinnamon, optional
  • 3/4 cup unsweetened cocoa powder
  • 9 tablespoons unsalted butter, softened, 1/2 cup plus one 1 tablespoon. For a dairy-free option use Smart Balance butter.
  • 2 cups granulated sugar
  • 1 teaspoon pure vanilla extract
  • 2 large eggs
  • 3/4 cup boiling water

Chocolate Buttercream Frosting

  • 1 cup unsalted butter, softened. For a dairy-free option use Smart Balance butter.
  • 2 teaspoons pure vanilla extract
  • 1/4 teaspoon pure almond extract
  • 1 cup unsweetened cocoa powder
  • 1 pinch salt
  • 4 cups powdered sugar
  • 3 tablespoons milk, For a dairy-free option, use unsweetened almond milk

Instructions 

Cake

  • Preheat oven to 350°F (175°C).
  • Cut parchment paper for the bottom of your two 9-inch cake pans and spray with gluten-free cooking spray. I like gluten-free coconut oil spray.
  • Add the white vinegar (or lemon juice) to the 1 cup of milk or dairy-free milk to make the homemade buttermilk.
  • In a medium-sized bowl, add gluten-free flour, salt, baking soda, gluten-free baking powder, cocoa powder, and cinnamon. Stir to combine the ingredients.
  • In a large bowl, cream the softened butter and granulated sugar with a mixer until fluffy.
  • Add the eggs and pure vanilla extract to the butter mixture and mix until fully combined.
  • Add the flour mixture to the butter mixture and mix until fully combined. Scape down the sides if needed.
  • Add the homemade buttermilk to the cake batter and mix until fully combined.
  • Add the boiling water to the batter and mix until fully combined.
  • Pour half of the batter into the first greased 9-inch cake pan and then pour the rest of the batter into the second greased 9-inch cake pan.
  • Bake on the middle rack for 30-35 minutes. Please watch your cakes because all ovens are different. Check the center of the cake by inserting a toothpick to make sure it is done. You will also see the sides of the cake pulling away from the side of the pan.
  • Allow the cakes to cool fully before frosting. I cool my cakes on a baking rack.

Chocolate Buttercream Frosting

  • In a large bowl, cream butter until smooth with a mixer.
  • Add the pure vanilla and almond extract to the butter. Mix until fully combined.
  • Add the cocoa powder and mix until fully combined.
  • Add the powdered sugar one cup at a time to the butter mixture and mix until fully combined.
  • Add the milk to the frosting and beat it until smooth and spreadable.

Frost the Cake

  • Place the first cake with the shiny side down on a plate or a cake plate.
  • Frost the top of the first cake. This will be the frosting in the center of your cake. I like a good amount of frosting in the center.
  • Place the second cake on top of the frosted first cake, the shiny side down.
  • Frost the top and side of the cake with the remaining frosting. Enjoy!
  • I decorated the top with chocolate shavings and frosting flowers using a Wilton 1M tip.
  • Store leftovers in an airtight container.
  • The cake can be frozen for up to 3 months. You can defrost the wrapped cake at room temperature for 2-3 hours or overnight in the refrigerator.

Notes

  • Swap hot water for hot coffee to intensify the chocolate flavor and add a subtle richness.
  • For a tender and moist cake, let the batter rest for 10–15 minutes before baking to absorb all the moisture.
  • I decorated the top with chocolate shavings and frosting flowers using a Wilton 1M tip.
 

Nutrition

Serving: 1servingCalories: 464kcalCarbohydrates: 72gProtein: 5gFat: 21gSaturated Fat: 13gPolyunsaturated Fat: 1gMonounsaturated Fat: 5gTrans Fat: 1gCholesterol: 70mgSodium: 250mgPotassium: 186mgFiber: 5gSugar: 56gVitamin A: 610IUVitamin C: 0.003mgCalcium: 62mgIron: 2mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Additional Info

Course: Baking, Dessert
Cuisine: American
Tried this recipe?Mention @mamaknowsglutenfree or tag #mamaknowsglutenfree!

How to Make Easy Gluten-Free Chocolate Cake Step by Step

Prep Ingredients and Oven : Preheat the oven to 350°F. Cut parchment paper to fit the bottoms of two 9-inch cake pans by tracing the pan and trimming it to size.

Two round cake pans lined with parchment paper and lightly greased, sitting on a white wooden surface with a soft pink-checkered kitchen towel.

Prep Cake Pans: Place the parchment inside, then lightly coat the sides with gluten-free cooking spray—I like using coconut oil spray for a smooth, non-stick finish. 

A small white ceramic jug filled with buttermik, placed on a white wooden surface with a metal whisk nearby.

Make the Buttermilk: Combine 1 cup milk (or dairy-free alternative) and 1 tbsp of white vinegar (or lemon juice) in a small mixing bowl or glass measuring cup. Set aside for later.

A glass mixing bowl containing dry ingredients for gluten-free chocolate cake, including cocoa powder, flour, baking soda, sugar, and cinnamon, with a whisk beside it.

Combine the Dry Ingredients: In a medium-sized mixing bowl, stir together 2 cups gluten-free flour, ½ tsp baking powder, 1 tsp baking soda, 1 tsp salt, ½ tsp ground cinnamon, and ¾ cup unsweetened cocoa powder. Set aside.

A glass mixing bowl with softened butter and sugar, creamed together, placed on a white wooden surface.

Cream Butter and Sugar: In a separate bowl, using a hand or stand mixer, cream together 9 tbsp unsalted butter and 2 cups granulated sugar until fluffy. 

The same butter and sugar mixture now with two cracked eggs and vanilla extract added on top, ready for mixing.

Add the Eggs and Vanilla: Add 2 large eggs and 1 tsp vanilla extract to the butter mixture and mix until fully combined. 

The dry cocoa-flour mixture added on top of the wet butter-egg mixture in a glass bowl, with a hand mixer nearby.

Combine the Flour and Butter Mixture: Add the flour mixture to the butter mixture and mix, scraping the sides down as needed.

The chocolate cake batter partially mixed, with buttermilkl just added, showing an uneven mixture of dry and wet ingredients.

Add the Buttermilk: Pour the buttermilk mixture into the egg mixture and mix until fully combined.

The fully mixed, smooth, and glossy chocolate cake batter in a glass mixing bowl, with a hand mixer coated in batter resting beside it.

Add Boiling Water to the Batter: Carefully add ¾ cups boiling water to the batter and continue mixing until combined.

Two round cake pans filled with smooth gluten-free chocolate cake batter, ready for baking, placed on a white wooden surface.

Fill the Cake Pans: Evenly divide the batter between the two greased 9-inch cake pans, pouring half into each.

Two freshly baked gluten-free chocolate cake layers in round cake pans, cooling on a black wire rack.

Bake the Cakes: Bake on the middle rack for 30-35 minutes, keeping an eye on them since oven temperatures vary. To check for doneness, insert a toothpick into the center—if it comes out clean, the cakes are ready. You’ll also notice the edges pulling away slightly from the sides of the pan. Allow the cakes to cool in the pans for 15 minutes before placing them on a cooling rack to cool completely.

A glass bowl with whipped butter and vanilla extract, ready to be mixed for frosting, with a hand mixer beside it.

Make the Buttercream: In a large bowl, cream 1 cup of softened unsalted butter with a mixer until smooth. Add 2 tsp pure vanilla extract and ¼ tsp pure almond extract, mixing until fully combined. 

A glass bowl with thick and creamy chocolate frosting, fully mixed, with a hand mixer coated in frosting resting nearby.

Add in the Cocoa: Mix in 1 cup of unsweetened cocoa powder and a pinch of salt until evenly incorporated. 

A glass bowl with chocolate frosting, with a mound of powdered sugar added on top, ready to be mixed.

Sweeten the Frosting: Gradually add 4 cups of powdered sugar, one cup at a time, mixing well after each addition. 

A glass bowl with fully mixed chocolate frosting, smooth and fluffy, with a hand mixer coated in frosting resting beside it.

Beat the Frosting: Pour in 3 tbsp milk and beat until the frosting is smooth and spreadable.

A single layer of gluten-free chocolate cake placed on a round marble cake stand, ready for frosting.

Prep the Cakes: Once fully cooled, place the first cake, shiny side down, on a plate or cake stand. 

The first cake layer covered with a smooth layer of chocolate frosting, evenly spread over the top.

Frost the First Layer: Spread a generous layer of frosting over the top—this will be the filling between the layers.

The second gluten-free chocolate cake layer placed on top of the frosted bottom layer, completing the cake assembly.

Add the Second Cake: Set the second cake on top, also shiny side down, pressing gently to secure it. 

A fully frosted gluten-free chocolate cake with swirls of rich chocolate frosting on top, placed on a marble cake stand.

Frost the Cake: Use the remaining frosting to coat the top and sides of the cake evenly. 

A slice being lifted from a fully frosted gluten-free chocolate cake, revealing its moist, dark layers beneath the thick chocolate frosting.

Slice and Serve: Slice up and enjoy!

A close-up of a plated slice of gluten-free chocolate cake, showing two fluffy layers separated by creamy chocolate frosting, with glasses of milk and a wooden cake stand in the background.

Serving Suggestions

This easy recipe makes a rich and moist gf chocolate cake. It’s the perfect dessert to make for birthdays and parties. Trust me, making a homemade chocolate cake does not get any easier than this. But if you are looking for alternatives, I love making these almond flour chocolate cake and flourless chocolate cake recipes, too.

Storage Instructions

Store leftovers in an airtight container like a cake display.

It’s really easy to freeze unfrosted cakes. Once your cakes are completely cool, wrap the cakes with plastic wrap (I like the press and seal wrap), wrap them again with aluminum foil, and then place them in a plastic freezer bag.

More Cake Recipes

About Audrey Roberts

I'm Audrey Roberts, a busy mama of four and I love sharing the recipes that I make for my family. I make gluten-free family-friendly recipes that are simple and delicious that you can too! I use easy to find ingredients that won't break your budget. You will also find dairy-free options and Paleo recipes. I am also the author of The Everything Gluten-Free & Dairy-Free Cookbook, which is an Amazon Best Selling Cookbook in the US and Internationally. Living gluten-free since 2010. I hope by me sharing my journey it may help you with yours.

You Might Also Like:

5 from 92 votes
Subscribe
Notify of
guest
Recipe Rating




148 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Amelia Wildeman
January 31, 2026 9:40 am

You have not led me astray-this cake is rich, fudgy, decadent and moist. I am in awe! Thank you for making my gfdf life so delicious!

Mary
November 9, 2025 4:30 am

I am lactose intolerant and my husband is both lactose and gluten intolerant and finding good recipes can be hard. I have baked this for friends and family and they kept asking me if I was sure there was no gluten or dairy in it because it was “too good to be gluten free”. Thank you for this amazing cake recipe, this is our go to recipe whenever we want a sweet treat.

Shelly Odebralski
October 30, 2025 11:47 pm

I loved this SO MUCH!!! I shared it on my fb page and this is what I wrote. “Sharing this here, because this is probably the best cake I’ve ever tasted & baked (and I’ve baked a lot of cakes!). I wanted to bake a cake for my granddaughter’s b-day. She’s a chocolate lover, like me, but I wanted to be able to eat it too. I’ll share pictures in the comments. This is gluten-free and loaded with yummy deliciousness. I’ll never make another box cake.” I wish I could share the pictures with you, here. My granddaughter was thrilled with her special cake. Thank you for sharing your recipe.

Kristi R Callister
October 29, 2025 6:54 pm

I’m making cupcakes. What is the recommended baking time for 2 dozen?

Amy - Mama Knows Gluten Free
November 4, 2025 10:43 am

Hi Kristi, start looking at your cupcakes at the 15-20 minute mark to see if they are done.

Ashely
October 20, 2025 11:11 am

Hello, I don’t know if you you’ll see this in time! But I’m making this cake today for my partners birthday with some tweaks to the recipe for flavor profiles! But I’m using two 8’3x heart shaped cake pans and I’m wondering if i need to adjust the recipe at all?? Thank you!

Amy - Mama Knows Gluten Free
October 20, 2025 3:10 pm
Reply to  Ashely

Hi Ashely, You can use the full recipe without changing ingredient amounts, but since two 8-inch heart pans hold slightly less batter than two 9-inch rounds, your layers will be a bit thicker and may need a few extra minutes to bake—start checking at 30 minutes and expect up to 40. Keep oven temp the same (350°F), fill pans no more than two-thirds full, and use the toothpick test for doneness. Everything else, including prep and frosting amounts, stays the same.

Ashely Dawster
October 22, 2025 11:48 am

Okay now that I’ve made the cake after your instructions.. it was DELICIOUS!!! The MOST moist perfect gf/df cake I’ve ever had and I made it!! It was a BIG hit!! I did tweak the recipe to fit my flavor profiles! I did a chocolate mocha cake with brown sugar mocha butter cream and a raspberry jam filling!! Thank you so much!!

Janet
October 7, 2025 5:20 pm

We all loved this cake!. I made it for my granddaughter’s 18th birthday and used a 9×13 cake pan. I increased the cooking time by 15 minutes. It is delicious! Frosting tastes like fudge!

Amy - Mama Knows Gluten Free
October 9, 2025 2:40 pm
Reply to  Janet

Thanks Janet!

MEGHAN WILLIS
July 11, 2025 9:18 pm

Just made this today for my husband’s 64th birthday. One son has celiac, so wanted to make a cake we could all eat. Everyone loved it and no one thought it was GF. It was declared the best GF cake any of us had eaten. Super moist and delicious! Love your recipes!

Heather
March 24, 2025 3:44 pm

OMG this gluten-free chocolate cake is to die for!!! I’m so picky with texture in gluten free baking and this is top notch!! No weird baking powder/baking soda after taste, no oily flavour in the frosting. So good! I also made this dairy free and loved it! Only note is that the frosting is too sweet for me, so I would have added more milk and butter next time to balance it out. No one at my party could tell it was gluten free!!

Ness
March 21, 2025 12:57 am

p.s don’t forget the water, it’s important!

bit dry, otherwise lovely. will be baking again, with the water….

LISA
December 25, 2024 9:34 am

should i double the frosting recipe to make the extra decor on the top of the cake. I don’t think I had enough frosting to do all the decorating.

Sam - Mama Knows Gluten Free
January 2, 2025 1:36 pm
Reply to  LISA

You certainly can!