Easy Gluten-Free Chocolate Cake
Published
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.

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.
I’ve been trying different gluten free chocolate cake recipes for years and have been underwhelmed UNTIL NOW! This cake recipe is superb and I’m so impressed. The only change I made was a slight reduction in sugar for my personal taste. Well done and thank you!
– Chelsie
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.
Gluten-Free Chocolate Cake

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
Nutrition information is automatically calculated, so should only be used as an approximation.
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.

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.

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.

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.

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.

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

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

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

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

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

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.

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.

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

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

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

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

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

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

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

Slice and Serve: Slice up and enjoy!

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.













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!
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.
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.
I’m making cupcakes. What is the recommended baking time for 2 dozen?
Hi Kristi, start looking at your cupcakes at the 15-20 minute mark to see if they are done.
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!
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.
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!!
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!
Thanks Janet!
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!
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!!
p.s don’t forget the water, it’s important!
bit dry, otherwise lovely. will be baking again, with the water….
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.
You certainly can!