There is something special about a homemade chocolate cake. The rich chocolate aroma filling the kitchen, the soft texture of a freshly baked sponge, and that first bite of chocolatey goodness can turn an ordinary day into a celebration. Whether you are preparing a birthday cake, planning a family dessert, or simply craving something sweet with your evening tea, a classic chocolate cake is always a wonderful choice.
The best part? You do not need to be a professional baker or own expensive baking equipment to make a delicious cake. With a few everyday ingredients, the right measurements, and a little patience, you can prepare a soft, moist and rich chocolate cake right in your home kitchen.
This easy chocolate cake recipe is designed for beginners as well as experienced home bakers. It explains every step, from preparing the cake batter to baking the sponge and making a smooth chocolate frosting. You will also learn how to avoid common baking mistakes, store your cake properly, and adapt the recipe to suit your preferences.
If you have been searching for an easy homemade chocolate cake recipe, an eggless alternative, or a simple chocolate cake for birthdays and special occasions, this guide will help you get started.
Recipe Overview
- Recipe name: Homemade Chocolate Cake
- Cuisine: International
- Course: Dessert
- Preparation time: 20 minutes
- Cooking time: 30–40 minutes
- Cooling time: 45–60 minutes
- Total time: Approximately 1 hour 45 minutes to 2 hours
- Servings: 8–10 slices
- Difficulty level: Easy to moderate
- Main ingredients: All-purpose flour, cocoa powder, sugar, eggs, milk, oil and baking powder
- Baking temperature: 180°C in a conventional oven
What Makes This Chocolate Cake Recipe Special?
A good chocolate cake should be more than just sweet. It should have a soft crumb, a balanced chocolate flavour, and enough moisture to remain enjoyable even after a day in the refrigerator.
This recipe uses unsweetened cocoa powder to create a deep chocolate flavour. Oil helps keep the cake moist, while milk adds tenderness to the batter. Eggs provide structure and help the sponge rise, and a combination of baking powder and baking soda creates a lighter texture.
Another important ingredient is hot water or hot coffee. Adding a little hot liquid to cocoa-based batter helps disperse the cocoa powder and intensify its chocolate aroma. Coffee is optional, and the cake will not taste strongly of coffee when a small amount is used.
You can enjoy this cake plain, dust it with powdered sugar, cover it with chocolate ganache, or decorate it with buttercream frosting. The basic sponge is versatile enough for birthdays, anniversaries, celebrations, and everyday desserts.
Ingredients for Chocolate Cake
The following measurements are suitable for one round 8-inch cake tin.
Ingredients for the cake sponge
| Ingredient | Quantity |
|---|---|
| All-purpose flour (maida) | 1½ cups (approximately 190 g) |
| Unsweetened cocoa powder | ½ cup (approximately 45–50 g) |
| Granulated sugar | 1 cup (approximately 200 g) |
| Eggs | 2 large |
| Milk | ¾ cup (180 ml) |
| Neutral cooking oil | ½ cup (120 ml) |
| Hot water or hot coffee | ½ cup (120 ml) |
| Baking powder | 1½ teaspoons |
| Baking soda | ½ teaspoon |
| Vanilla extract | 1 teaspoon |
| Salt | ¼ teaspoon |
Ingredient note: Weighing ingredients with a kitchen scale gives more consistent results than measuring by volume. Use unsweetened cocoa powder rather than drinking chocolate powder, which usually contains added sugar and other ingredients.
Ingredients for chocolate frosting
| Ingredient | Quantity |
|---|---|
| Dark or semi-sweet chocolate | 150 g |
| Fresh cream or whipping cream | 150 ml |
| Unsalted butter | 1 tablespoon (optional) |
| Vanilla extract | ½ teaspoon (optional) |
This frosting produces a smooth chocolate ganache that works well as a topping or filling. If you prefer a simple cake, you can skip the frosting altogether.
Kitchen Equipment You Will Need
Before you begin, gather the equipment so you can work comfortably without interrupting the preparation process.
- One 8-inch round cake tin
- Mixing bowls
- Measuring cups and spoons or a kitchen scale
- Whisk or electric hand mixer
- Fine-mesh sieve
- Rubber spatula
- Baking parchment paper
- Oven
- Wire cooling rack
- Small saucepan and heatproof bowl for preparing ganache
If you do not have an electric mixer, do not worry. A hand whisk is sufficient for this recipe because the batter does not require extensive whipping.
Step-by-Step Chocolate Cake Recipe
Step 1: Preheat the oven and prepare the cake tin
Start by preheating your oven to 180°C for approximately 10–15 minutes. Preheating is important because the cake needs a properly heated environment to rise evenly.
Grease the inside of an 8-inch round cake tin with a little oil or butter. Line the bottom with baking parchment paper. You can lightly grease the parchment as well to make removing the cake easier.
Make sure the tin is dry and ready before preparing the batter.
Baking tip: If your oven tends to heat unevenly, place the cake tin on the middle rack. Avoid opening the oven door repeatedly during baking because sudden temperature changes can affect the cake's rise.
Step 2: Sift the dry ingredients
Take a large mixing bowl and add the all-purpose flour, cocoa powder, baking powder, baking soda and salt.
Sift these ingredients together using a fine-mesh sieve. This removes lumps from the cocoa powder and helps distribute the raising agents throughout the flour.
Add the granulated sugar and mix everything thoroughly with a whisk.
Sifting might seem like a small step, but it makes a noticeable difference in the texture of a chocolate cake. Cocoa powder often forms small lumps, and these can remain visible in the finished sponge if they are not broken up properly.
Step 3: Mix the wet ingredients
In a separate bowl, crack the two eggs and whisk them lightly until the yolks and whites are combined.
Add the milk, neutral cooking oil and vanilla extract. Whisk until the mixture looks smooth and uniform.
There is no need to beat the eggs until they become thick and foamy. The goal is simply to combine the ingredients evenly.
Using oil instead of butter is a practical choice for a moist chocolate cake. Oil remains liquid at room temperature, helping the cake retain a soft texture even after it has cooled.
If possible, use milk and eggs that are not extremely cold. Ingredients closer to room temperature generally combine more easily.
Step 4: Combine the wet and dry mixtures
Pour the wet mixture into the bowl containing the dry ingredients.
Use a whisk or rubber spatula to mix everything gently. Move around the sides and bottom of the bowl to ensure that no dry flour remains hidden underneath.
Continue mixing only until the ingredients are combined and the batter looks smooth.
Do not overmix the batter. Excessive mixing develops gluten in the flour, which can make the finished cake dense or slightly chewy rather than soft and tender.
At this stage, the batter may appear thicker than expected. That is normal because you have not yet added the hot liquid.
Step 5: Add hot water or coffee
Carefully pour the hot water into the batter in a slow, steady stream while stirring gently.
You can use hot coffee instead of water if you want a deeper chocolate flavour. A mild brewed coffee or prepared instant coffee works well.
Once the liquid is incorporated, the batter will become thinner than a typical vanilla cake batter. Do not add extra flour simply because it looks runny. This consistency is intentional and helps produce a moist chocolate sponge.
Stir until the batter is evenly combined, but avoid unnecessary mixing.
Important: If using hot liquid, add it gradually and stir carefully to avoid splashing. The liquid should be hot, not violently boiling.
Step 6: Pour the batter into the cake tin
Transfer the prepared batter into the greased and lined cake tin.
Use a spatula to scrape the sides of the mixing bowl so that you do not waste the batter. Gently tap the tin on the kitchen counter once or twice to release any large air bubbles.
Avoid repeatedly banging the tin, as this is unnecessary and may disturb the batter.
The tin should not be filled right to the top. Leave enough space for the cake to rise during baking.
Step 7: Bake the chocolate cake
Place the tin on the middle rack of the preheated oven.
Bake at 180°C for approximately 30–40 minutes. The exact baking time depends on your oven, the cake tin, and the depth of the batter.
Begin checking the cake after about 30 minutes.
To test whether it is ready, insert a clean toothpick into the centre of the cake. If it comes out clean or with a few moist crumbs, the cake is generally ready. If it comes out covered in wet batter, bake for another 3–5 minutes before checking again.
The top should look set, and the edges may begin to pull slightly away from the tin.
Do not open the oven door during the first 20–25 minutes unless absolutely necessary. Opening it too early can cause the cake to sink.
Step 8: Let the cake cool completely
Once the cake is baked, remove it from the oven using oven gloves.
Allow it to rest in the tin for around 10–15 minutes. This gives the sponge time to settle and makes it easier to remove without breaking.
Run a thin knife around the edges if needed. Turn the cake out carefully onto a wire rack, remove the parchment paper, and allow it to cool completely.
Cooling is essential before adding frosting. If you spread chocolate ganache over a warm cake, the heat can cause the ganache to become runny and slide off the sides.
If you are in a hurry, you can let the cake cool in a well-ventilated room, but avoid placing a very hot cake directly into the refrigerator.
Step 9: Prepare the chocolate ganache
Chop the chocolate into small, reasonably uniform pieces and place them in a heatproof bowl.
Heat the cream in a small saucepan over low to medium heat until it is steaming and hot. Remove it from the heat before it reaches a vigorous boil.
Pour the hot cream over the chopped chocolate. Leave it undisturbed for approximately 2–3 minutes so that the chocolate begins to melt.
Stir slowly from the centre outward until the mixture becomes smooth and glossy.
If desired, add the butter for extra richness and a little vanilla extract for aroma. Stir until fully incorporated.
Allow the ganache to cool until it reaches a spreadable consistency. Depending on the chocolate and room temperature, this may take 20–40 minutes.
For a thicker frosting, allow it to stand longer. For a thinner topping, use it while it is still slightly warm but not hot.
Step 10: Frost and decorate the cake
Place the completely cooled cake on a serving plate or cake stand.
Pour some of the ganache over the centre and spread it gently towards the edges using a spatula. Allow a little chocolate to drip naturally down the sides for a simple, attractive finish.
If you prefer a more polished appearance, cover the top and sides evenly with ganache.
You can decorate the cake with chocolate shavings, cocoa powder, chopped nuts, chocolate chips, strawberries or fresh raspberries.
For a birthday cake, cut the sponge horizontally into two layers after it has cooled completely. Spread a layer of ganache between the two halves, stack them carefully, and cover the top and sides with the remaining frosting.
Refrigerate the frosted cake briefly if you want the ganache to set more firmly.
Step 11: Slice and serve
Allow the finished cake to rest until the frosting is set enough to cut cleanly.
Use a sharp knife to cut the cake into 8–10 slices. For neater slices, wipe the knife between cuts.
Serve the cake with tea, coffee, a glass of milk or a scoop of vanilla ice cream. It also makes a lovely dessert after lunch or dinner.
Your homemade chocolate cake is now ready to enjoy.
How to Make an Eggless Chocolate Cake
If you do not eat eggs or simply want an egg-free dessert, you can adapt the recipe.
For an eggless version, use the following changes:
- Replace the two eggs with ½ cup (120 g) of plain yoghurt.
- Use milk as directed in the original recipe.
- Keep the remaining ingredients the same initially.
- Mix gently and check the batter consistency before adding the hot liquid.
Yoghurt adds moisture and acidity, which helps the baking soda work. Because the original recipe includes eggs, the final texture and rise may differ slightly. Do not expect the eggless cake to be identical to the egg-based version.
Alternatively, use a tested eggless chocolate cake recipe specifically formulated with yoghurt, buttermilk or another suitable egg substitute.
Bake at 180°C and begin checking for doneness around the 30-minute mark. The exact time will depend on your ingredients and tin.
Tips for Making a Moist Chocolate Cake
Even a simple cake recipe can produce different results depending on how the ingredients are handled. These practical tips will help you achieve a soft, moist and flavourful chocolate cake.
Measure the ingredients accurately
Too much flour can make the cake dry and heavy, while excessive liquid can affect its structure. Weighing ingredients is the most reliable way to achieve consistent results.
Use good-quality cocoa powder
Cocoa powder is responsible for much of the cake's chocolate flavour. Choose unsweetened cocoa powder with a pleasant aroma and no stale or bitter smell.
Natural cocoa powder and Dutch-process cocoa powder differ in acidity. Because this recipe uses baking soda, natural cocoa powder is a sensible default. If you use Dutch-process cocoa, the results may vary, so a recipe specifically developed for it is preferable.
Do not overmix the batter
Once the flour is added, mix only until the ingredients are combined. Overmixing can develop excess gluten and lead to a tougher crumb.
Avoid overbaking
A cake can become dry if it stays in the oven too long. Begin testing for doneness at the lower end of the suggested baking time.
Remember that a few moist crumbs on the toothpick are fine. Raw batter is not.
Let the cake cool before frosting
Warm cake is delicate and can break easily. It can also melt the frosting. Allow enough time for the sponge to cool fully before decorating.
Choose the right cake tin
An 8-inch round tin is ideal for this recipe. Using a substantially smaller or deeper tin can increase the baking time, while a larger tin can produce a thinner cake that bakes more quickly.
Common Chocolate Cake Problems and How to Fix Them
Why did my chocolate cake become dry?
The most common reasons are overbaking, inaccurate flour measurements or too little liquid or fat.
Next time, check the cake earlier, weigh the ingredients, and avoid adding extra flour to a thin batter.
Why did the cake sink in the middle?
A sunken cake may result from opening the oven too early, underbaking, inaccurate measurements or too much raising agent.
Make sure the centre is properly baked before removing the cake. Also, check that your baking powder and baking soda are fresh.
Why is my cake dense?
Dense cake can result from overmixing, incorrectly measured flour, expired raising agents or an oven that was not properly preheated.
Sift the dry ingredients, combine the batter gently, and verify your oven temperature if possible.
Why does my cake taste bitter?
Using too much cocoa powder, accidentally adding excess baking soda or using an unsweetened chocolate product without balancing the recipe can affect the taste.
Measure all ingredients carefully and use the quantities specified in the recipe.
Why is my frosting too runny?
The ganache may still be warm, or the chocolate-to-cream ratio may not suit the chocolate you used.
Allow it to cool for longer. If it remains too thin, gently chill it and stir periodically until it reaches a spreadable consistency.
Delicious Chocolate Cake Variations
Once you have mastered the basic chocolate cake recipe, you can experiment with different flavours and toppings.
1. Chocolate Fudge Cake
For a richer dessert, add a generous layer of thick chocolate ganache between two cake layers. Finish with additional ganache on top and refrigerate briefly before serving.
This variation is ideal for birthdays and special celebrations.
2. Chocolate Coffee Cake
Replace the hot water with freshly brewed coffee. Coffee enhances the flavour of cocoa and creates a more pronounced chocolate taste without necessarily making the cake taste like coffee.
3. Chocolate Walnut Cake
Fold approximately ½ cup of chopped walnuts into the prepared batter just before pouring it into the tin. The nuts add a pleasant crunch and contrast with the soft sponge.
4. Chocolate Strawberry Cake
Spread a thin layer of chocolate ganache over the cooled sponge and decorate with fresh strawberries.
This combination works particularly well for anniversaries, romantic dinners and festive occasions. If using fresh fruit as a filling, refrigerate the cake and serve it promptly.
5. Chocolate Lava Cake
A chocolate lava cake is different from this full-sized sponge cake. It is usually baked in individual ramekins for a shorter time so that the centre remains molten.
If you want a flowing chocolate centre, use a dedicated lava cake recipe rather than simply underbaking this cake.
6. Chocolate Cake Without Frosting
For a simpler dessert, leave the cake unfrosted and dust the top with a little powdered sugar or cocoa powder.
You can also serve it with whipped cream, vanilla ice cream or sliced fruit. This option is particularly convenient when you want a chocolate dessert without the extra sweetness of frosting.
How to Store Homemade Chocolate Cake
Proper storage helps preserve the cake's moisture and flavour.
At room temperature: An unfrosted cake can generally be kept in an airtight container in a cool room for about 1–2 days, depending on the temperature and humidity. In hot weather, refrigeration may be preferable.
In the refrigerator: A cake topped with cream-based ganache should be stored in a covered container in the refrigerator. It is generally best enjoyed within 3–4 days, provided it has been handled and stored safely.
In the freezer: An unfrosted cake can be wrapped securely and frozen for approximately 2–3 months for best quality. Thaw it in the refrigerator or at room temperature while still wrapped, as appropriate, before frosting or serving.
If the cake contains fresh cream, fresh fruit or other perishable fillings, keep it refrigerated and avoid leaving it at room temperature for extended periods.
For the best texture, allow refrigerated slices to sit out briefly before serving, provided food safety conditions permit.
Is Homemade Chocolate Cake Healthy?
Chocolate cake is a dessert, so it is best enjoyed as part of a varied and balanced diet rather than treated as a health food.
The ingredients provide different nutrients: eggs contain protein, milk contributes protein and calcium, and cocoa powder contains naturally occurring plant compounds. However, the finished cake also contains sugar, refined flour and oil, and its nutritional value depends on the quantities and portion size.
If you want to make the recipe a little lighter, consider serving smaller slices, reducing the amount of frosting, or using a modest amount of sugar reduction in a tested variation. Changing several ingredients at once can affect the cake's moisture, structure and flavour.
You can also serve a slice with fresh fruit to add variety to the dessert.
Frequently Asked Questions About Chocolate Cake
1. Can I make chocolate cake without an oven?
Yes. You can make a chocolate cake using a suitable covered stovetop pot or pressure cooker adapted for baking, provided it can be used safely for that purpose.
Use a tested stovetop cake recipe and follow the equipment manufacturer's safety instructions. Do not use a sealed pressure cooker for baking or place water in the cooker unless the specific method and equipment instructions call for it.
Cooking time and temperature differ from oven baking, so the original 30–40-minute oven timing may not apply.
2. Can I use butter instead of oil?
Yes, but the texture may change. Butter provides a rich flavour, while oil tends to keep chocolate cake softer at room temperature.
If substituting butter for oil, use a recipe tested for that change. Melted butter can be used in some cake batters, but direct substitutions do not always produce identical results.
3. Which cocoa powder is best for chocolate cake?
Unsweetened natural cocoa powder is a good starting point for this recipe because it works well with the baking soda. Dutch-process cocoa can also produce a delicious cake, but it may require adjustments to the raising agents.
Choose a good-quality product and follow the recipe's recommended type.
4. How do I know when my cake is fully baked?
Insert a toothpick into the centre. It should come out clean or with a few moist crumbs rather than wet batter. The cake should also look set and spring back gently when lightly pressed.
5. Can I make the cake a day before a birthday party?
Absolutely. Bake the sponge a day ahead, allow it to cool completely, and store it in an airtight container. You can prepare the ganache separately or frost the cake in advance and refrigerate it.
Keep cream-based frosting refrigerated, and allow enough time for the cake to reach a suitable serving temperature before the event.
6. Can I make this chocolate cake without coffee?
Yes. Use hot water in the same quantity. Coffee is optional and is included only to enhance the chocolate flavour.
7. Why is my chocolate cake batter so thin?
The hot water or coffee makes the batter thinner than many conventional cake batters. This is expected and helps produce a moist crumb. Do not add extra flour unless you are following a tested variation that specifically requires it.
8. How many people does this recipe serve?
An 8-inch cake generally provides 8–10 reasonable slices. You may get more servings if you cut smaller pieces for a party or dessert buffet.
9. Can I make cupcakes with this batter?
You can adapt the batter for cupcakes, although baking time will be shorter. Fill cupcake liners approximately two-thirds full and begin checking them after 15–20 minutes at 180°C. Adjust the timing according to your oven and the size of the cupcakes.
10. What can I use instead of chocolate ganache?
You can use chocolate buttercream, whipped cream, cream cheese frosting or a simple dusting of powdered sugar. Choose a topping based on your preferred sweetness, texture and storage requirements.
Final Thoughts
A homemade chocolate cake does not need complicated techniques or expensive ingredients to taste wonderful. With flour, cocoa powder, sugar, eggs, milk, oil and a few basic baking essentials, you can prepare a soft and rich dessert that is suitable for both everyday treats and special occasions.
The secret lies in accurate measurements, gentle mixing, the right oven temperature and allowing the cake to cool properly before decorating it. Once you understand these basics, you can experiment with chocolate ganache, walnuts, strawberries, coffee or an eggless variation to create your own favourite version.
Try this easy chocolate cake recipe the next time you want a homemade dessert. Serve a slice with a cup of tea, share it with family and friends, or turn it into a beautifully decorated birthday cake. Sometimes, the simplest recipes become the ones we return to again and again.
Enjoy your homemade chocolate cake!