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 many other creations in my complete gluten-free cake collection, like Ding Dong cake and this 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, the recipe uses commonly stocked pantry items, like GF 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 impossible to mess up this gluten-free chocolate cake!
Lastly, it uses a magical special ingredient to give superior results. Boiling water helps saturate the gluten-free starches, eliminating any grittiness, activates the chocolate for a rich, deep flavor, and aerates the batter. Once the hot water mixes in with the cake batter, it jump starts the baking powder and baking soda for an extra fluffy texture.
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!
Read on to learn how to make the best from-scratch layer cake, with bakers tips, workable ingredient swaps, and variations for sheet cake, cupcakes, and dairy-free. It’s all here! Then morph this easy layer cake into other show stopping desserts, like my family’s most requested gluten-free Black Forest cake.
I have the same praise as everyone does, its the best chocolate cake I’ve made period!
—Heather
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!
Ingredient Tid Bits
- Gluten-Free Flour – I use and recommend Cup4Cup gluten-free flour blend, but many readers have written in adding the different flour blends they have used with success. Check out the comments below. 👇
- Unsweetened cocoa powder – Use regular or Dutch-processed cocoa for richer chocolate taste, which is my preferred.
- Milk – Any kind works here, regular or non-dairy milk, such as almond milk.
- Vegetable oil – Coconut oil or any preferred oil may be substituted.
- Boiling water – Secret “ingredient” for a moist, deceptively gluten-free cake! It helps saturate the starches, aerates the batter, making the cake light and fluffy instead of gritty.
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 gluten-free 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. If you are unsure, turn off the oven and let the cake sit for 1-2 minutes before removing.
- Enjoy the cake at room temperature. Although some frostings have to refrigerated, I highly recommend setting cakes out for several hours before serving to reach room temp. Gluten-free cakes especially have a tendency to dry out in the refrigerator.
Can I Use A Different Baking Pan?
Of course! For cupcakes follow the baking directions on this easy gluten-free chocolate cupcakes recipe. If you’d rather make a sheet cake, pour all the batter in a greased 9X13 inch baking pan and bake for 45-50 minutes.

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 with fluffy vanilla buttercream or chocolate buttercream.
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.



Best chocolate cake ever just have to remember to bake 13×9 cake longer times. Made this cake for a friend who eats gluten free but I’m going to use this recipe all the time
I love to hear this M. Earl! So kind of you to make honor your friends need to be gluten-free. Thanks so much for sharing.
Best,
Melissa
Since I can’t have eggs, I substituted 1/2 cup Mayo and used Namaste gluten free flour. It doesn’t taste like anything gluten free cake so I can serve to anyone. I love that it is just one bowl recipe. I’ve made it twice and it was great both times.
Oh, great ideas, Jackie! Thank you so much for taking the time to share. It’s appreciated!
Best,
Melissa
So I read the reviews I was excited to make this I always use my scale and room temp ingredients. I used Bobs 1-1 GF flour. Im a retired baker who had their own business.I have been baking for 60 or more years.This recipe was fine until I added the boiling water!!!!It ended up being chocolate soup.I let it rest for 30 minutes it never thicken. It was down the drain.A very costly birthday cake for me!!!I might give it a try another time.I will use my regular recipe.
My apologies, Frances. I am so sorry this did not turn out for you. The cake batter is on the thinner side, but always bakes up perfectly. It should definitely not be as thin as soup, though. I wish I could tell you what went wrong. I have had many reviews with different readers using a variety of flours for this cake, many who have used BRM as well. I know how frustrating it is to waste time and money. 🙁
Best,
Melissa
Delicious recipe! I substituted a stick of butter for the oil. It turned out beautifully! Love it! Thanks for this!
Lovely to hear, Carla. Thank you so much for taking the time to share!
Best,
Melissa
Hi, This sounds delicious, and I will try it, but do you have a comparable recipe for a yellow/white cake instead of chocolate? Thank you!
Yes, I do! Here you go. Gluten-free white cake recipe
Best,
Melissa
My stepdaughter’s birthday is next week… I’m the only gf person in the family. So I ordered regular cupcakes for her and currently have this cake in the oven for me :-).
I added 2 tsp of espresso baking powder to the recipe and tasted the batter… AMAZING!
*note- I used King Arthur’s measure for measure flour. It did seem a bit runny, but I think it will be ok.
I love this, Brooke! I think you’ll find everyone will love the cake, even the non-GFers. Happy birthday to your stepdaughter!
Best,
Melissa
After I made this for one church luncheon, I received requests to make it for the next four. At each one, I received complements
Lovely to hear, Laura! Thank you so much for taking the time to let me know.
Best,
Melissa
This cake was amazing! The whole family loved it! Super chocolaty and moist. I loved how easy it was to make. I put it in a 9×13 pan so it was easier to transport.
Thank you so much, Amy! I appreciate you taking the time to let me know!
Best,
Melissa
Thank you so much for putting the measuring sizes after each ingredient instruction paragraphs. I didn’t have to keep scrolling up to look at the measuring amounts. This is a wonderful recipe!! Thank you again!
Oh, THANK YOU, for taking the time to let me know! It’s so appreciated!
Best,
Melissa
I love this cake! I’ve made it twice for birthday parties; it’s wonderful to enjoy a piece even though I’m gluten-free. Thank you for a simple, great-tasting option.
Love this so much, Alicia! Thank you so much for taking the time to let me know!
Best,
Melissa
I made this cake and it was wonderful! Totally satisfied my chocolate cake craving and it was moist as stated. Totally a taste of my childhood I thought I lost going gluten free.
How sweet, Heather. Glad it could be back a nostalgic treat for you!
Best,
Melissa
Amazing!!!!
Thanks so much, Alli!
First time using GF flour and needed a recipe for a birthday cake for my DIL. This recipe did NOT disappoint. It was wonderful. So flavorful, so moist. It was perfect. I used the chocolate buttercream frosting recipe as well and it received rave reviews from everyone.
So happy to hear, Jayne! I haven’t used the Pamela’s GF all-purpose flour, just their baking mix when I need a Bisquick substitute. Thanks for letting us know it works with that too!
Best,
Melissa
I have the same praise as everyone does, its the best chocolate cake I’ve made period! I was wondering if you think I could use cassava flour instead of a 1:1 flour. Thank you for your tasty recipes and help!
Hi Heather,
So glad to hear! I’m not familiar with substituting cassava flour for an all-purpose GF flour. Have you done this with other baking recipes? My gut is it wouldn’t work because you would need a mix of starches to get an airy, yet bound, crumb.
Best,
Melissa
I used strong coffee for the 1 cup of boiling water and frosted it with coffee buttercream frosting. So good!
Genius idea, Letha! This version sounds absolutely divine. I might make it for my next birthday!!
Best,
Melissa
This was a complete disaster! The center of the cake is raw and running and the outer 2” edge is way over baked. I’ve made many other GF cakes without any issues. So disappointing.
Oh my gosh, I am truly sorry Marcella. I wish I could do more to help, but I’m not sure what went wrong. It sounds like the amount of batter was too much for the size of cake pans? What a mess and how frustrating for you. 🙁
Best,
Melissa
I used 9” pans. The edge was really dry and the center was like molten lava cake. I’m going to give it another try. I was optimistic based on the rave reviews. Will put up another post when I do.
Thanks for giving it another shot Marcella! Yes, please report back.
Best,
Melissa
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!
Wow, that’s wonderful to hear, Rebecca! Yay! Score a point for GF-ers!
Best,
Melissa
Hello, I am making this cake right now in 6” pans. Does the tooth pick come out clean like a regular cake? I am up to 40 minutes and it is still not coming out clean. Thank you!
Hi Sherrie,
If you used the same amount of batter and baked in 6″ pans, they are probably thicker, requiring more baking time. It shouldn’t come out with liquidy batter, but moist crumbs is fine. You can also lightly touch the middle and see if it springs back.
Best,
Melissa
I halved the recipe using the ingredients listed and baked it in two 6″ cake pans and it was done at 32 minutes. I then made vanilla buttercream frosting for it. This made my gluten free husband a very happy birthday cake! It was delicious!!! Thank you Melissa
Oh I love hearing this! Thank you so much for taking the time to let me know.
Best,
Melissa
hi, mine are going in the oven right now, my batter looked runny compare with yours in the video, I spoon the flour for measuring as you suggested, I hope they came out fine, keeping my fingers crossed…
Hope it came out okay! It could be the GF flour you used. I use Cup4Cup, which has a lot of cornstarch, so the batter is a lot thicker. However, this recipe works with a lot of different GF flours. It will change the consistency of the batter, but the baked cakes turn out similarily.
Best,
Melissa
I used Pamela’s GF all-purpose flour- just fyi.
After reading these wonderful reviews I made this recipe as written for a wedding cake for friends. Having never made gluten free cake before, I was nervous. But, the bride and groom loved it! Everyone kept telling me they couldn’t believe it was gluten free or how delicious it was. It also held up good with a fair amount of buttercream on it. No crumbling. Thanks for a great recipe!
I love hearing this, Sherri! Thank you so much for taking the time to let me know. It made my day!
Best,
Melissa
Do you think you could make a full sheet cake if you doubled or tripled the recipe?
I know some recipes can’t just be multiplied and get success
Yes, that shouldn’t be a problem as long as your mixing bowl holds the batter. I would let the batter rest 15 minutes before baking, which would also give you time to make the cake batter in batches. This will help the cake set up better while baking. The baking time will increase as well, by probably 10 minutes.
Best,
Melissa
I recently made this cake …delicious!
Was wondering if I could leave out the cocoa to make a yellow/vanilla cake? What’s your thoughts?…would I need more flour to compensate for the loss of cocoa?
So sweet of you, Joanne! I do have a white cake recipe you can try, developed specially for that!
Best,
Melissa
I’ve been making this recipe for 4 years now and my guests can’t believe I made it. Definitely the best gluten free cake recipe!
Thank you so much, Kristin! I’m glad you and your guests love the cake!
Best,
Melissa
I don’t normally write reviews but I needed to rave about this recipe. Wow! So good! I haven’t made a cake in years and this turned out great. Super moist, fluffy yet also dense. I used avocado oil and Namaste 1:1 gf flour. For the frosting I did a dairy free ganache using coconut cream and dark chocolate chips. Honestly, can’t wait to make this again!
This should be 5 stars (sorry!)
Sounds amazing, Brittany! I hope I hear from you more often with comments and leave more reviews!
Best,
Melissa
ABSOLUTELY Delicious and oh-so MOIST! I couldn’t believe how fluffy and moist this cake was, despite being Gluten AND Dairy free for my son. Hands down the best cake I’ve made that was allergy friendly! Huge hit at his party! (check my page for the final product under Construction Party! 🙂 )
Thank you, Crystal! So glad your whole family enjoyed it!
Best,
Melissa
I’ve made this twice now and my family is obsessed with this cake!! Those I didn’t tell it was gluten free had no idea. I used a peanut butter frosting and topped it with peanut butter cups. YUMMO!!!
Sounds absolutely amazing, Audra! That is my absolute favorite combination ever!
Best,
Melissa
Would I be able to use this cake for a “poke” cake dessert recipe? It calls for a can of sweetened condensed milk & 12 oz of caramel ice cream topping to be poured over the holes poked in the cake after it’s cooled.
Hi Joyce,
Yes I have used this recipe for every version of chocolate cake ever, including poke cakes!
Best,
Melissa
I just have to say THANK YOU! We celebrated my Mom’s birthday last night, and she has celiac disease, so I was searching for a good gf recipe. I found yours and, I even though I was afraid of making a cake from scratch, I decided to try it. OUR WHOLE FAMILY, including the birthday girl, has been RAVING about it ever since! They ALL want this cake for their birthdays now (and they can have wheat!). So, THANK YOU for helping to make my sweetest Mom’s day extra special, and for making the EASIEST recipe to follow (even including each set of ingredients needed in the directions). Just DELICIOUS!!
Oh, Melissa. This really made my day. This is so sweet of you to take the time to let me know. Happy birthday to your mom!
Best,
Melissa
This is the best gf choc cake recipe I have ever made, even my picky spouse who doesn’t like gf will eat this.
Love hearing this, Dawna! Thanks for taking the time to share!
Best,
Melissa
I can’t wait to try this cake!! I’m wondering if I can use regular AP flour (not gluten free)?? Thank you!
Hi Jessica, For this recipe that does work!
Best,
Melissa
Thank you so much! I just made it today and it is the most delicious, moist chocolate cake! It is the best cake I’ve ever made! I’m curious to know the best way to scale the recipe down to make two 6inch cakes?
Hi Jessica,
So glad to hear! I’ve baked this in two 8″ pans without scaling, it just takes about 5 minutes longer to bake. For 2 6″ pans I would move the serving slider to “9” and it will automatically adjust the ingredient amounts. The egg will read 1.5, but just add 1 egg + an egg white. Or if you want to be super precise, light whisk an egg, pour it into a small liquid measuring cup and pour half of it into the cake. Either way will work!
Best,
Melissa
Fantastic recipie. I have made it a couple of times and it has been a hit with everyone..
So glad to hear! I make this cake monthly! It is always a hit and you can make it into so many different versions with frostings and fillings!
Best,
Melissa