Learn how to bake the best and most moist gluten-free chocolate cake with this an easy to follow, no-fail recipe. What makes the cake so moist? Boiling water in the cake batter. It helps saturate the starches, aerates the batter, making the cake light, fluffy and moist instead of gritty. Find out for yourself why this GF cake recipe has earned hundreds of 5-star reviews!

Want to Save This Recipe?
Enter your email below & we'll send it straight to your inbox. Plus you’ll get affordable and easy gluten-free recipes delivered each week!
Hands-Down Best Gluten-Free Chocolate Cake Recipe
Whether you are new to gluten-free baking or a seasoned veteran, we all need need an easy, homemade gluten-free chocolate cake recipe to fool even the toughest critics. Every time I serve it, no one suspects anything but an old fashioned, moist, from-scratch recipe.
I’ve made it as a GF birthday cake, for celebrations, and as a base for tons of gluten-free cake ideas. For instance, the cake my family requests the most based off this recipe? You truly can’t go wrong with an epic cookies and cream gluten-free ice cream cake.
It’s my most often made dessert because it’s quick to throw together and consistently turns out fabulous. So what’s the trick? Why does this chocolate cake made with cocoa powder beat out the rest?
First, it uses ingredients I always have on hand, as I’m sure many of you do as well — gluten-free all purpose flour, unsweetened cocoa powder, eggs, milk (or dairy-free), and vanilla. Since it uses oil, rather than butter, not only can it be easily adapted to a dairy-free gluten-free recipe, but the crumb stays moist.
Second, it’s just as easy as using a cake mix with even better results! Simply dump all the ingredients in, mix, and bake. It’s really impossible to mess up.
Lastly, the magical “special ingredient” gives this cake a leg-up in the moist department. Boiling water saturates the GF starches, which I’ve found eliminates grittiness and activates the cocoa powder for a richer chocolatey flavor. Boiling water also helps aerate the batter. Once the hot water mixes in, it jump starts the baking powder and baking soda for an extra fluffy crumb.
Some recipes rely on sour cream for extra moisture, but when making a chocolate cake with all-purpose gluten-free flour it’s as simple as adding a cup of hot boiling water (or hot coffee, which I’ve done as well if I feel like brewing a cup).
I served it at a dinner party for 8 with only one gluten free attendee… Comments were ‘I would never know that it was gluten free!’
—Jan
We actually like this cake better than our favorite chocolate cake with regular flour. This GF cake is so moist and delicious! Thank you for this wonderful recipe!
—Rebecca
Free Guide! 5 easy tips for baking like a gluten-free pro!
Simple hacks for fail-proof gluten-free dishes every time!
Watch This Recipe
Let’s Make This Together!
(Below shows step-by-step photos and modified instructions. For the complete recipe, along with ingredient amounts, scroll down to the recipe card.)
Easy peasy cake (Seriously!)
Making a homemade chocolate cake does not have to be complicated to get absolutely fabulous results. Pinky promise.
First, mix the dry ingredients together in a large bowl. Add the eggs, milk, oil, and vanilla and stir to combine. You are almost there…

“Magic” ingredient time!
While mixing on low speed, slowly add boiling water. Once it’s mixed it, up the speed to high, and mix for 1 minutes. The boiling water activates the cocoa for a richer taste, saturates the GF starches so they aren’t gritty, and makes an extremely moist crumb. See, it’s magic!
Recently I started letting the cake batter rest in the pans for 10 minutes before baking. I find this helps set up the structure of the cake so it doesn’t sink in the middle or get a “wrinkly” top. If you have the extra time, I highly recommend it!

Bake, cool, frost, and enjoy (immensely).
With GF cakes you can error on slightly overbaking because you want to make sure all the moisture has evaporated. Otherwise as the cake cools, it will sink in the middle. Make sure the tops are fully set, especially in the middle. I like to use this cake tester because it grabs more of the crumb for an accurate testing.
Cool in the pans for 5 minutes, then turn onto a wire rack to cool completely before frosting. Your kitchen will smell like heaven. You’re welcome.

What’s Cake Without Frosting!
You’ve made your cake, now let’s get serious about the next delicious step, which decadent frosting all you going to smother all over this beauty…Just be sure to let it cool completely before frosting or you will have the dreaded sliding cake layers. 😳
If chocolate overload speaks to you, then this uber fluffy chocolate frosting with an unexpected ingredient is a must try. For those of you how love a black and white combo, try my go-to recipe for the world’s fluffiest buttercream frosting. Other options include a chocolate ganache, cream cheese or sour cream frosting, whipped cream, this silky peanut butter glaze.

Pro Tips for a Moist GF Cake
- Use cake baking strips to not only keep the cake moist, but they prevent uneven layers, which can be tricky to frost and hold shape.
- The less sugar you use, the drier the cake will be. Please note while the amount of sugar may be reduced, it will dry out the cake slightly.
- This cake recipe is more forgiving when it comes to baking time, but you still don’t want to overbake. Check by inserting a toothpick into the middle. It should have some moist crumbs, without being liquidy.
- I find GF cakes are best served at room temperature, not chilled. Although some frostings have to refrigerated, I highly recommend setting cakes out for several hours before serving to reach room temp and soften the crumb.

Save this recipe to your pinterest board!
Let’s be friends on Pinterest! I’m always sharing great recipes!
Did you make this recipe? I love hearing from you! Leave a star rating and comment below the recipe card. It helps others when searching for recipes and I appreciate feedback from our community. You will always hear back from me! -Melissa

Legit Moist & Easy Gluten-Free Chocolate Cake
Ingredients
- 2 cups (292 g) all purpose gluten-free flour, (I highly recommend Cup4Cup gluten free flour)
- 2 cups (400 g) granulated sugar
- ¾ cup (75 g) unsweetened baking cocoa , dutch-processed preferred
- 2 teaspoons baking powder
- 1 ½ teaspoons baking soda
- ½ teaspoon salt
- 1 cup (245 g) milk or non-dairy milk
- ½ cup (107 g) oil, any preferred
- 2 large eggs
- 2 teaspoons vanilla extract
- 1 cup (240 g) boiling water
Instructions
- Preheat oven to 350º F. Prepare two 9-inch cake pans by spraying with cooking spray, lining pans with cut-to-size parchment on bottom, and then spraying the parchment. Set aside.
- In a large bowl add flour, sugar, cocoa, baking powder, baking soda, and salt. Whisk to combine or, using your paddle attachment on stand mixer, mix until combined.2 cups all purpose gluten-free flour, 2 cups granulated sugar, ¾ cup unsweetened baking cocoa , 2 teaspoons baking powder, 1 ½ teaspoons baking soda, ½ teaspoon salt
- Add milk, oil, eggs, and vanilla to flour mixture. Mix on medium speed until well combined. Reduce speed to low and slowly add boiling water to the cake batter. Once the water is mixed in, increase to high speed and mix for 1 minute.1 cup milk or non-dairy milk, ½ cup oil, 2 large eggs, 2 teaspoons vanilla extract, 1 cup boiling water
- Distribute cake batter evenly between the two prepared cake pans. (Tip: Letting the cake batter rest in the pans for 10 minutes before baking helps set up the structure of the cake so it doesn't sink in the middle or get a "wrinkly" top. If you have the extra time, I highly recommend it!) Bake for 30-35 minutes, until a toothpick inserted in the center comes out clean.
- Remove from the oven and cool in pans for 10 minutes. Turn cakes onto wire rack to cool completely before frosting.
Notes
Dairy-Free Modification
The only recipe adaptation you’ll have to make is replacing the milk with a dairy free milk, such as almond milk, soy milk, or coconut milk. If you prefer using coconut oil, that may also replace the vegetable oil. Some flour blends do contain milk powder, so be sure to read the ingredient labels.Using Different Baking Pans
Gluten Free Cupcakes To make bake this cake as cupcakes follow Incredible Gluten Free Chocolate Cupcakes recipe. 9X13 Sheet Cake To make a sheet cake instead of layer cake make the batter as written. Spray a 9X13 baking pan. (Let the batter rest in the pan for 10 minutes before baking. I find this helps set up the structure of the cake so it doesn’t sink in the middle or get a “wrinkly” top. If you have the extra time, I highly recommend it!) Bake at 350 for 45-50 minutes or until toothpick inserted in middle comes clean. Cool on wire rack completely before frosting.Freezing and Storing Tips
Gluten free cakes do not stay fresh as long as regular cakes. Therefore, if you don’t plan on freezing the cake, make it no more than 24 hours ahead of time. Freezing Unfrosted Cake Layers: Wrap each completely cooled layer securely in plastic wrap. Transfer wrapped layer to a gallon freezer bag and freeze up to 3 months. When ready to use, remove from freezer bag and thaw wrapped cake at room temperature for 1 hour. Freezing Frosted Cake: Assemble the cake with filling and frosting. Transfer whole cake to the freezer so frosting solidifies. After the frosting is frozen, wrap the cake securely with plastic wrap. Cover plastic wrap with foil and freeze up to 3 months. Thaw cake overnight in refrigerator. Carefully remove plastic wrap and foil. Continue to thaw at room temperature for 5-6 hours. Freezing Cake Slices: Slice the leftover cake in serving sized portions. Wrap each piece in plastic wrap and freeze in a single layer on a baking sheet. Once the pieces are solid, transfer slices to a gallon freezer bag or airtight container. Thaw pieces on the counter for 1 hour or defrost in the microwave at 20% power, carefully avoiding overheating and melting the frosting. Adapted from Add a PinchThis post contains affiliate links. My opinions are always my own. If you purchase a product through an affiliate link, I make a small commission – at no cost to you. Read full disclosure policy here.



Can I substitute honey or maple syrup for the sugar? Perhaps use sweetened chocolate instead of unsweetened? Do not want to use splendar or similar.
Hi Jo,
I haven’t tried this, but I believe it would change the texture of the cake because so much more liquid would be added. Sorry I can’t be of more help.
Best,
Melissa
I am a lifelong baker. Gluten free can be a bit tricky but Mama Gourmand step by step instructions are very helpful even for the experienced baker. I made the chocolate cake with a buttercream frosting. (I downloaded a generic recipe for frosting from Paula Deen). My friends were ecstatic over the cake. It was so moist and delicious. It is definitely a repeatable recipe.
Thank you, Jo Anne, for taking the time to leave this note. I really appreciate it!
Best,
Melissa
Made this cake multiple times. Best GF cake and amazing chocolate frosting.
Thank you for the note, Lori! I appreciate it!
Best,
Melissa
⭐️⭐️⭐️⭐️⭐️ recipe, no doubt. Moist, rich chocolate flavor, and just darn tasty! Thank you for a great recipe that brings great compliments and makes me look like a professional baker. I iced this with a cream cheese/butter frosting and topped it with shredded coconut. PERFECTION!
Yes! So grateful you took the time to share, Sharon! I appreciate it!
Best,
Melissa
Excellent receipe! Thank you!
My pleasure, Crystal!
Best,
Melissa
Do you think butteril
I make this cake now whether or not there are GF guests. Everyone loves how moist and delicous this dessert is. Thank you a million times Melissa. This cake recipe shines a star on me everytime.
I follow you for other recipes and encourage my friends to give you a try.
Thank you, Bonny, for sharing my recipes with your friends. I really appreciate it!
Best,
Melissa
WOW! WOW! WOW! There really aren’t any other words. This has the most amazing chocolate flavour and is ultra moist! And dairy free! I absolutely loved it and so did the whole family. I will be making this again and again. I made it in a 9 x 13 pan. Next time I’ll try a layer cake. I also might mix a bit of espresso powder into the boiling water to really bring out the chocolate flavour. Do u have a vanilla cake like this one? I have a friend who can’t have chocolate.
Thank you, Nancy! I have a yellow cake recipe here: https://www.mamagourmand.com/gluten-free-yellow-cake/
Best,
Melissa
This is my family’s favorite cake! Easy recipe with DELICIOUS results!
LOVE that you all love this cake, Valerie! Thank you for sharing.
Best,
Melissa
This is the best gluten-free chocolate cake I’ve ever tasted. It’s dangerous.!!!
Haha! Thanks so much for sharing, Cusano Jan!
Best,
Melissa
Would 25-30 min, be a good cook time for a half sheet pan? I’m aiming to cut out small rounds with a cookie cutter.
Hello,
I would say 20-25 minutes and start checking at 20. My Texas sheet cake recipe takes 22-24 minutes to bake. Enjoy!
Best,
Melissa
The 5 year old I nanny is dairy free, and recently gluten free as well. We made this cake for her dad’s birthday and it turned out so well!!! It was the first gluten free cake we’ve made and we were all so happy with it. We filled it with pistachio butter and topped it with strawberry buttercream and it is so yummy
This sounds incredible, Emily! Thanks so much for sharing the details with me!
Best,
Melissa
Absolutely delicious 😋 I had King Arthur GF flour on hand and used it.
Even my husband who’s leery of GF baking loved it. High praise indeed🩷
Wonderful, Jenny! I’m so glad even the hubby loved them. Thanks for the note!
Best,
Melissa
I’ve already made this twice and it’s a keeper. No one could tell it was G-F; everyone LOVED it. I used 1/2 & 1/2 choc the first time and only dutch process the 2nd time. I also added in a heaping teaspoon of very finely ground espresso. No doubt the boiling water IS the best secret ingredient. Used King Arthur Measure for Measure GF flour. Baked cupcakes, loaves and mini loaves. The chocolate buttercream frosting is wonderful. People are already asking for the recipe.
Yay! Love reading this, Bonnie! Thanks so much for taking the time to share.
Best,
Melissa
This is absolutely the BEST chocolate cake recipe I’ve ever made. The amazing thing is that it is gluten free, too!
Love reading this so much! Thanks, Beth, for taking the time to share.
Best,
Melissa
On National Chocolate Cake day made this cake & your chocolate whipped cream frosting. Both turned out beautifully. Wish I could post pictures.
Love it! So glad you enjoyed it, Marie. Thanks for taking the time to comment.
Best,
Melissa
I just made this over the weekend for my nephew’s birthday, and everyone loved it! They honestly raved about it for hours and took most of it home because it was so good! I’m always hard on myself baking and look at everything with a “how to make it better” mentality, so I am curious if you have any suggestions or tips on why my cakes were super gooey but also thoroughly cooked. Here is what I did to add some context:
I baked the cakes in the afternoon on Friday, left them in the pans at room temp in the laundry room (probably 60 degrees – I knew they’d stick too much to any wrapping to use it), and tried to frost it early in the afternoon on Saturday. I say tried because the cakes were so moist and sticky that the first one broke into 3-5 chunks. I put a paper plate on one side of the pan to catch the second cake evenly and plop ‘er on the other frosted cake. Thankfully the frosting did a great job at hiding the cracks once I lined them back up! The toothpicks came out clean except for a small (very small) amount stuck at the bottom of the toothpick. The Glad wrap that I put around the top of the cakes touched the top of one for a bit and took out a wide portion of the cake top (which flattened it perfectly, so I won’t complain about that). I ended up getting one cake somewhat frosted (just the top with a thin layer) before putting them outside to “harden” up a bit in the arctic Michigan winter for a few hours. I was able to frost them pretty easily after that, but towards the end they had started to thaw a bit and got sticky again. I left the cake outside after frosting while we had dinner, and it was delicious though a bit heavy and gooey. Do you have any tips or suggestions? I’m thinking I will make and frost it ahead of time completely and freeze it, so I made sure to save your instructions for that.
Hello Jay,
I’m glad everyone enjoyed the cakes, but I apologize for any frustrations! Next time I would let the batter sit in the pans for 10 minutes before baking. This will help set up the structure of the cake and absorb excess moisture after baking. After the bake remove the cakes from the pans to cool, placing them on a wire rack. Letting them sit in the pans will cause too much condensation around the cake, especially if going from a hot oven to a very cool room, which is also what probably caused the stickiness.
If I’m not planning on serving the baked cakes that day, then yes, I would frost it that day after the layers cool and store it in the fridge until ready to serve. You can do this a day ahead. More then that, I would freeze the entire frosted cake.
I hear you about being hard on yourself and completely understand! There have been many times I’ve baked things and felt they “weren’t good enough” while everyone else was perfectly happy and don’t notice a thing!
Best,
Melissa
Made this chocolate cake for my son’s 29th birthday and it didn’t disappoint!!! This will now be my “go-to” recipe :). Five stars for sure!
Awesome, Kim! Thank you!
Best,
Melissa
Can I use King Arthur‘s gluten-free Measure for measure flour for this recipe?
Hi Crystal,
Yes! It works well with a variety of GF flours. It’s pretty forgiving!
Best,
Melissa
I am officially in the Mamagourmand fan club. Missy has so many great recipes and this cake was an absolute hit! I have a daughter recently diagnosed with celiac (also a chocoholic) who thought she wouldn’t be able to enjoy some of her favorite desserts. She LOVES this cake, the ding dong cake, and the chocolate chip cookies rock too! Cravings can still be satisfied!
Oh, thank you so much, Stephanie! This makes me so happy to hear. I’m glad your whole family are enjoying the recipes, not just your daughter!
Best,
Melissa
This is our family’s go to recipe for all birthday cakes along with the chocolate frosting. It’s perfect.
So glad your family loves it too. Thanks for commenting, Emm! I appreciate it.
Best,
Melissa
It’s very rare that I review something on Pinterest, actually I’m not sure I ever even have! But this cake is seriously the best chocolate cake you will ever make. This is the third year in a row making it for my husband‘s birthday. I also make the chocolate and molasses buttercream frosting from this site as well! It will probably always be his cake of choice!
I really appreciate that you to the time to share and comment. Reading this makes my day, Caitlyn! Thank you!
Best,
Melissa
This delicious cake turned out perfectly and was a hit with everyone at my mom’s birthday party. It was exactly as described-easy to make and very moist, but not dense or gummy like other gf cakes I’ve made. Saving this in my favorites for sure! I also used the recipe for fluffy chocolate buttercream frosting, which was equally amazing.
Loved reading this, Kristine! I appreciate you taking the time to share.
Best,
Melissa
Made for my mom’s birthday with a raspberry filling & mascarpone frosting. Was thrilled that nobody believed it was gluten free until the 1 celiac kid ate it! so excited to finally have a cake that wasn’t dense or crumbly dry!
I did use hot weak coffee vs the water – coffee intensifies the chocolate flavor.
Oh how wonderful! Great tip about the coffee. Thanks, PsychE!
Best,
Melissa
Wow! Hands down the best gluten free recipe I’ve ever tried! That includes all recipes, not just cake! I use Bobs Red Mill measure for measure flour. The brand of GF flour makes all the difference! The only other thing is I had 3/4 cup of raw cream that got left out over 24 hours. It had a slight sour smell so I used that plus 1/4 whole milk. I made 6 giant muffins/cupcakes Costco size) and baked 28 minutes. I even used my blender to mix the batter. So easy and virtually messy free. I always measure by weight right into the bowl or blender.
Thanks, Deb! I appreciate you taking the time to leave this note.
Best,
Melissa
This is my Go-To cake recipe now. It comes out amazing, moist, and soooo satisfying. I even made a double batch of the dry mix, and pulled out half to store for us to make individual microwave mug cakes with!!!
What a great idea, Cayenna Rose!
Best,
Melissa