• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Facebook
Instagram
Pinterest
YouTube
TikTok

Jo Cooks

Simple - Easy - Comfort

  • All Recipes
    • Course
      • Breakfast
      • Appetizers
      • Lunch
      • Dinner
      • Desserts
      • Side Dishes
      • Soups
      • Salads
      • Sandwiches
      • Drinks/Cocktails
      • Sauces & Dressings
    • Method
      • Crockpot
      • Instant Pot
      • One Pot
      • Air Fryer
      • Casseroles
    • Season
      • Spring
      • Summer
      • Fall
      • Winter
    • Cuisine
      • Asian
      • Italian
      • Mexican
      • European
      • Indian
      • Romanian
      • Mediterranean
      • Middle Eastern
      • American
    • Ingredient
      • Chicken Recipes
      • Pork
      • Beef
      • Seafood
      • Lamb
      • Vegetarian
      • Pasta
      • Spices
    • Holiday
      • Christmas
      • Easter
      • Thanksgiving
      • New Year's Eve
      • Game Day
      • Valentine's Day
      • St. Patrick's Day
      • Cinco de Mayo
      • Mother's Day
      • Memorial Day
      • Father's Day
      • 4th Of July
      • Labor Day
      • Halloween
    • Recipe Index
  • Cookbooks
    • The Big Book of Jo’s Quick and Easy Meals
    • 30-Minute One-Pot Meals
  • Shop
  • About Jo
FREE recipe eBook!
Display Search Bar
All Recipes
Instant Pot
30 Minute
One Pot Meals
Soups
Dips & Dressings
Baking
Pasta
Sandwiches
Sides
Desserts Romanian Cakes
4.5 from 680 votes

Magic Cake

Jump to RecipeVideoPrintRate
By: Joanna Cismaru •Last Updated: 5/19/26 1,339 Comments

This post may contain affiliate links. Please read my disclosure policy.

magic cake on a plate garnished with powdered sugar and a strawberry.
pin for magic cake.

1 batter. 3 layers. Zero explanation for how it works. I first introduced this Magic Cake recipe to the internet in 2013 and I am still not completely over it.

Table of Contents

Toggle
  • The Original Magic Cake Recipe
  • Other Flavors of Magic Cake
  • How the 3 Layers Actually Form
  • Key Ingredients You Need
  • The Most Important Thing In This Recipe
  • How To Make Magic Cake
  • Why Your Magic Cake Did Not Separate Into Layers
  • Storing Magic Cake
  • Recipe: Magic Cake
  • Frequently Asked Questions
magic cake on a plate garnished with powdered sugar and a strawberry.

The Original Magic Cake Recipe

I first shared Magic Cake on JoCooks in 2013 and it went viral before viral was even a word people used casually. Hundreds of thousands of shares, comments from people all over the world, home bakers who could not believe what came out of their oven. I still get messages about it today.

The recipe comes from Romania, where it is called prăjitură inteligentă, which translates to intelligent cake or smart cake. I grew up knowing this cake. When I shared it in English it was the first time most people had ever seen it, and the reaction was everything.

The concept is this: you make one thin, almost watery batter, pour it into a pan, and bake it. When it comes out it has separated into 3 completely distinct layers on its own. A dense base, a creamy custard middle, and a light sponge top. You did not create 3 batters. You did not do anything special. The cake figured it out.

Over 680 people have rated this recipe. I have made it hundreds of times. And I am still going to explain exactly why it works, because I have seen too many comments from people whose cake did not separate and I know exactly why it did not.

Other Flavors of Magic Cake

Over the years I have made Magic Cake in every flavor I could think of. The original vanilla version is still the one I make most but the Chocolate Magic Cake, Lemon Magic Cake, Butterscotch Magic Cake, and Pumpkin Magic Cake have all found their own devoted fans. The technique is identical for every version. Once you understand how the layers form you can take this cake anywhere you want.

a magic cake cut into pieces showcasing the 3 layers.

How the 3 Layers Actually Form

This is the part nobody else explains properly so we are going to do it right.

The batter is made with egg yolks, sugar, butter, flour, and milk. When the egg whites are beaten to stiff peaks and folded in incompletely, meaning you still see white streaks, something interesting happens in the oven.

The batter is thin and the components have very different densities. The heavier flour and yolk mixture sinks to the bottom. The lighter egg white foam floats to the top. The middle layer forms from the components that are neither heavy enough to sink nor light enough to float, a mixture of beaten yolks, sugar, and milk that sets into a creamy custard as it bakes.

The 3 layers that result are not magic. They are physics. But they feel like magic every single time.

  • Dense base: The heaviest components sink and set into a firm, slightly dense bottom layer. Similar to a shortbread in texture but not crumbly in any way.
  • Custard middle: The most prized layer. Rich, creamy, and wobbles slightly when cold. This is what people come back for.
  • Sponge Top: The egg white foam rises and sets into a light, airy sponge. Golden on top, soft underneath.

Key Ingredients You Need

ingredients needed to make magic cake.
  • Eggs, separated. 4 large eggs at room temperature. Room temperature is not optional, cold egg whites do not whip to stiff peaks properly and the whole layer separation depends on those stiff peaks. Pull them out of the fridge an hour before you bake.
  • Lukewarm milk. 2 cups, warmed to around 100°F. Not hot, not cold. Cold milk shocks the batter and affects how the layers separate. Warm it gently on the stove or in the microwave for 30 seconds.
  • Butter, melted and slightly cooled. 8 tablespoons of unsalted butter. Melt it and let it cool slightly before adding it to the egg yolks. Hot butter will cook the yolks and we will end up with something unpleasant.
  • All purpose flour. Three quarters of a cup. Measured by spooning into the cup and leveling off, not scooping. Too much flour makes the base layer too thick and dense and the layers will not separate cleanly.
  • Sugar. Three quarters of a cup of white granulated sugar. It goes into the egg yolks and helps create the custard middle layer.

The Most Important Thing In This Recipe

Do not fully mix the egg whites into the batter. Fold them in until about 90 percent combined and stop. You should still see white streaks floating at the top of the batter when you pour it into the pan. Those streaks become the sponge top layer. If you mix them in completely the batter will be uniform and the layers will not separate. This is the single step that determines whether the cake works or not.

How To Make Magic Cake

Preheat the oven to 325°F and grease an 8×8 inch baking pan. Line it with parchment paper if you want clean edges when you cut it.

process shots showing how to make magic cake.

Separate the eggs. Beat the egg yolks with the sugar until light, pale, and fluffy. Add the melted cooled butter and vanilla extract and beat for another minute. Add the flour and mix until smooth.

process shots showing how to make magic cake.

Slowly pour in the lukewarm milk while beating continuously. The batter will be very thin. This is correct. Do not worry. Trust the cake.

process shots showing how to make magic cake.

In a clean bowl with clean beaters, whip the egg whites to stiff peaks. They should hold their shape when you lift the beater and not slide around. If they are not getting there, add a pinch of cream of tartar and keep going.

Fold the egg whites into the batter gently with a rubber spatula. 3 or 5 large folds. Stop when you still see white streaks. Pour immediately into the prepared pan.

process shots showing how to make magic cake.

Bake for 40 to 70 minutes. Yes that is a wide range and yes it is accurate. Every oven is different. Start checking at 40 minutes. The cake is done when the top is lightly golden and the center jiggles very slightly but feels firm when you press it gently. It should not slosh.

process shots showing how to make magic cake.

Cool completely in the pan before cutting. Completely. The layers need time to set and the custard in particular needs to firm up as it cools. Cutting it warm will give you a collapsed custard layer and a sad cake. Dust with powdered sugar and cut into squares.

Why Your Magic Cake Did Not Separate Into Layers

This is the question I have been asked more than any other in 12 years of making this cake. Here are every reason it happens and exactly how to fix it.

  • The egg whites were mixed in too thoroughly: This is the number one cause. If the egg whites are fully incorporated the batter is uniform and has no density differences to separate into layers. You need to see white streaks in the batter when it goes into the pan. Fold gently, stop early, pour immediately.
  • The egg whites did not reach stiff peaks: Soft or medium peaks do not have enough structure to float and form the top sponge layer. Beat until the whites hold a firm peak that does not droop. Make sure the bowl and beaters are completely clean and dry.
  • The milk was too cold or too hot: Cold milk causes the butter to solidify in clumps in the batter which disrupts the layer formation. Hot milk starts cooking the egg yolks. Lukewarm, around 100°F, is the right temperature. Warm to the touch but comfortable on the wrist.
  • The oven temperature was too high: 325°F is low for a reason. A hotter oven sets the batter too quickly before the layers have time to separate. If your oven runs hot use an oven thermometer to check the actual temperature. Many ovens run 25 to 50 degrees hotter than the dial suggests.
  • The cake was underbaked or cut too soon: An underbaked cake will have a liquid center rather than a custard layer. Make sure the top is golden and the center is firm but with a slight jiggle. Then cool completely in the pan before cutting. The custard layer sets as it cools. Cutting it warm collapses everything.
a few slices of magic cake garnished with berries on a white platter.

Storing Magic Cake

Store covered in the refrigerator for up to 4 days. The cake actually tastes better on day two once the custard layer has fully set overnight. Do not freeze, the custard layer does not survive the freezer and the texture becomes grainy and separated when thawed.

magic cake on a plate garnished with powdered sugar and a strawberry.

Before You Begin! If you make this, please leave a review and rating letting us know how you liked this recipe! This helps our business thrive & continue providing free recipes.

magic cake on a plate garnished with powdered sugar and a strawberry.
4.50 from 680 votes

Magic Cake

Prep 15 minutes minutes
Cook 1 hour hour
Total 1 hour hour 15 minutes minutes
9
Rate Recipe Print Recipe
The original Magic Cake recipe from JoCooks, first shared in 2013 and still one of the most made recipes on the blog. 1 thin batter poured into a pan and baked at low heat until it separates on its own into 3 completely distinct layers: a dense base, a creamy custard middle, and a light sponge top. 7 basic ingredients, no special equipment, and a result that surprises people every single time.

Video

Ingredients

  • 4 eggs (at room temperature)
  • ¾ cup sugar
  • 8 tablespoons butter (unsalted and melted )
  • 1 teaspoon vanilla extract
  • ¾ cup all-purpose flour
  • 2 cups milk (lukewarm)
  • powdered sugar (for dusting)

Before You Begin! If you make this, please leave a review and rating letting us know how you liked this recipe! This helps our business thrive & continue providing free recipes.

Instructions 

  • Preheat oven to 325°F (160°C). Grease a 8 inch x 8 inch baking dish or line it with parchment paper so that it's easier to get the cake out.
  • Separate the eggs and beat the egg yolks with the sugar until light and fluffy.
    process shots showing how to make magic cake.
  • Add butter and vanilla extract and continue beating for another minute or two until well incorporated.
    process shots showing how to make magic cake.
  • Add the flour and mix until the batter is smooth and well combined.
    process shots showing how to make magic cake.
  • Slowly start adding the milk and beat until everything is well mixed together.
    process shots showing how to make magic cake.
  • Add the egg whites to a mixer and mix until stiff peaks form.
    process shots showing how to make magic cake.
  • Gently fold the beaten egg whites into the batter until well combined. Another variation to folding in the egg whites would be to whisk them in to the cake batter, this is a lot faster and easier. Make sure you don't fold the egg whites in completely, you still want to see some of the white bits floating at the top.
    process shots showing how to make magic cake.
  • Pour batter into baking dish and transfer it to the preheated oven. Bake for 40 to 70 minutes or until the top is lightly golden. The baking time could vary greatly depending on the oven, so take a peek at around 40 minutes and see how it looks.
    process shots showing how to make magic cake.
  • Sprinkle some powdered sugar after cake has cooled. Cut it into squares and serve.
    process shots showing how to make magic cake.

Equipment

  • KitchenAid Hand Mixer

Notes

  1. Do not fully mix in the egg whites. Fold them in until about 90 percent combined and stop. You should still see white streaks in the batter when it goes into the pan. Those streaks become the sponge top layer. If the egg whites are fully mixed in the batter is uniform and the layers will not form. This is the single step that determines whether the cake works or not. Fold gently, stop early, pour immediately.
  2. Use room temperature eggs and lukewarm milk. Cold egg whites will not whip to stiff peaks, which means no sponge layer. Cold milk causes the butter to solidify in the batter and disrupts the layer separation. Pull the eggs out an hour before baking and warm the milk to around 100°F before adding it. Both matter more than most people expect.
  3. Cool completely before cutting. The custard middle layer sets as the cake cools. Cutting it warm collapses the custard into a soft mess and the 3 layers disappear into each other. Give it a full hour at room temperature or refrigerate for 30 minutes. The cake is so much better cold anyway. The wait is worth it.
  4. The bake time varies widely. Anywhere from 40 to 70 minutes depending on the oven. Start checking at 40 minutes. The cake is done when the top is lightly golden and the center has only a very slight jiggle when the pan is shaken gently. It should feel firm to the touch, not liquid underneath. If in doubt, give it another 5 minutes and check again.

Nutrition Information

Serving: 1pieceCalories: 247kcal (12%)Carbohydrates: 27g (9%)Protein: 5g (10%)Fat: 13g (20%)Saturated Fat: 8g (50%)Polyunsaturated Fat: 1gMonounsaturated Fat: 4gTrans Fat: 0.5gCholesterol: 104mg (35%)Sodium: 54mg (2%)Potassium: 116mg (3%)Fiber: 0.3g (1%)Sugar: 19g (21%)Vitamin A: 470IU (9%)Vitamin C: 0.1mgCalcium: 79mg (8%)Iron: 1mg (6%)
© Author Joanna Cismaru

Notice: Nutrition is auto-calculated for your convenience. Where relevant, we recommend using your own nutrition calculations.

magic cake on a plate garnished with powdered sugar and a strawberry.

Did You Make This?

We love seeing what you made! Tag us on Instagram at @jocooks or hashtag #jocooks so we can see your creations!

Rate Recipe
Add Your Photo!

Frequently Asked Questions

Can we use dairy free milk?

Yes. Oat milk, almond milk, and soy milk all work. The custard layer may be slightly less rich but the layers will still form. Make sure whatever milk you use is warmed to lukewarm before adding it to the batter.

Can we use gluten free flour?

A 1:1 gluten free flour blend works well here. The texture of the base layer will be slightly different but the three layers will still form. Do not use almond flour or coconut flour as a direct substitute, the ratios are completely different.

Why does the batter look so thin?

Because it is supposed to be. The thin batter is what allows the layers to separate by density. A thick batter would set before anything had time to move. Trust the process and pour it in as is.

Can we make this in a round pan?

Yes. A 9 inch round pan works well. The layers will form the same way. The bake time may vary slightly so start checking at 40 minutes.

  • 59504
  • 2
Home Recipes
Joanna Cismaru

Joanna Cismaru

I'm Joanna Cismaru, home cook, recipe developer, and the person behind JoCooks since 2011. I test every recipe in my own kitchen, multiple times, until it's actually worth making. My goal is simple: recipes that work, written the way a real person cooks.

Read More
iPad showing title of ebook 30 recipes from around the world
Subscribe

Get our FREE recipe eBook + weekly newsletter!

guest
Did you make this recipe? Rate it:




The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.

guest
Did you make this recipe? Rate it:




The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1.3K Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

sidebar

Headshot of Joanna Cismaru

Hey there!

I’m Joanna Cismaru, home cook, recipe developer, and the person behind JoCooks since 2011. I test every recipe in my own kitchen, multiple times, until it’s actually worth making. My goal is simple: recipes that work, written the way a real person cooks.

Read More
Collage of recipe ebooks
Subscribe

Get our FREE recipe eBook + weekly newsletter!

Pasta Favorites

baked mac and cheese in a black cast iron skillet.
45 minutes mins

Baked Mac And Cheese

freshly made crack chicken penne with a wooden spoon in a skillet.
40 minutes mins

Crack Chicken Penne

chicken pot pie pasta in a white serving bowl with a wooden serving spoon.
50 minutes mins

Chicken Pot Pie Pasta

freshly made one pot pasta in a dutch oven.
20 minutes mins

One Pot Pasta

tomato spinach chicken pasta in a white bowl.
30 minutes mins

Tomato Spinach Chicken Pasta

homemade hamburger helper lasagna from scratch in a skillet.
30 minutes mins

One Pot Hamburger Helper Lasagna

baked feta pasta in a white bowl garnished with fresh basil.
50 minutes mins

Baked Feta Pasta (Tik Tok Pasta)

sideview shot of chicken fajita pasta in a white bowl with a fork inside
45 minutes mins

Chicken Fajita Pasta

side close up shot of swedish meatball pasta in a beige braised garnished with parsley
30 minutes mins

Swedish Meatball Pasta

overhead shot of a bowl of haluski
40 minutes mins

Haluski (Cabbage and Noodles)

A stack of cookbooks
Grab a copy!

My Cookbooks

Order Now: Amazon | Indigo | Barnes & Noble | Indie Bound | Books-A-Million

Dinner Favorites

smothered pork chops in a skillet garnished with parsley.
1 hour hr 15 minutes mins

Smothered Pork Chops

a wooden spoon lifting a salisbury steak out of the skillet
30 minutes mins

Salisbury Steak

Close up of saucy beef lo mein noodles with tender steak strips, snow peas, and carrots in a dark wok.
30 minutes mins

Easy Homemade Beef Lo Mein (Ready in 30 Minutes)

side shot of beef and broccoli in a skillet
15 minutes mins

Easy Beef and Broccoli Stir Fry

skillet shepherd's pie in a cast iron skillet with a portion taken out.
1 hour hr 25 minutes mins

Skillet Shepherd’s Pie

a serving spoon inside a skillet with chicken broccoli rice casserole.
30 minutes mins

30 Minute One Pot Cheesy Chicken Broccoli Rice Casserole

side view shot of two italian stuffed peppers in a bowl
2 hours hrs 30 minutes mins

Italian Stuffed Peppers

a serving of spaghetti bolognese in a white bowl garnished with parsley.
1 hour hr 5 minutes mins

Spaghetti Bolognese

Facebook
Instagram
Pinterest
YouTube
TikTok
Visit our Other Site: Craving Home Cooked

Explore

Recipes
Cookbooks
About Jo
Contact

Legal

Privacy Policy
Accessibility
Disclaimers
© 2026 Jo Cooks
Site Credits
Designed by Melissa Rose Design Developed by Once Coupled
Back to Top
wpDiscuz

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required