Go Back
+ servings
hershey's perfectly chocolate cake

The Hershey's Perfectly Chocolate Cake Recipe

yield: 1 three-layer, 8-inch cake
Prep Time: 10 mins
Work Time: 45 mins
Bake Time: 30 mins
5 from 5 votes

Special Equipment

  • three 8-inch round cake pans (see FAQ for other cake pan variations)
  • a digital kitchen scale
  • a cake board
  • a rotating cake stand
  • an offset spatula


For the Hershey's Perfectly Chocolate Cake

  • 2 cups (14 ounces or 397 grams) granulated sugar
  • 1 ¾ cups (7.85 ounces or 223 grams) all-purpose flour
  • ¾ cup (2.25 ounces or 64 grams) natural unsweetened cocoa powder, sifted if necessary
  • 1 ½ teaspoons baking powder
  • 1 ½ teaspoons baking soda
  • 1 teaspoon kosher salt
  • 1 cup (8 ounces or 227 grams) whole milk, at room temperature
  • ½ cup (4 ounces or 113 grams) canola oil
  • 2 large eggs, at room temperature
  • 2 teaspoons pure vanilla extract
  • 1 cup (8 ounces or 227 grams) boiling water

For the Hershey's Perfectly Chocolate Frosting

  • 4 ½ cups (18 ounces or 510 grams) confectioners' sugar
  • 1 cup (3 ounces or 85 grams) natural unsweetened cocoa powder
  • ½ teaspoon kosher salt
  • ½ cup (4 ounces or 113 grams) whole milk
  • 1 ½ teaspoons pure vanilla extract
  • ¾ cup (6 ounces or 170 grams) unsalted butter, at room temperature


Day 1: Make the Chocolate Cake

  • Prep your oven and pans. Position a rack in the center of the oven and preheat the oven to 350°F. Generously spray three 8-inch round cake pans with cooking spray and line the bottom of each with a parchment paper circle. Spray the parchment, too.
  • Make the cake batter. In a medium bowl, whisk together the sugar, flour, cocoa powder, baking powder, baking soda, and salt.
  • In a large bowl, whisk together the milk, oil, eggs, and vanilla. Gradually whisk in the dry ingredients until just combined. Slowly pour in the water. The batter will be fairly runny; use a rubber spatula to scrape down the bottom and sides of the bowl. Use the rubber spatula to finish mixing until smooth and well combined, 2 to 3 minutes more.
  • Divide the batter evenly between the pans; if using a digital scale to measure out layers, note that this recipe makes around 48 ounces (1361 grams) of batter—pour 16 ounces (454 grams) of batter into each cake pan.
  • Bake the cakes. Bake for 30 to 35 minutes. When done, the top of the cake should bounce back when gently pressed. A skewer inserted into the center of the cake should come out with a few crumbs attached. Cool completely in the pans on a wire rack before frosting.
  • Store the cakes. Once the cakes are cool, tightly wrap each cake layer in its own sheet of plastic wrap. Freeze overnight, or up to 3 months.

Day 2: Make the Chocolate Frosting and Assemble The Hershey's Perfectly Chocolate Cake

  • Thaw the cakes. When ready to assemble the cake, remove the cakes from the freezer. Unwrap each cake and discard the plastic wrap. Set aside to thaw slightly while you make the frosting.
  • Prep the ingredients for the chocolate frosting. Sift together the confectioners' sugar, cocoa powder, and salt into a medium bowl. In a small liquid measuring cup, whisk together the milk and vanilla.
  • Make the chocolate frosting. In the bowl of a stand mixer fitted with the paddle attachment, beat the butter on medium-low until smooth and creamy, about 1 minute. Reduce the mixer to low and gradually add the dry ingredients, beating until combined. Scrape down the bottom and sides of the bowl with a rubber spatula. With the mixer on low, slowly pour in the milk and vanilla and beat until just combined. Scrape down the bottom and sides of the bowl once more, then beat on medium-high until the frosting is creamy and smooth, 2 to 3 minutes. Use immediately.
  • Assemble the cake. If necessary, level the top of the cakes. Place one of the cake layers on a cake board or serving platter in the center of a rotating cake stand. Use a rubber spatula or cookie dough scoop to drop ½ cup of frosting in the middle of this cake layer. Use an offset spatula to spread it evenly all over the top, just like you would spread butter on toast. Place the second cake on top of this frosting, stacking it evenly on top of the first cake. Use the rubber spatula or cookie dough scoop to drop another ½ cup of frosting in the middle of this cake layer. Spread it evenly all over the top. Finally, place the third cake on top of this frosting, stacking it evenly on top of the first two cakes.
  • Next, crumb coat the cake. Use the offset spatula to cover the surface of the entire layer cake with a thin layer of frosting. Use just enough frosting to cover the entire cake completely. Refrigerate, uncovered, for 10 to 15 minutes to stiffen and "set" the frosting.
  • After the crumb coat sets, finish frosting the cake. Use the offset spatula to cover the cake with the remaining frosting. Then, use the spatula to make large, random sweeping motions across the frosting on the top and sides of the cake. The sweeping motions will create swirls.
  • Serve and store. Serve immediately. The assembled Hershey's Perfectly Chocolate Cake can be stored at room temperature, under a cake dome or a large bowl turned upside down, for up to 1 day. Press a sheet of plastic wrap against any cut surfaces to prevent the cake from drying out. After that, cover the entire cake loosely with plastic wrap and refrigerate for up to 2 days.


  • If you don't have an electric kettle to boil water and need to boil it in the microwave or stovetop, prep the water first. Specifically: bring the water to a boil WHILE you prep and measure the ingredients needed for the cake. By the time you finish prepping the ingredients for the cake, the water should be ready! Multitasking saves you time in the kitchen.
  • Make sure that the water is very hot, as close to freshly boiled as possible, when you add it to the cake batter. This is the secret to a super moist and fluffy cake! To ensure that my water stays very hot, I pour it into an insulated mug right after boiling. Then, I place a ceramic plate on top of the mug to act as a makeshift lid to trap heat inside.
  • For even cake layers, I like to actually weigh out the layers with a digital kitchen scale to make sure they’re even. The easiest way to do this is to set a prepared cake pan on a digital scale and tare it to “0”. Pour batter into the pan until the scale registers the weight listed in the recipe (because yes, I’ve included the approximate weight of the batter needed for each pan!). Repeat with the second and third cake pans. 
  • Use a large, fine-mesh sieve to sift ingredients for the frosting. It's the fastest and easiest way to sift ingredients! All you need to do is place the fine-mesh sieve over a bowl. Then, dump the ingredients that need to be sifted into the sieve. Use a whisk to stir the ingredients until they pass through the bottom of the sieve and into the bowl below.
  • If you don't want to make this cake over two days, you can also make it in one day. Check out the section in this post titled "How To Make Hershey's Perfectly Chocolate Cake Recipe" for more information.