Homemade Chocolate Cake – a moist, fudgy two-layer chocolate cake made from scratch and finished with a rich homemade chocolate frosting. This simple cake is perfect for birthdays, celebrations, or any time you want a classic chocolate dessert.
Baking from scratch is one of my favorite pastimes, and this chocolate layer cake is one of the most requested recipes in my collection. If you enjoy homemade cakes, try other favorites like a white chocolate raspberry bundt or a Butterfinger layer cake.

Moist Chocolate Cake from Scratch
This two-layer homemade chocolate cake bakes up dense, tender, and fudge-like rather than airy like some boxed mixes. It uses basic pantry staples and comes together quickly—no fancy equipment required. The hot water in the batter helps bloom the cocoa for a deep chocolate flavor and keeps the crumb moist and tender.
The recipe is forgiving and perfect for bakers who prefer a cake that slices well and pairs beautifully with a classic chocolate buttercream.
HOW TO MAKE HOMEMADE CHOCOLATE CAKE
Ingredients needed for the cake:
- All-purpose flour
- Granulated sugar
- Unsweetened cocoa powder (regular cocoa such as Hershey’s works well)
- Baking powder
- Baking soda
- Salt
- Milk (2% or your preferred milk)
- Vegetable oil (or another neutral oil)
- Large eggs
- Vanilla extract
- Boiling water
- Preheat the oven to 350°F (175°C). Line and grease two 9-inch round cake pans and set aside.
- Whisk together the dry ingredients—flour, sugar, cocoa, baking powder, baking soda, and salt—in a large bowl until evenly combined.
- Add the wet ingredients: whisk in the milk, oil, eggs, and vanilla until the batter is smooth.
- Carefully stir in one cup of boiling water. The batter will be thin; this is normal and gives the cake a moist, fudgy texture.
- Divide the batter evenly between the prepared pans and bake for 30–35 minutes, or until a toothpick inserted in the center comes out clean.
- Cool the cakes in the pans for 10 minutes, then invert onto cooling racks to cool completely.

Tip for an extra moist cake
Wrap each warm cake layer tightly in plastic wrap and freeze for several hours or overnight. Trapping the steam preserves moisture, and the frozen layers are easier to level and stack. When you frost a frozen layer, the frosting sets quickly—work fast, then allow the assembled cake to come back to room temperature so the frosting softens to a creamy consistency.

Assembling the cake
Place the first layer on a cake stand or serving plate and spread about a cup of frosting over it. Add the second layer and frost the top and sides. To keep the stand clean, tuck small pieces of parchment or wax paper around the base while frosting, then remove them when finished. Allow the cake to come to room temperature before serving for the best texture.

Easy Chocolate Frosting
This chocolate buttercream is quick to make and tastes far better than store-bought frosting. It uses butter, cocoa, powdered sugar, a splash of milk, and a touch of vanilla and salt to balance the sweetness.
Ingredients for frosting:
- Butter, softened to room temperature
- Cocoa powder
- Powdered sugar (confectioners’ sugar)
- Vanilla extract
- Pinch of salt
- Milk (or cream) to reach spreading consistency
Beat the softened butter briefly, add the cocoa and powdered sugar, then add vanilla and a pinch of salt. Start with a small amount of milk and add more a tablespoon at a time until the frosting is smooth and spreadable. If you’d like to add sprinkles, apply them before the frosting sets.

Storage and Freezing
Store leftover cake covered so it doesn’t dry out. At room temperature it will stay fresh for 3–4 days; refrigerated, it keeps 4–5 days. For longer storage, freeze unfrosted layers wrapped tightly in plastic wrap for 3–4 months. You can frost from frozen and then let the cake thaw, or freeze a frosted cake after hardening the frosting first—wrap it well before long-term storage.
Variations and Substitutions
- Use hot coffee in place of the boiling water for a deeper chocolate flavor, or add 2–3 teaspoons of instant espresso powder.
- Add peppermint extract to the frosting for a chocolate-mint cake.
- Top the frosted cake with mini chocolate chips, chocolate curls, toasted nuts, coconut, or toffee bits.
- Try alternative frostings like peanut butter buttercream, vanilla buttercream, salted caramel, or a German chocolate-style topping.
- To make this gluten-free, substitute a cup-for-cup gluten-free flour blend; the cake will be more delicate, so freezing the layers before assembling helps.
- Make cupcakes by filling 24 paper-lined muffin cups and baking at 350°F for 18–22 minutes.
Easy Homemade Chocolate Cake with Chocolate Frosting
This homemade chocolate cake is simple, reliably moist, and full of chocolate flavor. It’s a great base for custom decorations, layer fillings, or a scoop of vanilla ice cream on the side. Enjoy!
Recipe at a glance
Prep time: 20 minutes • Cook time: 30 minutes • Cooling time: about 1½ hours • Total time: 2 hours 20 minutes
Yields: 16 servings • Calories per serving (approx.): 421 kcal
Ingredients (full list)
Cake
- 2 cups all-purpose flour
- 2 cups granulated sugar
- 3/4 cup unsweetened cocoa powder
- 2 tsp baking powder
- 1 1/2 tsp baking soda
- 1 tsp salt
- 1 cup milk
- 1/2 cup vegetable oil
- 2 large eggs
- 2 tsp vanilla extract
- 1 cup boiling water
Chocolate Frosting
- 1/2 cup butter, softened
- 1/2 cup cocoa powder
- 4 cups powdered sugar
- 1 tsp vanilla extract
- Pinch of salt
- 6–8 Tbsp milk or cream, as needed
Instructions (summary)
- Preheat oven to 350°F. Prepare two 9″ pans with parchment and non-stick spray.
- Combine dry ingredients. Whisk in milk, oil, eggs, and vanilla until smooth.
- Stir in boiling water until batter is smooth. Divide between pans and bake 30–35 minutes.
- Cool 10 minutes in pans, then invert onto racks. Cool completely (or wrap and freeze for ease of assembly).
- Frost with chocolate buttercream, assemble, and serve once the cake has come to room temperature for best texture.
Equipment
- Two 9-inch round cake pans
- Large mixing bowls and whisk
- Hand mixer or stand mixer (optional for frosting)
- Cooling racks
Nutrition (approximate per serving)
Calories: 421 kcal • Carbohydrates: 72 g • Protein: 4 g • Fat: 15 g • Sugar: 56 g
You will love this simple homemade chocolate cake with creamy chocolate buttercream. Each bite is rich, chocolaty, and utterly satisfying—perfect on its own or paired with vanilla ice cream.
