Birthday vanilla flavored cake made in the tradition of the Malaysian Sarawak Layer Cake (Kek Lapis Sarawak): one sheet cake is baked in increments to create a large layered cake. The cake is sliced and then strategically stacked to create a gorgeous geometric design.
Shortly after my second daughter was born, my exhausted husband and I began a before-bed ritual: watching the tenth season of The Great British Bake Off. It’s always a great watch, especially to wind down with at the end of a tiring day with young kids. But one night, on episode seven, instead of blissfully drifting off to sleep, I was up for hours obsessively googling kek lapis sarawak Sarawak layer cake.
According to TBBO hosts, this cake would have several separate layers that were ‘grilled’, then cut, and then reassembled into intricate, precise, even layers and patterns. The cake is widespread in Malaysia and is often baked for the holidays (here is a very cool video of a bakery that specializes in it).
That sounded quite challenging, but I was so enamored with the design! Was there a way to make it more home-baker friendly?I tried it, using some of the techniques I have learned from making Italian Rainbow Cookies and had mild success. I then, very happily stumbled upon this recipe by Jun which gave a very clear baking technique that I adopted for this version.
Before you get intimidated let me say two things: it turns out, “grilled” is the British for broiled (but broiling a cake is rather odd too isn’t it? We’ll get there..) and our layers, unlike the traditional Malaysian kek lapis sarawak, are in no way going to be precise in cut or shape, but they will still turn out wonderfully eye-catching.
The way this cake bakes goes against everything you have learned about making a perfect cake: you will open the oven several times, you’ll use the broil feature and you won’t actually turn on the baking part of the oven until the very end. It’s crazy, but it’s gonna work and it’s gonna be beautiful and delicious and just wait until you slice into it and everyone ooohs and aaahhs.
We’re making a wonderful white cake recipe that uses no yolks. I use BraveTart’s technique of using coconut oil in place of the egg yolks so we can have the right amount of fat but none of the color (this way we can dye it anyway we like). You’ll note the recipe calls for six (!) egg whites. With the remaining egg yolks, I usually make ice cream 😉
Cake Flour
Cake flour has a finer mill than all purpose and is made from a more stripped down wheat so you get a very very tender cake. If you don’t have it, you can use all purpose but swap out 3 tablespoons of the flour for cornstarch.
Coconut Oil
Refined coconut oil has a very mild flavor so it’s optional for this birthday flavored cake. No substitutes, sorry!
Butter
American or European butter is fine. It *must* be softened and at room temperature in order for it to be beaten until fluffy with the sugar.
Sugar
Fine granulated.
Egg Whites
These should be at room temperature so separate your eggs while they are cold then leave out the whites while you prepare everything else to warm up a bit.
Buttermilk
Low or full fat, you can also use a plain kefir instead of the buttermilk.
Vanilla
I use a mix of pure vanilla extract and imitation extract which creates a very special birthday cake flavor.
Salt
Fine sea salt, if you use table salt, halve the amount of salt for the cake (and buttercream!).
There is a roughly five minute video below that you should watch before you begin. At the very least you’ll see what the white cake batter should look like at different stages, how to spread and bake the colored cake batter, and a rough idea for how to stack them (I might be terrible at the stacking part, I’m sure you guys will do better!).
Make a note of the bowl’s weight
This is so you don’t have to dirty another bowl later, as you’ll want to know the weight of your cake batter so you can divide it equally.
Beat butter and sugar well
To get a fluffy white cake we’re going to beat together the butter and sugar very, very well until a good amount of air has been whipped in. You’ll see it change color from yellow and heavy to nearly white or cream colored and airy.
Add eggs slowly
This too is to allow for air to get whipped into the batter.
Divide & color the batter
Since you’ve already taken note of the weight of your bowl, you can now just weigh the bowl and subtract the weight of the bowl so you know how much the batter weighs. Divide it by five or six, so you know how much batter to add to each bowl.
With five colors the cake will need a few extra minutes of baking time, and will rise high. In the past I have made it with six and because they are thinner layers, they bake quicker. I used to also weigh down the cake to squash the layers but I don’t do that anymore (it’s quite nice fluffy!).
Broil one layer at a time
You’ll have the oven ready on a low broil and each layer will bake separately. The first (I usually start with red) goes straight onto the pan, and broils for about 4 minutes. Then you’ll gently spread the next color over the baked first (it will start to melt a bit as you are spreading, don’t worry!) and put it back in the oven to broil. It’s best to use an offset spatula for this task.
Keep doing this until all layers are broiled and mostly firm.
Bake fully, then cool
Once the final color has been broiled (usually purple) you’ll cover the cake with foil and allow it to bake fully = you can check for doneness as you would a regular cake, with a toothpick.
Once it’s firm enough to move out of the pan turn it onto a cooling rack. Let it chill completely.
Stack & Frost
Prepare a pullman loaf pan with a sheet of parchment paper (this will make it easier to release the cake later). And have your buttercream ready. Slice the large cake into strips, about 1 inch wide.
The easiest way to stack this would be to place three vertical strips on the bottom, with buttercream to hold them together like glue, spread buttercream over the top then another three vertical strips on top and repeat. But it’s much more fun to play with the design a bit and do some of them horizontal.
If you do some horizontal you can cut some of the strips in half (to make half inch strips) to fit them into the pullman mold.
Once you have all your layers in, cover the top with buttercream and place it in the freezer. When you’re ready you can remove the cake by turning it upside down onto a cutting board. Now you can frost and decorate.
Can I use a regular white cake recipe? Or even a boxed mix?
Yes and no – you can of course use any white cake recipe and use the method listed below. However, it will look different than mine as my white cake recipe is unique because of its tight crumb.
How many people will this cake serve?
I’d say it’ll serve about 20 if you are slicing the cake twice (first like a loaf and then each slice into half). With the five colors & the pullman pan, and not weighing it down, these are BIG slices.
How far ahead can I make this cake?
The cake, like most layer cakes, freezes very well so you can make it weeks ahead of time.

Share & tag me on instagram @buttermilkbysam
I attempted to make this twice – for a friend’s birthday – without success. The texture seemed off.- spongy. Flavor was just ok – I did mix the vanilla paste and clear vanilla. I love Sam’s recipes – have made many and they have been outstanding. Her pic of the geometric cake is stunning. Curious where I went wrong.
Hi Louise, that is so frustrating it didn’t work out, especially when it was for an occasion (and twice!). I don’t think it was the vanilla that affected this though I will say it is a rather spongy cake. If you have photos or could describe in more detail where it went wrong I could help troubleshoot.
I’m watching GBBO collection 7 Episode 7 and they are making very elaborate Sarawak cakes! Beautiful. Great timing with my plans to make it this weekend.
Hi! Has the video been taken down? I don’t see it. Thanks.
Hi Louise! If you have an ad blocker on you might not see the video. It’s right above the recipe card.
This is my weekend project for a friend’s bday! I note that you don’t use yolks to keep the cake white. So….I am concerned about the vanilla. I tend to use vanilla paste ( homemade!) and lots of it. But I’m concerned about the caviar and color. Should I stick to extract and the quantity listed? Tx!
I think as long as you don’t overdo it it should be ok to use vanilla paste.
Just made and fell in love with the Chocolate Rainbow Cake – and this one is next!! Two questions please:
1. Do suggest a 9×13 sheet pan or a 9 x 13 brownie pan?
2. What brand and colors gel did you use? I love your colors and would like to get close. So bright!!!
thanks!!
9×13 sheet pan is what I use. Mine were either americolor or wilton, sometimes I mix colors until I get the shade I like. I hope you love this cake too – and good luck!
Hi! This cake is incredible! I’ve been trying to watch your video for the details and I keep having to watch about 30 seconds of ads, then I can watch up to when you add the egg whites, then another 15-30 seconds of ads and then the video goes on to a different recipe. I was really hoping to get a visual of the batter in the pan and arranging the slices. Is this video available elsewhere? Thank you! And I’m sorry for the tech issue comment!
Hi Christina, about 20-30 seconds into the recipe video two options pop up: NEXT or STAY. If you don’t do anything it plays an ad and another video. You have to select “stay” for it to play this entire video (and there aren’t any more ads once you select that). I hope you get to make it!
This cake is fun to make, stunning to look at, and tastes delicious! I made it for St. Patrick’s Day and brought some to neighbors and friends, and everybody loved it! I opted to make it with a slightly tangy vanilla bean cream cheese buttercream, which paired really well with the sweet cake. Due to the cream cheese, I stored the cake in the refrigerator, which–surprising–seemed to make the cake taste even better. Chilled, it had an almost fudgy texture (which sounds weird, since there was no chocolate) and it sliced beautifully, so all of the rainbow layers were really neat and visible.
I made this today and it turned out really well! A few things to note – I wasn’t sure what pan to make this in, as my sheet pans are much larger than 9 x 13, so I ended up making it in a 9 x 13 brownie pan. This worked out well, though I found that the cook times needed to be longer (5-6 mins under the broiler), presumably because the layers were thicker than if I had made it in the sheet pan. After the first layer, I poked it and thought it was cooked, but as soon as I added the second layer, I discovered the first layer was completely raw. Again, this is probably due to the size of the pan. However, I am so, so pleased with how it turned out! The colors are bright, the cake held together, and it looks so nice!
Katie, that’s awesome it worked out and looks wonderful. DM me a pic on IG if you can – I love seeing remakes.
Gorgeous cake! The colors are so beautiful. Would you mind sharing where you bought the sprinkles featured in your photos? Thanks!
Hi Stephanie! If I remember correctly they were the $1 Wilton bags at Michaels from their Easter collection.
Can you confirm how much baking powder is supposed to be in the recipe? It says 1 13/4 and I don’t want to mess that up haha thank you!
Whoops! Sorry about that, it is 1 and 3/4. Will fix asap!
This is so neat! When life is normal and I have a birthday to go to I’m going to make this!
DO IT! It’s so fun! Hopefully life will go back to normal… soon.