Sri Lankan Butter Cake: A Soft, Buttery Vanilla Loaf

Updated November 3, 2026

Total time
3 hr 10 min
prep 1 hr 10 min · cook 1 hr
Serves
10
portions as written
Safe temperature (USDA)
160°F / 71°C
check the thickest piece

Jump to recipe

Sri Lankan Butter Cake: A Soft, Buttery Vanilla Loaf

Sri Lankan butter cake is a simple, tender vanilla cake made with butter, sugar, eggs, flour, and a little milk. Baked as a loaf and served in slices, it has a fine crumb and a rich but not overly sweet flavor; careful creaming and room-temperature ingredients help it rise evenly and stay soft.

Ingredients

  • 1 cup (227 g) unsalted butter, softened but not greasy
  • 1 cup (200 g) granulated sugar
  • 4 large eggs (about 200 g without shells), at room temperature
  • 2 cups (250 g) all-purpose flour, spooned into the measuring cup and leveled
  • 1½ teaspoons (6 g) baking powder
  • ¼ teaspoon (1.5 g) fine salt
  • ½ cup (120 ml) whole milk, at room temperature
  • 2 teaspoons (10 ml) vanilla extract
  • 1 teaspoon (5 ml) butter or neutral oil, for greasing the pan, plus parchment paper

Instructions

  1. Bring the ingredients to room temperature. Set the butter, eggs, and milk on the counter for about 45 minutes. The butter should yield when pressed but should not look shiny or melted. Room-temperature eggs and milk blend more smoothly into creamed butter, reducing the chance that the mixture will look curdled. If your kitchen is very warm, keep an eye on the butter so it stays cool and pliable rather than softening into a puddle.
  2. Prepare the oven and pan. Heat the oven to 325°F (163°C), with a rack in the center. Grease a 9-by-5-inch (23-by-13-cm) loaf pan, then line the base and long sides with a strip of parchment, leaving a little overhang to help lift out the cake. Lightly grease the parchment too. Measure the flour, baking powder, and salt into a bowl and whisk them together so the leavening is evenly distributed.
  3. Cream the butter and sugar. Using a stand mixer with the paddle attachment or a hand mixer, beat the butter on medium speed until smooth, about 1 minute. Add the sugar gradually and beat for 4 to 5 minutes, scraping the bowl once or twice. The mixture should look pale, fluffy, and noticeably lighter in texture. This step traps small air bubbles in the butter, which expand in the oven; rushing it can leave the cake dense.
  4. Add the eggs gradually. Beat in the eggs one at a time, mixing until each is incorporated before adding the next. Scrape the bowl and paddle as needed. If the mixture looks slightly separated, add a spoonful of the measured flour mixture and beat briefly; it should come together as the remaining ingredients are added. Mix in the vanilla.
  5. Alternate the flour mixture and milk. Add about one-third of the flour mixture and mix on low speed just until most of it disappears. Add half the milk, then another third of the flour, the remaining milk, and the last of the flour. Mix only until no dry streaks remain, scraping the bottom of the bowl once. Overmixing at this stage can make the crumb tight, so finish with a few gentle folds by hand if needed.
  6. Fill the pan and bake. Scrape the batter into the prepared loaf pan and smooth the top. Bake for about 60 minutes, rotating the pan once after 40 minutes if your oven browns unevenly. The cake is ready when the top is golden, a toothpick inserted in the center comes out clean or with a few dry crumbs, and the center springs back lightly when pressed. USDA FSIS gives 160°F (71°C) as the safe minimum internal temperature for egg dishes; check the center with an instant-read food thermometer and make sure it has reached at least that temperature. A baked cake will usually be considerably hotter when done.
  7. Cool before slicing. Set the pan on a rack for 15 minutes. Run a thin knife around any edges that are not lined with parchment, then use the paper to lift the loaf out. Let it cool on the rack for another 45 minutes before cutting. Slicing while it is hot can compress the soft crumb and make the middle seem gummy, even when the cake is fully baked.

Tips

  • Measure flour lightly. Scooping straight from the bag can pack extra flour into a cup and make the loaf dry. Spoon flour into the cup and level it, or, for the most consistent result, weigh 250 g. If you only have self-rising flour, it already contains leavening and salt; plain all-purpose flour is preferable here because the quantities are controlled for this recipe.
  • Keep the butter soft, not melted. Butter that is too cold will not cream properly, while greasy or melted butter cannot hold the same air. If you forgot to soften it, cut it into small cubes and let it stand briefly, checking often. Avoid warming it until it begins to melt.
  • Use gentle mixing after adding flour. A few small lumps are less of a problem than beating the batter until it becomes elastic. Stop as soon as the dry ingredients are incorporated, and scrape the base of the bowl to catch flour that may be hiding there.
  • Check your pan and oven. A dark metal loaf pan can brown the sides more quickly than a light-colored one, and ovens may run hot or cool. Start checking around 55 minutes, but use the center of the cake—not just its color—to judge doneness. If the top is browning before the middle is ready, loosely tent it with foil.

Serving Suggestions

Let the loaf cool completely, then cut it with a sharp serrated knife into slices about ¾ inch (2 cm) thick. Sri Lankan butter cake is often enjoyed simply with tea or coffee, and its buttery vanilla flavor needs little embellishment. It makes a useful afternoon snack, a straightforward dessert, or a sweet addition to a table of small cakes and biscuits.

For a more dressed-up serving, add fresh berries or sliced mango and a spoonful of lightly whipped cream. A small dusting of powdered sugar is another easy finish. If serving the cake with fruit, add it just before eating rather than storing fruit on top, since its moisture can soften the surface. The loaf also travels well once completely cool and wrapped, making it convenient to slice and share.

Variations

Citrus-scented cake: Finely grate the zest of 1 lemon or 1 small orange into the sugar and rub it in with your fingertips before creaming. This releases the citrus oils and gives the cake a brighter aroma without changing the basic method. Start with one fruit so the flavor stays in balance with the vanilla.

Almond note: Replace ½ teaspoon (2.5 ml) of the vanilla with almond extract. Almond extract is potent, so avoid substituting it in equal amounts for all the vanilla. A few sliced almonds scattered over the top before baking add a delicate crunch; press them lightly into the batter so they adhere.

Raisin or cashew loaf: Fold in up to ½ cup (75 g) raisins or chopped cashews after the flour is incorporated. Tossing the additions with a teaspoon of flour can help keep them distributed, though it is not a guarantee. Keep the amount modest so the cake still holds together and bakes through evenly.

Make a round cake: You can bake the batter in one greased and parchment-lined 8-inch (20-cm) round pan. The baking time may be shorter than for the loaf, so begin checking at about 45 minutes and continue until the center passes the same doneness checks. Pan depth and material affect timing, so rely on the cake rather than the clock alone.

Storage and Reheating

Cool the cake fully before storing it so trapped steam does not make the crust damp. For food safety, refrigerate it within 2 hours of baking or serving. Wrap individual slices or the whole loaf tightly, place it in an airtight container, and refrigerate for 3 to 4 days. Refrigeration can firm the butter and make the crumb seem less tender, so let a slice stand at room temperature for 20 to 30 minutes before serving.

To freeze, wrap the cooled loaf or individual slices well, then place them in a freezer-safe bag or container for up to 2 months for best quality. Thaw wrapped slices at room temperature for about 1 to 2 hours, or thaw the loaf overnight in the refrigerator and then let it lose its chill before serving. If you want a warm slice, microwave it for 8 to 12 seconds; use short bursts, since heating too long can dry the cake. This is a serving preference rather than a food-safety reheating step.

Frequently Asked Questions

Why did my butter cake turn out dense?

Common causes include butter that was too cold or too soft to cream, insufficient creaming, too much flour, or overmixing after the flour went in. Beating the butter and sugar until fluffy helps create lift, and weighing the flour or spooning it lightly into a cup prevents an overly heavy batter. Also check that your baking powder is fresh and that the oven was fully preheated.

Why does the batter look curdled after I add the eggs?

This often happens when the eggs are colder than the butter or when they are added too quickly. It does not necessarily mean the cake is ruined. Scrape down the bowl, beat in a spoonful of the flour mixture, and continue with the remaining ingredients as directed. For next time, allow the eggs to come to room temperature and add them one at a time.

Can I use salted butter?

Yes. Use 1 cup (227 g) salted butter and omit the ¼ teaspoon (1.5 g) salt from the ingredients. Salt levels vary among salted butters, so the flavor may be a little different, but the cake should still bake properly. Unsalted butter gives you more control over the final seasoning.

Can I make this cake without a mixer?

Yes, but it takes more effort to cream the butter and sugar well by hand. Use a sturdy whisk or wooden spoon and a large bowl, and beat until the mixture looks paler and fluffier, pausing to scrape the bowl. Add the eggs gradually and switch to a spatula for the flour and milk so you can mix gently. The finished texture may be slightly less airy than when using an electric mixer.

How can I tell whether the middle is done?

Look for a golden top that springs back gently, and insert a toothpick into the center; it should come out clean or with a few dry crumbs, not wet batter. A thermometer is an additional check: the center must reach at least 160°F (71°C), the USDA FSIS safe minimum for egg dishes. If the cake needs more time, return it to the oven and check again after 5 minutes.

Can I prepare the batter ahead of time?

It is best to bake the batter soon after mixing. Once the wet and dry ingredients meet, the baking powder begins working, and a long wait can reduce the cake’s lift. If you need to plan ahead, measure the dry ingredients and prepare the pan in advance, then cream and mix the batter shortly before baking. You can also bake the loaf ahead and store it as described above.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).