
Chocoflan (Impossible Cake)
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
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.

💡 Work fast: the caramel sets quickly. If you do not cover the entire base, do not worry - it will spread during baking.
- 2
Make the flan: blend the condensed milk, evaporated milk, 3 eggs, and 1 teaspoon of vanilla extract until smooth. Set aside.

- 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.

💡 Do not overmix the cake batter: too much gluten makes it tough. Mix just until no flour streaks remain.
- 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.

💡 To avoid disturbing the cake batter when pouring the flan, pour it over the back of a spoon so it falls gently.
- 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.

💡 Baking in a bain-marie is essential: it regulates the temperature and prevents the flan from curdling and the cake from drying out.
- 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.

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

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 moreRelated Recipes

Chongos Zamoranos
Curdled milk cooked slowly in cinnamon syrup, a speciality of Zamora.

Carlota de Limón
No-bake dessert of María biscuits layered with lime cream and condensed milk.

Coconut Kisses (Besitos de Coco)
Desiccated coconut and condensed milk bites baked golden.

Caramelised Milk Ice Cream (Nieve de Leche Quemada)
Artisan caramelised milk ice cream, iconic from Oaxaca.

Prickly Pear Sorbet (Nieve de Tuna)
Artisan prickly pear sorbet with piloncillo, in the style of Oaxacan ice-cream vendors.

Mezcal Sorbet with Worm Salt
Mezcal espadín granita with worm salt, in the Oaxacan nevero tradition.

Mango Carlota
No-bake layered dessert with María biscuits, mango and cream.

Mexican Natilla
Silky custard cream with cinnamon and Mexican vanilla.
Related Guides
Learn more about these ingredients and dishes
Enjoyed this?
Follow on TikTok for Mexican recipe & restaurant videos, and get updates by email.
