This homemade gluten-free chocolate cake is rich, moist, and full of deep chocolate flavor. The tender crumb comes from sour cream, and the cake is finished with a silky chocolate cream cheese frosting. It’s perfect for birthdays, celebrations, or a groom’s cake—guests won’t know it’s gluten-free.

❤️ Sandi’s Recipe Summary
The Quick Bite: This gluten-free chocolate cake has been refined over years to be consistently moist and delicious. It uses simple pantry ingredients and sour cream for extra richness. I tested it with several 1:1 gluten-free flour blends so you know which ones work best.
- Time: About 1 hour 20 minutes (including cooling).
- Tools: Whisk, mixing bowls, cake pans (or mini pans), cooling rack, mixer, frosting spatula.
- Free From: gluten (and can be soy-, oat-, or nut-free depending on ingredient choices).
- Best For: Birthdays, weddings, celebrations.
- Pro Tip: Let the batter rest 15–20 minutes so rice flour softens and the texture becomes less gritty.
This cake has become a family favorite and is often requested for birthdays. Bakeries have told me they use this recipe for groom’s cakes because it reliably produces a moist, chocolatey result.


The recipe debuted in 2017 and has improved as my gluten-free baking techniques evolved.
A Note From My Kitchen
I’ve tested this recipe many times and adjusted it to keep the cake moist and tender. I recommend letting the batter rest 15–20 minutes so the rice flour softens—especially important with grittier blends like some versions of Bob’s 1:1. If you try a flour blend I haven’t tested, adjust liquids a tablespoon at a time until the batter has the proper consistency. I also tested a dairy-free version using a Measure-for-Measure style blend with successful results; see the substitutions section for details.

Ingredient Notes:
For exact ingredient amounts see the recipe card below.
Gluten-Free Flour Blends Tested
- Tested blends: Bob’s Red Mill 1-to-1 and King Arthur Measure-for-Measure. Both performed well; other blends may work but could require small moisture adjustments.
- Reader-tested: Pamela’s Artisan Blend has been reported to work well by readers.
Other key ingredients
- Binder: If your blend lacks xanthan or guar gum, add 1 teaspoon.
- Cocoa powder: I prefer brands with strong chocolate flavor—sift if lumpy.
- Sour cream: Full-fat sour cream keeps the cake tender and moist; plain yogurt can substitute.
- Eggs: Use large eggs for structure and lift.
- Butter: Unsalted butter is recommended for the cake; you can use oil for a dairy-free version (not for the frosting).
- Milk: Almond milk worked in testing; choose a neutral plant milk if making the cake nut-free—avoid canned coconut milk.
- Leavening: Baking powder is used here; use baking soda if your cocoa is natural rather than Dutch-processed.
- Cream cheese: Bring to room temperature for the creamiest frosting.
Substitutions
- Dairy-free: Use dairy-free cream cheese and vegan butter, and swap sour cream for dairy-free yogurt.
- Nut-free: Replace almond milk with soy or another neutral plant milk.
- Gum-free: Use a DIY gluten-free flour blend that doesn’t rely on xanthan or guar.
- Butter-free: Replace butter in the cake with a light-flavored oil; keep butter in the frosting or use vegan butter for dairy-free frosting.
- Sour cream substitute: Plain yogurt works well if you don’t have sour cream.
How to Make a Gluten-Free Chocolate Cake (Step-By-Step)

Step 1: Preheat the oven to 350°F and set the rack to the middle position. Combine dry ingredients in a large bowl; sift cocoa if it has lumps.
Step 2: Whisk dry ingredients together. If your mix lacks a binder, add 1 teaspoon xanthan gum.
Step 3: Whisk wet ingredients in a separate bowl. Slightly melted butter blends smoothly.
Step 4: Add wet ingredients to dry and fold with a large spoon just until combined—do not overmix to preserve a light texture.

You can bake the batter in mini layer pans, regular cake pans, a 9×13 sheet pan, or as cupcakes—bake time varies by pan size. If using mini pans, they make building layer cakes easy.

Step 5: Grease pans with a gluten-free baking spray and fill with batter. Bake at 350°F—mini pans took about 20 minutes in testing, but always test with a toothpick. When a toothpick inserted in the center comes out clean, the cake is done.
Step 6: Let the cake rest in the pan for 5 minutes, then invert onto a cooling rack. Cool completely before frosting to prevent the frosting from melting; refrigerate to speed cooling if needed.

Step 7: Make the chocolate cream cheese frosting while the cake cools. Beat room-temperature cream cheese and butter, add cocoa and powdered sugar, then whip until light and fluffy.
How to frost this cake like a pro
- Level cake domes with a serrated knife or cake leveler for even layers.
- Place the first layer flat side down and add a dollop of frosting on your cake board or stand to prevent sliding.
- Spread an even layer of frosting, add the next layer, and lightly press to set.
- Apply a thin crumb coat all over, chill 20–30 minutes, then add a final generous layer of frosting.
- Use an offset spatula and bench scraper to smooth sides while rotating the cake for a clean finish.
Make it fancy
- Top with chocolate curls or shavings for a professional look.
- Add gluten-free sprinkles or other certified-safe toppings if desired.
Tips For Success
- Do not use a stand mixer to combine the cake batter—overmixing makes gluten-free cakes dense; fold by hand instead.
- Set the oven rack in the middle and verify your oven temperature with an oven thermometer to avoid cracking or uneven baking.
- Use a reliable gluten-free baking spray to prevent sticking.
Frequently Asked Questions
Can I use oil instead of butter? Yes. A light, neutral oil works well in the cake (not recommended for the frosting).
How do you store the cake? Store in an airtight container in the refrigerator for up to 3–4 days.
Can you freeze this cake? Yes—freeze unfrosted baked layers wrapped in plastic and foil, placed in a freezer bag. Thaw before frosting to avoid sogginess.

“My friend who is now gluten-free LOVED this cake. Even non-gluten-free guests raved about it. I’ll be making this often!”
Michele W.
More Gluten-Free Cake Recipes
- Gluten-Free Vanilla Cake — a bakery-trusted vanilla layer cake option.
- Gluten-Free Lemon Layer Cake — with lemon curd between the layers.
- Gluten-Free Hummingbird Cake — a moist, spiced celebration cake.
- Gluten-Free Chocolate Pumpkin Cake — a light, seasonal chocolate cupcake or layer cake option.

Gluten Free Chocolate Cake (Rich and Decadent!)
This gluten-free chocolate cake with sour cream is moist, rich, and packed with deep chocolate flavor. Sour cream adds tenderness for an irresistibly fudgy crumb.
Ingredients
- ¾ cup cane sugar
- ¾ cup cocoa powder
- ¾ cup gluten free flour blend
- 3 large eggs
- ½ cup unsalted butter, softened
- 1 teaspoon baking powder + dash of salt
- ¾ cup almond milk (or other milk)
- 6 ounces sour cream (or plain yogurt)
- 8 ounces cream cheese, room temperature
- ½ cup unsalted butter, room temperature
- 3 ¾ cups powdered sugar
- ½ cup cocoa powder
- 1 teaspoon pure vanilla extract
Method
- Preheat oven to 350°F and position rack in the middle.
- Combine dry ingredients in a large bowl; sift cocoa if lumpy.
- Whisk dry ingredients. Add 1 teaspoon xanthan gum if your blend lacks a binder.
- Whisk wet ingredients in a separate bowl; slightly melt butter for easier blending.
- Fold wet into dry with a large spoon until just combined; avoid overmixing.
- Grease pans with gluten-free baking spray and fill with batter.
- Bake at 350°F. Mini pans took about 20 minutes in testing; bake time varies by pan size. Test with a toothpick.
- Let cakes sit in the pan 5 minutes, then invert onto a rack to cool completely.
- Make frosting: beat butter and cream cheese, add cocoa and powdered sugar, and whip until light and fluffy.
- Level layers, crumb-coat, chill, then finish with a smooth final layer of frosting.
Notes
- If your cocoa is lumpy, sift it. Choose a cocoa with strong chocolate flavor.
- I tested King Arthur Measure-for-Measure and Bob’s Red Mill 1:1 blends. Other blends may require adjustments.
- If your flour blend lacks a binder, add ¾ to 1 teaspoon xanthan gum.
- To make the cake dairy-free, use vegan butter and dairy-free yogurt; use dairy-free cream cheese for frosting.
- Avoid canned coconut milk as it’s too thick for this batter.
- This cake keeps 3 days in the refrigerator. Freeze unfrosted layers wrapped tightly.
Love This Recipe?
I’d love to hear how your cake turned out and which gluten-free flour blend you used—your feedback helps other bakers succeed.