Jump to Recipe Print Recipe
4.86 from 28 votes

This ultra-fudgy gluten-free chocolate cake with sour cream is rich, moist, and loaded with deep chocolate flavor! Every bite is pure bliss, topped with a luscious homemade cream cheese frosting. With easy dairy-free and nut-free options, everyone can enjoy this indulgent treat. Plus, it comes together easily—because the only thing better than making chocolate cake is eating it.

A gluten free chocolate cake slice on a white plate.

If you’re searching for the best gluten-free chocolate cake recipe, this is the one! This is the cake everyone wants me to make for their birthday.

If you love chocolate as much as we do, check out my best Gluten-Free Chocolate Dessert recipes. They are guaranteed to help you with those chocolate cravings!

I bought the mini pans and made this for Thanksgiving! It turned out sooooo good! Even my picky non-gluten free kids loved it and said , “Hey, it doesn’t taste gritty’!
The frosting was to die for as well!”

becky r., pinterest comment

Allergen Information:

This homemade chocolate cake recipe is:

  • gluten-free
  • nut-free
  • soy-free
  • oat-free
  • See the Substitutions section below for dairy-free, gum-free, etc.
A whole chocolate frosted cake on a white plate.

Substitutions:

  • Make it dairy-free – You can easily make this gluten free chocolate cake dairy-free by substituting the cream cheese for a dairy-free cream cheese like the one from Kite Hill. Also, substitute the yogurt for dairy-free yogurt.
  • Make it nut-free – The only nuts in this recipe are in almond milk. Substitute soy milk or another non-dairy milk to avoid almond milk.
  • Make it gum-free – To make this cake gum-free, meaning there is no xanthan or guar gum, use my DIY Gluten Free Flour Blend.
  • Make it butter-free – If you want to make this gluten free chocolate cake with oil instead of butter. That is fine, and I tested this recently. I recommend using a light oil, not a strongly flavored one. (This is for the cake and NOT the frosting.)
  • Swap plain yogurt for the sour cream – If you don’t have sour cream on hand, plain yogurt also helps retain the moisture in this chocolate cake recipe.

This incredible Gluten-Free Vanilla Cake recipe is also amazing if you prefer an excellent vanilla cake for your special event!

Photos of the chocolate cake ingredients.
I used simple ingredients to make a gluten free chocolate cake!

Ingredient Notes:

For the full list of ingredients and amounts, please go to the recipe card below.

  • Gluten-Free Flour Blend: I tested this recipe using Bob’s Red Mill 1 to 1 Gluten-Free and King Arthur’s Measure for Measure. That doesn’t mean other flour blends will not work; I have not tested other flour brands.
  • Cocoa Powder – I love Ghirardelli and Anthony’s brands. Almost all cocoa powder is gluten free, but always check the label.
  • Sour Cream – If you love super moist cake, yogurt or sour cream is the secret to a moist, decadent chocolate cake. I recommend using full-fat sour cream in this cake.
  • Eggs – Use large eggs.
  • Butter – If you need this recipe to be dairy-free, you can use vegan butter. I recommend unsalted butter.
  • Non-Dairy Milk – I used almond milk, but if you are nut-free, use plant-based milk. Regular milk works.
  • Baking Powder/Baking Soda – Use baking powder for Dutch process cocoa and black cocoa powders. Use baking soda for regular cocoa powder. Many ask if baking powder is gluten free, and most are. Always read the labels!
  • Cream Cheese – Let the cream cheese warm to room temperature before using it to make your frosting.

How to Make a Gluten-Free Chocolate Cake (Step-By-Step)

Note From The Kitchen: If you are worried about making a gritty cake, don’t worry! The grit you have experienced in the past is due to the rice flour in gluten-free flour blends. Some brands mill the rice more finely than others. To fix this issue, let the cake batter sit for 15-30 minutes. It gives the rice flour time to soften, leaving you with a fluffy, soft cake.

Photos of making the chocolate cake steps 1 and 2.

Step 1: Add the dry ingredients to a large mixing bowl. If you notice a lot of lumps in your cocoa powder, I recommend sifting it into the bowl. This will make your cake’s consistency more even.

👀 Sandi Says: To measure gluten-free flour, use the spoon and level method. Avoid scooping directly from the bag, which can pack too much flour and lead to a dry cake.

Step 2: Use a whisk to blend the dry ingredients. Don’t forget that if your gluten-free flour blend doesn’t contain xanthan gum or another binder, add 3/4 teaspoon to the dry ingredients.

Photos of making the chocolate cake steps 3 and 4.

Email This Recipe To Me!

I will email this recipe to you, so you can come back to it later!

Step 3: Add the wet ingredients to a smaller bowl and whisk to blend. I like to partially melt my butter to make the mixture smoother.

Step 4: Pour the wet ingredients into the dry ingredients. Mix the wet and dry ingredients in the bowl with a large spoon until they are just “barely” mixed. This is one of the secrets to a fluffy cake.

Photos of steps 5 and 6 making chocolate cake.

I used this cute set of mini-layer cake pans. These pans make layer cakes so easy to make. You can choose how many layers to make your cake. You can also use this fudgy chocolate cake batter to make a sheet cake or cupcakes.

Step 5: Compare your cake batter to mine to make sure yours has the right consistency. This is the consistency of my batter. It is a nice, rich chocolate color.

Step 6: Spray your cake pan with gluten free baking spray and add the batter to the mini cake pans.

🎂 Sandi Says: I highly recommend baking your gluten-free cake on the bake oven setting, not the convection setting. After years of practice, I truly believe the regular bake setting helps gluten-free cakes bake more evenly.

Step 7: Bake the cake. The bake time will vary depending on the pan in which you bake your cakes.

Step 8: Remove the cake from the oven and cool completely before frosting.

Rich chocolate frosting in a mixing bowl.

Step 9: While the cake is cooking, prepare the chocolate cream cheese frosting.

How to frost your cake like a pro:

  1. Look at each layer of your cake. If you see the cake domes, use a serrated knife or cake leveler to trim the tops for even layers. This ensures a stable, professional-looking cake.
  2. Take a turning cake stand and add a small dollop of frosting to the center of the stand to prevent sliding. I love this cake stand because it comes with the right spatulas and bench scraper for frosting the cake!
  3. Place the first cake layer flat side down.
  4. Spread an even layer of the chocolate frosting over the top of the first layer using a spatula.
  5. Place the second cake layer on top, flat side up, for a smooth surface.
  6. Gently press down the layer of cake to ensure it adheres to the frosting beneath.
  7. Apply a very thin layer of frosting all over the cake to trap any crumbs.
  8. Smooth it out, then chill the cake for 20–30 minutes to set the crumb coat.
  9. Apply a generous layer of frosting over the entire cake. Use an offset spatula to spread it evenly.
  10. Smooth the sides of the frosted cake using a bench scraper while turning the cake stand.

Make it fancy!

If you want to bake more chocolate recipes, try these moist Gluten-Free Chocolate Brownies. Need a quick chocolate cake recipe but don’t want to bake? Try this Gluten-Free Chocolate Mug Cake recipe!

Frequently Asked Questions:

Can I use oil instead of butter in this cake?

Yes! I tested this cake with light oil recently, and it worked well. Just avoid strongly flavored oils.

Can I bake this cake in different pans?

Absolutely. Use mini pans, a 9×13, or make cupcakes; just adjust the baking time.

Where can I read more about gluten-free cake troubleshooting?

I wrote up my Gluten-Free Baking Tips and a great Gluten-Free Cake Troubleshooting Guide to help you perfect your gluten-free baking.

How do you store a gluten-free cake?

Store the cake in an airtight cake container in the refrigerator. It will keep fresh for up to 4 days.

Can you freeze this cake?

Yes, I recommend freezing the baked cake layers unfrosted so they don’t get soggy when the cake thaws. Wrap the cake layers in plastic wrap, then cover tightly with foil. Place each layer in a gallon-sized freezer zipper bag.

A piece of chocolate plate standing up tall on a plate.

My dearest friend is now following a gluten free diet. This cake was my first foray in baking for her — holy heck, she LOVED it! Even the non gluten free people loved it. Its nice to make something to rave reviews while still following their dietary requests. Ill be making this often!”

Michele W.

More Gluten-Free Cake Recipes:

Love This Recipe?

💬 Did you make this recipe? ⭐⭐⭐⭐⭐ I’d love to hear how your cake turned out! Let me know which gluten-free flour blend you used—your tips help other bakers succeed, too.

A whole chocolate frosted cake on a white plate.

Gluten Free Chocolate Cake

4.86 from 28 votes
This gluten-free chocolate cake with sour cream is ultra-moist, rich, and packed with deep chocolate flavor! The sour cream adds the perfect balance of tenderness and decadence, making every bite irresistibly fudgy.
Prep Time 15 minutes
Cook Time 25 minutes
Cooling 40 minutes
Total Time 1 hour 20 minutes
Servings: 12 people
Calories: 488

Ingredients
  

Cake:
  • ¾ cup cane sugar
  • ¾ cup cocoa powder (*see note)
  • ¾ cup gluten free flour blend (*see note)
  • 3 eggs size large
  • ½ cup unsalted butter softened
  • 1 teaspoon baking powder + dash of salt
  • ¾ cup almond milk or other milk
  • 6 ounces sour cream *you can also use yogurt
Frosting:
  • 8 ounces cream cheese room temperature
  • ½ cup unsalted butter room temperature
  • 3 ¾ cups powdered sugar
  • ½ cup cocoa powder
  • 1 teaspoon pure vanilla extract

Method
 

  1. Preheat the oven to bake 350º F and set the oven rack to the middle of the oven.
  2. Add the dry ingredients to a large mixing bowl. If you notice a lot of lumps in your cocoa powder, I recommend sifting it into the bowl. This will make your cake's consistency more even.
  3. Use a whisk to blend the dry ingredients. Don't forget if your gluten-free flour blend doesn't contain xanthan gum or another binder, add a teaspoon to the dry ingredients.
  4. Add the wet ingredients to a smaller bowl and whisk to blend. I melt my butter to make the mixture smoother.
  5. Pour the wet ingredients into the dry ingredients. Mix the wet and dry ingredients in the bowl with a large spoon until they are just "barely" mixed.
  6. HINT: Do not over-mix your cake, or it will not be as light and fluffy! I never use a standing mixer to mix gluten-free cake batter. It makes your cake turn out more dense.
  7. Note: Every gluten-free flour blend has a different starch-to-grain ratio. The brand of gluten-free flour you use will affect the moisture of the batter. If your cake batter is too runny, add more flour, and if it is too thick, add more liquids. 
  8. Spray your cake pan with gluten free baking spray and add the batter to the mini cake pans. You can also make a 9×13 sheet cake with this chocolate cake batter.
  9. Bake the cake at 350º F for 20 minutes. The bake time will vary depending on the pan in which you bake your cakes.
  10. How to check to see if the cake is finished baking, insert a toothpick into the center of the cake. If the toothpick comes back clean, the cake is ready. If there are crumbs or batter on the toothpick, it must be baked longer.
  11. If the cake is fully baked, remove it from the oven and let the cake in the pan sit for 5 minutes. After 5 minutes, gently tilt the cake out of the pan onto a cooling rack. Letting it sit in the pan for 5 minutes allows the cake to settle and makes it a lot easier to get it out of the pan without breaking.
  12. Pro TIPLet the cake cool completely before frosting it. Otherwise, your frosting could melt. If you are in a hurry, cool your cake in the refrigerator. 
  13. While the cake is cooking, prepare the chocolate cream cheese frosting. Add the butter, cream cheese, cocoa powder, and powdered sugar to the bowl of a stand mixer. Put on a whisk attachment. Mix the homemade chocolate cream cheese frosting in a standing mixer. Start at a low speed and gradually increase the speed. Whip for 3-4 minutes until the frosting is nice and fluffy. (Be sure your butter and cream cheese are at room temperature so your frosting whips really creamy!)
  14. See the notes below for detailed directions to frost the cake.

Nutrition

Serving: 1sliceCalories: 488kcalCarbohydrates: 62gProtein: 6gFat: 27gSaturated Fat: 16gPolyunsaturated Fat: 1gMonounsaturated Fat: 7gTrans Fat: 1gCholesterol: 109mgSodium: 140mgPotassium: 200mgFiber: 4gSugar: 51gVitamin A: 874IUVitamin C: 0.1mgCalcium: 99mgIron: 2mg

Video

Notes

  1. There are many gluten free cocoa powder brands. I like Rodelle, Anthony’s, and Ghirardelli. If you see lumps in the cocoa powder, I recommend sifting it into the dry ingredients.
  2. I have tested this recipe with King Arthur Measure for Measure GF and Bob’s Red Mill 1 to 1 GF blend. That doesn’t mean others will not work; I just have not tested other flours.
  3. If your gluten free flour blend doesn’t contain xanthan gum or another binder, add 3/4 teaspoon.
  4. To make this cake dairy-free, substitute the butter for vegan butter and use a dairy-free yogurt like the Kite Hill brand.
  5. I used almond milk, but other dairy-free kinds of milk will work. However, I do not recommend canned coconut milk.
  6. When mixing the batter, do not over-mix the batter. It would result in a denser cake.
  7. If you don’t have the mini layer pans, you can bake this cake in regular-sized cake pans or as cupcakes. Note that each cake pan size will require a different baking time.
  8. This cake will keep fresh for up to 3 days in the refrigerator. You can also freeze it. I recommend freezing the cake unfrosted, with each layer wrapped in plastic wrap and gently placed in a large freezer-safe zipper bag.

Nutritional Disclaimer

Nutritional information is an estimate provided to you as a courtesy. You should calculate the actual nutritional information with the products and brands you are using with your preferred nutritional calculator.

Tried this recipe?

Let us know how it was!
QR Code

Save

4.86 from 28 votes (18 ratings without comment)

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe Rating




36 Comments

  1. 3 stars
    Flavour was great but I barely got a rise. It was definitely quite dense, no cake texture more like a brownie. Also 20min it was still raw. I had to add 15min so 35min was good.
    I’ll make this again for chocolate chip brownies.

    1. Hi Jenny, I haven’t heard of this happening with this recipe. Which flour blend did you use and did you check to ensure the baking powder wasn’t expired? What was the texture and consistency of your cake batter? Did you use a stand mixer? The baking time really depends on the size and material of the cake pan.

  2. When I bake I’ve been measuring my flour by weight rather than cups. Do you spoon the flour into the measuring cup instead of scooping to get an accurate measurement?

  3. I want to make a 3 layer 8 inch cake. Would this recipe still work or do you think I should increase the quantities of ingredients?

  4. The Bob’s Red Mill 1:1 gluten free flour I have doesn’t have xantham gum listed in the ingredients. Do I need to add a tsp of xantham gum to the recipe?

  5. 3 stars
    This picture of this cake looked so delicious. My first problem is that the pan size was not cited within the recipe. I used two 8″ pans, which did not exceed the traditionally recommended 2/3 fill for a baking pan. Twenty minutes baking time was not near enough; these required 35-40 minutes each to fully bake. I feel that the cake was not quite sweet enough, in spite of the fact that I would normally cut sugar in recipes by 25%. If I were to make it again, I would increase the cocoa in the frosting. My husband liked both the cake & the frosting, but he’s not the GF person in this family.

    1. Hi Kathleen, I am sorry the cake didn’t work out for you. I had listed what pans I used under the ingredient notes, with a link to the actual pans so readers could see them. I also talked about the pan size in the Recipe FAQ section and advised the cake needs to bake longer if you use a different size pan. I just added a photo of the cake pans just in case anyone else doesn’t read the post and see the photo of the pans with batter I had already included.

  6. 5 stars
    I’ve made this cake so many times & each time it was delicious! I love this recipe, it’s easy yet tastes like you’ve worked for hours.
    I wrote the recipe down, way back when I first found, & didn’t write down the author, something I do religiously, now. I’m so glad I can now give credit where it’s due!! Thank you! BTW- people who aren’t GF ask for the recipe. It’s my go to for church meals!

  7. 5 stars
    I had to bake this cake today! I haven’t tasted it yet but I will soon.

    I used Bob’s red mill gf 1 to 1 baking flour. Instead of baking powder I used cream of tartar and baking soda. I also used light extra virgin olive oil in thr cake battery instead of butter because I only had enough unsalted butter for the icing. I used powder vanilla for the icing and added a little water. I heated a hershey’s bar on top of the cake. It was a lot of fun decorating the cake. Thanks for sharing all these amazing recipes. One new friend mentioned possibly going gluten free and I shared your website with her. ❤️

  8. I can’t wait to make this cake. Is there a way to make the cream cheese frosting just plain vanilla? Would I just leave out the cocoa powder? Thanks!

  9. 5 stars
    After a rough start the end result was a beautiful, moist cake. My neighbor asked if I would make a gluten free chocolate cake for his wife for her birthday. They absolutely loved it! Thank you Sandi for helping me thru this.

      1. Would I use 3, 6 inch cake pans to make a smaller cake? I wasn’t sure on the sizes of pans and how many of the pans I would use with this recipe.

        Thank you!!

  10. 5 stars
    This cake tastes SO delicious, much better than other GF ones I’ve made! Do I use a mixer to combine wet ingredients? Do I also use a mixer when combining dry and wet? What do you mean by ‘barely mixed together?’ I made this and tried to not mix a ton but then I had some chunks of ingredients in the final product. Thank you!

      1. I am making this recipe tonight. I am concerned about the small amount of flour the recipe calls for. Only 3/4 of a cup is needed or is this a type-o

  11. 5 stars
    My dearest friend is now following a gluten free diet. This cake was my first foray in baking for her — holy heck, she LOVEd it! and even the non gluten free people loved it. Its nice to make something to rave reviews while still following their dietary requests. Ill be making this often!