Skip to main content
Chocoflan (Impossible Cake)
DessertsMediumFree

Chocoflan (Impossible Cake)

Made it? Rate it
120 min (30 prep + 90 cook) Medium 10 servings Nationwide
Edmond Bojalil
Edmond Bojalil

Recetas Mexas

Published: 26 Mar 2026 · Updated: 14 Nov 2026
Share:
Chocolate cake and vanilla flan that swap places on their own when baked.

About this Chocoflan (Impossible Cake) recipe

Mexico's most surprising dessert: half chocolate cake, half vanilla flan that magically invert when baked. The cake ends up on the bottom, the flan on top, and the caramel runs over everything. Spectacular.

History and origin of Chocoflan (Impossible Cake)

Chocoflan - also known as Impossible Cake or Magic Cake - is one of the best-loved and most iconic desserts in modern Mexican baking. The name "Impossible" refers to what happens during baking: if you pour the flan mixture over the chocolate cake batter in a mould, when you take it out of the oven you find that the cake has risen and the flan has sunk, the two having swapped places completely. It seems impossible, but there is a simple explanation: as it bakes in a bain-marie, the cake batter fills with bubbles and becomes lighter, so it rises, while the denser flan mixture sinks to the bottom of the mould. The dessert emerged in Mexico in the second half of the twentieth century, probably as a creative fusion of two well-established traditions: chocolate cake, of European influence, and flan napolitano, a legacy of Spanish confectionery. Over time it became a classic at Mexican parties and family celebrations. Today homemade chocoflan is made with fresh ingredients and the result is far richer than any version made from a commercial mix: the cake is moist and dense with chocolate, the flan smooth and creamy with a vanilla flavour, and the melted caramel that runs over the whole surface when you turn it out brings both worlds together in every bite.

Estimated cost

£12.47

Total cost

£1.25

Per serving

* Approximate prices based on UK supermarkets

Nutritional information per serving

380

Calories

9g

Protein

48g

Carbohydrates

18g

Fat

1.5g

Fibre

280mg

Sodium

* Approximate values. May vary depending on ingredients used.

How to make Chocoflan (Impossible Cake)

  1. 1

    Make the caramel: in a small saucepan, melt 100g of caster sugar over a medium heat without stirring until a golden caramel forms. Immediately pour into the base of the tin (a 24 cm bundt or ring tin, well greased). Move quickly to cover the base.

    Chocoflan (Impossible Cake) – Step 1: Make the caramel: in a small saucepan, melt

    💡 Work fast: the caramel sets quickly. If you do not cover the entire base, do not worry - it will spread during baking.

  2. 2

    Make the flan: blend the condensed milk, evaporated milk, 3 eggs, and 1 teaspoon of vanilla extract until smooth. Set aside.

    Chocoflan (Impossible Cake) – Step 2: Make the flan: blend the condensed milk, evaporated
  3. 3

    Make the cake: beat the butter with 80g of sugar until light and fluffy. Add 2 eggs one at a time. Stir in the melted chocolate, slightly warm. Sift together the flour, cornflour, cinnamon, 1 teaspoon of baking powder and 1/2 teaspoon of bicarbonate of soda, and fold them in alternately with the milk. Mix only until combined.

    Chocoflan (Impossible Cake) – Step 3: Make the cake: beat the butter with 80g

    💡 Do not overmix the cake batter: too much gluten makes it tough. Mix just until no flour streaks remain.

  4. 4

    Pour the chocolate cake batter over the caramel in the tin. On top, gently pour in the flan mixture. It will look like everything is mixing, but do not worry: the magic will happen in the oven.

    Chocoflan (Impossible Cake) – Step 4: Pour the chocolate cake batter over the caramel

    💡 To avoid disturbing the cake batter when pouring the flan, pour it over the back of a spoon so it falls gently.

  5. 5

    Cover the tin with foil. Place inside a roasting tin with enough hot water to come halfway up the mould (bain-marie). Bake at 180°C (160°C fan) for 75-90 minutes until a skewer inserted in the cake comes out clean and the flan is set.

    Chocoflan (Impossible Cake) – Step 5: Cover the tin with foil

    💡 Baking in a bain-marie is essential: it regulates the temperature and prevents the flan from curdling and the cake from drying out.

  6. 6

    Remove from the bain-marie and leave to cool completely at room temperature (at least 1 hour). Then refrigerate for at least 4 hours or overnight. To unmould: run a knife around the edges and invert onto a deep-rimmed plate to catch the caramel.

    Chocoflan (Impossible Cake) – Step 6: Remove from the bain-marie and leave to cool

    💡 The chocoflan must be thoroughly chilled to unmould correctly. If you try to unmould it warm, the flan may not be completely set.

How did it turn out? Rate it

Rate it with one tap. No account needed.

or write a full review

Rate this recipe

Edmond Bojalil
Edmond Bojalil

Founder, Recetas Mexas

Mexican from Puebla, IT professional and foodie. Author of 1000+ authentic Mexican recipes adapted for home kitchens worldwide. Based in Madrid since 2018.

Read more

Related Recipes

Related Guides

Learn more about these ingredients and dishes

Enjoyed this?

Follow on TikTok for Mexican recipe & restaurant videos, and get updates by email.

Follow on TikTok