Gluten Free Chocolate Cake

This is my version of Hershey’s “Perfectly Chocolate” Chocolate Cake. This gluten free chocolate cake recipe; however, is moister. I knew it would be a very moist cake just by reading the recipe. That’s the way my husband and I like our chocolate cake, rich and very moist! I told him that I was going to call this my chocolate mud cake; however, mud cakes are traditionally very gooey. I wish you were here to help us eat this huge cake!

Gluten Free Chocolate Cake

Prep Time: 18 minutes

Cook Time: 30 minutes

Total Time: 1 hour, 48 minutes

Yield: Serves 10

Gluten Free Chocolate Cake

There are two cakes that I couldn't possibly live without, this gluten free chocolate cake and my carrot cake. I'm sure you'll feel the same way, as well.



    To Make the Cake:
  1. Preheat the oven to 350°F. Oil two 8-inch round cake pans and dust with superfine rice flour; set aside.
  2. In the bowl of your mixer, combine the self-rising flour, sugar, cocoa powder, and salt.
  3. Add milk, oil, and eggs. Beat on medium speed until smooth.
  4. Add boiling water and mix on low speed until well blended. Add vanilla and beat on low for a few seconds.
  5. Distribute batter evenly between the two prepared pans. Bake for 30 minutes. The cake is done when a toothpick inserted near the center comes out clean.
  6. Remove cake from oven and cool for 10 - 15 minutes in pan. Remove from pan by turning it upside down onto your hand. Then transfer, bottom side down, to a wire rack. Allow to completely cool. Frost with your desired frosting.


All oven temperatures vary. If your cake layers develop mounds in the center, next time bake at 325°F for 5 - 10 minutes longer. To remove domed areas, slice off a thin layer like professional bakers do.

To turn this into a devil's food cake, add 1 tablespoon of instant coffee to the dry mixture. Be sure your instant coffee is gluten free. Cross contamination can be an issue of some instant coffee brands.

You may also be interested in the Gluten Free Cake Recipes category.

23 Replies to “Gluten Free Chocolate Cake”

  1. Hey Carla,
    Thanks for the recipe! I didn’t make any substitutions, and tried to follow the recipe to the T. I also didn’t make any substitutions for your flour blend. My cake came out with a little bit of a chew or something in the texture. I don’t know the correct term for how the texture was, but it was a little off. Can you help me figure out where I went wrong? :)

    1. Hi September,

      I’m sorry that your recipe turned out chewy. Do you measure your dry ingredients by fluffing them up and spooning into dry measuring cups? It’s the only way to prevent packaging in too much. Scooping flour up just compacts it , resulting in more flour than called for in the recipe. I hope this helps you.


  2. Hello Carla,

    I am having trouble making this recipe, and wanted to ask if you could help me. I tried to make the recipe to a T, but did use full fat coconut milk instead of cow’s milk (for the dairy) and did use regular cocoa (not dutch).
    I made your cake flour blend (I did not make any substitutions in your flour blend), used sugar, and used avocado oil. I used a stand mixer like the directions said, but my cake came out with a little weird texture. It’s hard to describe, but I guess I’d say it was a little chewy. Is it possible I over-mixed or under-mixed it? I would really appreciate your help as I can tell this would be a great recipe, and I trust your recipes. Thanks! :)

  3. Carla, I made this cake today for my birthday and I have to say it is THE best chocolate cake ever!!! My husband who is not gluten free loved it too! I used xylitol instead of sugar and I used Hershey’s special dark cocoa. It is rich, chocolaty, and oh so wonderful. I made a different icing for it but next time I’m going to go with a plain buttercream as the one I made was too rich. We ended up scraping off most of the frosting and eating the cake plain it was that good! Thank you for another awesome recipe!!

  4. Hi there I am just wondering if you could sub the flour for Bob Red Mills GF all purpose flour? And instead of the sugar can you use coconut sugar? Thanks so much

    1. Heather,

      The coconut sugar would not be a problem, but Bob’s Red Mill’s flour blend will create a different result. You can try it, but you may need to adjust the liquids. If you cannot purchase superfine rice flour which is called for in my flour blend recipe, try obtaining a safe gluten-free Asian or sweet rice flour. All of the other ingredients can be found at Whole Foods and other stores.


      1. Thanks for your reply.. the reason I was asking is my daughter is allergic to rice.. so I can not cook GF with anything that has rice in it??

  5. This cake is fantastic! I used butter for the oil and a 3:2 rice flour:cornstarch flour. It was loved by all. Thank you!

    1. That’s fantastic, Aleasha! Thanks for reporting back! This was the first gluten-free cake, besides quick breads, that I truly enjoyed. I’m glad your family/friends enjoyed it as well.


  6. I have been making another Hersheys cake for 37 years now (before the internet) and the last 4 been making the same one Gluten Free. It is “Hersheys Black Magic Cake” and is now on It uses strong coffee instead of hot water – for even more flavor use cajun coffee with chickory from Cafe DuMonde (on internet or in New Orleans in French Quarter) or French Market brand. It is moist and delicious and even if you use Bobs Red Mills All-purpose GF flour with bean flour, it is great. I make it by following the recipe on the website and substituting GF flour – otherwise exact recipe – and oh – Olive oil for the oil. I like the 7-minute cooked frosting or a chocolate buttercream, but any frosting that goes on a moist chocolate cake will work, and sometimes I just sprinkle sifted powdered sugar on it just before eating/serving (it melts into cake if sprinkled on before). The recipe above is very similar. Enjoy!

  7. Facebook Comment Sept. 11, 2012:

    “This is the only gluten free cake that everyone in my family will eat!!! Family members who are not on a gluten free diet love it too. Awesome recipe….a MUST try for anyone who has to eat allergen free.”


  8. This is the BEST gluten free cake I have had yet!!! My whole family LOVED it, most of whom are not on a restricted diet. Thanks for the GREAT recipe!!!

  9. Wondering about whether it would still as moist if I had to use a chia seed or flaxseed slurry as a sub for the eggs….Any thoughts? The last gluten free vegan cake I made was yummy but crumbly/dry.

    1. Sugar and oil are the main ingredients in this cake that make it moist. Note how high the sugar content is. I already cut the original amount from Hershey’s recipe by 1/4 cup. If it comes out dry I would add more oil next time. I have never used either of the above ingredients in a cake or muffin, so I wouldn’t be able to tell you if you’d get the same rise, though. If it doesn’t rise enough, just beat it longer next time, but you may end up with mounds in the center, if you beat it too long. High centers come from too high a heat or over mixing. Good luck!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.