I’ve made all sorts of chocolate cakes over the past 15 years or so as a baker, a pastry chef & a home baker. I have absolutely loved each and every one of them, but this cake from my childhood tops the list to this date!
This is a simple chocolate cake that you can make with pantry staples but it is so nostalgic to me. This is one of the two cakes I learnt to bake as a little girl alongside my Mom. A good butter cake and this chocolate cake were two things we never missed to bake during the New Year (Sri Lankan New Year falls in mid April). Though cake is not very traditional over there, these light and moist treats were much loved amongst many other overly sweet, oily, deep fried sugary sweets.
The main difference of this cake batter is that it uses margarine and NOT butter as the fat. I have made this same cake using butter later on but it never turned out the way I remembered. Margarine mostly is made with vegetable oil and will make cakes extra moist (have you made Olive oil cakes? then you know). Also it gives a unique taste (different to that of butter). This unique flavor is so nostalgic to us Sri Lankans that we refer this as “Sri Lankan Chocolate Cake”.

Also back in the days we used a Sri Lankan cocoa powder, Kandos, made using single origin cocoa grown on the island. The cocoa is grown as an underplanting in coconut and rubber plantations and is not considered a major export, so it may not be commonly available in international markets.
If you want to replicate the exact version, you cab buy this specific cocoa powder from an online store or from an Asian grocer. But any Dutch processed cocoa powder works great for this cake!
Frost or not to frost?
I honestly prefer the non-frosted version of this cake. It is moist, light and sort of melts in your mouth, so for me this is just perfect as it is. But my husband loves the addition of chocolate buttercream. And I know that a lot of people that I know love a bit of extra sweetness on this cake. So it is up to you.
We never frosted this cake when we made it in the new Year season, there were already enough sweet stuff flowing around. But if you are making this cake for a celebration (this makes a great birthday cake!) then a light coating of chocolaty frosting is a must!

I use butter to make the frosting and not margarine. Butter gives the best tasting frosting and unlike cake, margarine doesn’t play a roll in the frosting. So use good quality salted butter. I also add extra salt to balance the sweetness. It is up to you though! If you like to really bring out the intense cocoa flavor, add a splash of espresso to the frosting.
You don’t have to use my frosting for this cake, any cake frosting will do! Even vanilla buttercream, Italian meringue buttercream or mocha buttercream will marry perfectly with this cake.
Gather the ingredients and follow these simple steps!

Make sure all the ingredients are at room temperature. I used Imperial Margarine but any vegetable butter should work. Avoid olive oil spreads as they can be too strong.
I’m using vanilla extract as that’s what I used originally. If you have vanilla bean paste, feel free to use that.
Use good quality sea salt, that’s what we used
My eggs weighed about 45g. If you have got large eggs (>55g) use 4.

Very important!
Sifting the dry ingredients is crucial to get that light crumb. So do not skip this step.
Simply combine flour, cocoa, baking powder, salt and sift using a fine mesh for about 4-5 times.
Repeated sifting will ensure that everything is evenly mixed and that there are no lumps. It also aerate the flour mix making the batter light and fluffy. This may sound wired but later at bakery school I learnt that this is true!

To this fluffy mixture, add one egg at a time and beat at a moderate speed until the egg disappears before adding another.
If the mixture curdles, add a teaspoon of the flour mixture and continue to beat until smooth.
Important as well!
Beating the fat and the sugar until light, pale and fluffy. Having all ingredients at room temperature (soft margarine) helps achieve this faster.
Also if your sugar is in large crystal form, consider blitzing it in a food processor/grinder to a much finer granule. Super fine caster sugar is the best. Fine sugar will dissolve faster and fluff up easily.

Once all the eggs are added, it’s time to fold in the flour. Add flour and milk alternatively. Use a big spoon to add flour to the mixture and beat the lowest speed, then add a splash of milk. For best results fold by hand. Video below!
The final batter should be luscious, smooth, voluminous and not too thick.
Continue until all the flour is added. Always try to end with flour and not milk. That way you can ensure the batter is well emulsified and not too runny. Milk will help loosen the batter, so if you don’t have to use all of it, it’s fine.
Batter curdled/separated?
If this happens, likely one of the ingredients were either too warm or too cold. Another reason could be that you mixed the batter a little too hard or a little too long.
A little trick is to refrigerate the batter with the bowl for 10 minutes and add a tablespoon of extra flour and beat on high for 3-4 seconds to bring back the smooth texture.
Take a look at the folding technique below. Mater this and your batter will be perfect every time.
Folding technique
Fold flour by hand using the mechanism shown in the video. Fold and cut through! This is the best way to incorporate flour to a batter without splitting the mixture.
This will also incorporate some air to the batter making it light and fluffy. This helps in achieving the supper light crumb.


Deposit the batter into prepared pans. I’m using two 8 inch round cake pans. This batter fits a 9 by 9 brownie pan too.
You can also bake this batter in 5 individual 6 inch cake pans too. The baking time may vary depending on the pan you use.
Once the batter is distributed, tap the trays on a table several times to release any trapped air pockets.

Bake in a preheated moderate oven (175 °C/ 350 °F) for about 25 minutes.
9″ by 9″ pan – 30-40 minutes
6″ pans – about 15 minutes
Test with a cake tester. If the tester comes out clean, the cake is done. Remove and leave to cool completely.
sugar syrup
To keep the cakes moist for longer, I brush the tops with a simple syrup while the cakes are still hot.
Bring 1 part sugar : 1 part water to a boil and simmer for a minute until sugar dissolves and syrup is slightly thickened
Frosting
Frosting is optional for this cake! It is usually served with tea (milk tea) and this light cake slides down easily. A little frosting can make this cake celebration ready though!

To make the frosting simply whisk butter until pale and fluffy, add the sifted icing sugar and cocoa powder and beat until incorporated. Use whisk attachment and beat on high for a 2 minutes to make it fluffier.
Feel free to adjust the amount of cocoa/sugar to your taste. A pinch of salt will help dial down the sweetness a notch!

Once the cakes are fully cooled, frost them however you fancy!
Use any frosting you like. eg: Cream cheese frosting, Swiss butter cream, chocolate ganache, whipped ganache

My Favorite Chocolate cake

Ingredients
For the cake
- 250g super fine caster sugar
- 250g margarine
- 220g all purpose flour
- 50g Dutch processed cocoa powder (unsweetened)
- 5 medium eggs (220g roughly)
- 2 tsp baking powder
- 1/3 cup of milk
- pinch of salt
- 1 tsp vanilla extract
For the frosting
- 2 sticks salted butter (220g)
- 50g unsweetened cocoa powder
- 600g confectioners sugar (powdered/icing sugar)
- a pinch of sea salt
- splash of milk or an espresso shot
- 1 tsp vanilla extract
Instructions
- Preheat the oven to 350°F and place a rack in the center
- Line baking pans with parchment and spray the sides. I have used two 8″ round cake pans in this post. You can use a 9″ by 9″ heavy cake/brownie pan to make a slab or even 5 individual 6″ cake pans to make a tiered cake
- Make sure all ingredients are room temperature
- Sift flour, baking powder, salt and cocoa powder several times and set aside
- Using a mixer, beat margarine and sugar until light and fluffy. Scrape down the bowl several times
- Once done add one egg at a time and beat until cleared before adding another
- Once all the eggs are added, slowly fold in the flour. Either use hand folding technique or use the lowest speed in the stand mixer
- Add milk and flour alternating each other. Milk will help loosen the batter so you can easily fold in flour
- Do not over mix the batter. Once all the flour is added, scrape down the sides and bottom of the bowl to ensure everything is mixed and no lumps or dry flour is left
- Drop the batter to prepared pans, smooth the surface
- Tap the pans on a table a few times to release any trapped air pockets
- Place in the preheated oven and bake until done
- When a tester inserted in the center comes out clean the cakes are done. Baking times vary depending on the pan size. Sheet pan may take 30-40 minutes, 8″ pans about 20-25 minutes and 6″ about 15 minutes
- Remove the baked cakes from the oven, set on a wire rack to cool
- When cool enough to handle, demold and set on wire rack to cool completely
- Cooled cakes can be stored in an airtight container at room temperature for up to two days or longer in fridge. Wrap and freeze to keep for several weeks
- To make the frosting, beat butter until light, pale and fluffy
- Add sifted powdered sugar and cocoa powder a little at a time and continue to beat
- Add a splash of milk or coffee to loosen up
- Use a whisk attachment towards the end to fluff up the frosting
- Frost the cooled cake as desired
- Use any other frosting of your choice to frost this cake
8 comments
How much cocoa in the frosting? None mentioned in recipe
Sorry about that. 50g unsweetened cocoa powder. I have now updated the recipe.
Cheers
Vindi
Hi, I would love to try this recipe. Is it possible to get the measurements in lbs?
You can use a google converter. It should be accurate enough
It would be great if they were a non-metric version of the weights, meaning a Volume version.
You can use google conversion. I have never used volume measures for this recipe.
Can you use butter instead of margarine, or lard?
Yes, you can. As I have mentioned above I have made this with butter but it doesn’t yield the same taste( still tastes yummy) or the moist crumb. Use of margarine is what sets this cake apart from other chocolate cakes.