4.77 from 21 votes

Chocoflan (Flan Cake)

I’ve made this chocoflan recipe more times than I can count. Over the years, I’ve tested dozens of versions, refining the baking method, cake, and caramel until the layers bake with the texture I’m after. The biggest issue with this dessert is the cake part coming out dry. And I finally figured out how to prevent that from happening.

This version I present to you today delivers the best balance: a moist, tender chocolate cake, a smooth and creamy flan, and a caramel that comes out clean instead of sticking to the pan.

Growing up in Brazil, we called this pudim cake, and it was one of my favorite desserts, which is why I was so particular about getting it to be perfect.

This post may contain affiliate links. I earn a commission from qualified purchases. Please read our Privacy policy here.

You may hear this dessert called by other names—magic cake being one of the most common. The “magic” happens in the oven. You pour the chocolate batter into the pan first, then spoon the flan on top. As it bakes, the layers naturally switch places: the chocolate settles into the base, the flan rises to the top, and when you flip the cake, the caramel flows over everything like a glaze. I even have a pumpkin version here on the blog for a seasonal twist.

Why you’ll love this recipe

What I like about this chocoflan is the way the textures work together. The cake stays moist, the flan is creamy, and the caramel doesn’t overpower either one.

The first version of this recipe relied on a water bath, but after a lot of testing and tweaking, I now bake it freestanding. This change simplifies the process and, more importantly, shortens the bake time so the cake doesn’t dry out.

It looks impressive, but it’s very doable if you follow the steps below.

Caramel

Start by greasing a bundt pan generously with shortening or butter. Set it aside. Then, prepare the caramel.

To prepare the caramel, melt granulated sugar in a heavy-bottom saucepan over medium heat, stirring constantly so it dissolves evenly without scorching. Once the sugar turns fluid and lightly amber, slowly add water off the heat—it will bubble vigorously before settling. Bring the mixture back to the stove and stir until the crystallized bits melt into a smooth, pourable syrup. Let the caramel cool slightly before pouring it into a well-greased, sugared bundt pan. I like to place the pan in the freezer or refrigerator while preparing the remaining components so the caramel can firm up and stay in place.

Chocolate Cake Layer

Preheat the oven to 350°F (180°C). To make the chocolate cake layer, sift the flour, cocoa powder, baking powder, and salt in a bowl and set it aside. In the bowl of a stand mixer or using an electric hand mixer, beat the butter until creamy before adding the granulated sugar and whipping until pale and fluffy.

Add the eggs one at a time and mix in the vanilla extract. Pour in the milk and mix gently until combined; then fold in the dry ingredients with a spatula until the batter is smooth and no streaks remain. Avoid overmixing here—keeping the batter tender is key for that ultra-moist texture chocoflan is known for. If you want a little cheat for this step, you can use chocolate cake mix.

Flan Layer

For the flan layer, strain the eggs through a fine-mesh sieve into a bowl to ensure a silky final texture. Whisk in the condensed milk and flour until completely smooth before adding the heavy cream and vanilla. The mixture should be thin and pourable, with no lumps. A gentle whisk avoids incorporating unnecessary air bubbles, which helps the flan bake with an ultra-smooth surface.

Assembly

To assemble the chocoflan, pour the cooled caramel evenly into the bottom of the prepared bundt pan. Spoon the chocolate cake batter into the center of the pan using a large spoon or cookie scoop, being careful not to smear the sides. This helps keep the flan layer clean and defined after unmolding. Slowly pour the flan mixture over the chocolate layer—the two will naturally swap places during baking, giving the dessert its signature look.

Baking

I used to bake this chocoflan in a water bath, but have since retested the recipe and it comes out way better without it! So, bake the chocoflan uncovered and without a water bath for 35 to 40 minutes in the 350°F preheated oven, or until the cake layer tests clean with a toothpick. The center should look slightly set but soft. Let the chocoflan cool to room temperature before covering the pan and refrigerating it for at least 6 hours, preferably overnight. This resting period allows the flan to firm up.

To Unmold

When ready to serve, warm the outside of the bundt pan by setting it briefly in a pan of hot water. This step melts the caramel just enough to help the chocoflan release cleanly. Jiggle the pan gently, place a serving plate over the top, and invert confidently to reveal the beautifully layered dessert.

I ended up sharing this chocoflan with my neighbors and a few friends, but only after enjoying a very generous slice myself and stopping myself from eating the whole thing.

For Thanksgiving, I actually made two cakes, and they were both gone in a couple of days. You can also use different shape bundt pans. Just make sure to grease each crevice very well, so the cake doesn’t stick.

Tips & Tricks

  • Grease the bundt pan generously with butter or shortening, then coat lightly with sugar to ensure a clean release.
  • Strain the eggs for the flan through a fine-mesh sieve to guarantee a smooth, silky texture.
  • Spoon the chocolate batter carefully into the pan to avoid smearing it up the sides—this helps keep the flan layer clean and well-defined.
  • Bake freestanding and avoid overbaking. A slightly soft center is expected and will firm up as the cake chills.
  • Allow the chocoflan to chill for at least 6 hours, preferably overnight, before unmolding.

Frequently Asked Questions

Do I need to bake this in a water bath?
No. I originally tested this recipe using a water bath, but after multiple side-by-side tests, I now bake it freestanding. The flan still sets beautifully, the cake stays moist, and the overall texture is more balanced with a shorter bake time.

Why do the layers switch places while baking?
It comes down to density. The flan mixture is heavier than the cake batter, so as the cake bakes and expands, the flan naturally sinks while the cake rises—creating those distinct layers without any extra effort.

Can I make this ahead of time?
Yes—this dessert actually benefits from resting. I recommend refrigerating it for at least 6 hours, preferably overnight, before unmolding. It slices cleaner and the flavors fully settle.

Can I use a different pan instead of a bundt pan?
Yes, but the bake time will likely be longer. A bundt pan bakes more evenly thanks to the center tube. Using a full pan means the center takes longer to cook, so you’ll need to watch the bake time closely and make sure the pan is well greased.

Why is my flan not perfectly smooth?
The most common cause is unstrained eggs or over-whisking. Always strain the eggs and whisk gently to avoid incorporating air bubbles, which can affect the final texture. Don’t use a blender for the flan portion.

Can I use cake mix for the chocolate layer?
Yes. While I prefer the homemade version for flavor and texture, a chocolate cake mix works as a shortcut if you’re short on time.

Why did my cake come out dry? The most common reasons are overbaking or overmixing the cake batter. Baking it too long will dry out the cake. Mix just until the flour is incorporated to keep the cake soft.

Similar Recipes

If you loved this chocoflan, you’ll also enjoy a few of my other flan-inspired favorites. My Pumpkin Chocoflan adds a cozy seasonal twist, while my Flan Cupcakes are perfect for parties and gifting. And if you’re craving something simple and classic, my Easy Flan is smooth, silky, and always a crowd-pleaser.

If you give this chocoflan a try, I’d love to hear how it turned out. Leave a comment below or tag me on social media so I can see your version.

A slice of chocoflan featuring a smooth, glossy caramel flan layer sitting on top of a rich, moist chocolate cake base.

Chocoflan

Camila Hurst
This Chocoflan is a stunning, two-layer dessert with silky vanilla flan on top of a tender chocolate cake, all finished with a glossy caramel layer that melts beautifully over the top.
4.77 from 21 votes
Prep Time 1 hour 30 minutes
Cook Time 1 hour 30 minutes
Total Time 3 hours
Course Dessert
Cuisine brazilian
Servings 12 people
Calories 460 kcal

Ingredients
 

Caramel
  • 1 cup granulated sugar 200 grams
  • 1/2 cup water room temperature (113 grams)
Chocolate Cake
  • 1 1/2 cups all-purpose flour 191 grams
  • 1/2 cup unsweetened cocoa powder 60 grams
  • 3 tsp baking powder
  • 1/4 tsp fine sea salt
  • 3/4 cup unsalted butter room temperature (170 grams)
  • 1 cup granulated sugar 200 grams
  • 3 large eggs
  • 1 tsp vanilla extract
  • 1/2 cup milk 113 grams
Flan
  • 4 eggs
  • 1/2 cup heavy cream 113 grams
  • 1 condensed milk can 396 grams
  • 2 tsp vanilla extract
  • 1 tbsp all-purpose flour 15 grams

Instructions
 

  • Grease a 10 or 12 cup bundt pan generously with vegetable shortening or butter, then coat it with granulated sugar. Tap out the excess. Set it aside.
  • Preheat the oven to 350°F (180°C), or use 325°F (160°C) if your oven is convection.
Caramel
  • Place the granulated sugar in a small, heavy-bottom saucepan and set it over medium heat. Stir constantly with a heat-resistant spatula as the sugar begins to melt. Continue stirring until all the sugar has dissolved and the mixture becomes fluid and lightly amber in color, with no remaining granules.
  • Remove the pan from the heat (or shut it off). Carefully and slowly pour the water into the melted sugar—it will bubble and steam vigorously, so keep your hands and face back. Once the bubbling settles, return the pan to the stove over medium heat and stir continuously until the hardened sugar dissolves back into the water and you have a thin, smooth caramel.
  • Cook just until the crystallized sugar remelts. Remove from the heat and let it cool while you make the chocolate cake batter and the flan.
Chocolate Cake
  • In a medium bowl, sift together the flour, cocoa powder, baking powder, and salt. Set aside.
  • With a mixer, beat the butter for one minute. Add the granulated sugar and continue beating until the mixture becomes light and fluffy, about 3 more minutes.
  • Add the eggs one at a time, mixing well after each addition. Mix in the vanilla extract.
  • Pour in the milk and mix just until combined. Add the sifted dry ingredients and fold them in with a spatula until the batter is smooth and no streaks of flour remain. Avoid over mixing so the cake stays tender.
  • Set aside while you prepare the flan batter.
Flan
  • Crack the eggs and pour them in a large bowl through a fine-mesh sieve to strain out any chalazae (the rope-like membrane part) or thicker bits. This ensures the flan stays perfectly smooth and prevents tiny cooked egg specks from appearing in the final texture.
  • Add the condensed milk and flour to the strained eggs. Whisk to combine before adding the heavy cream and vanilla. This can ensure the flour won't be lumpy.
  • Add the heavy cream, vanilla extract, and flour to the bowl. Whisk gently but thoroughly until the mixture is smooth and thin.
To assemble
  • Pour the cooled caramel into the bottom of the prepared bundt pan.
  • When pouring the chocolate cake batter into the bundt pan, use a cookie scoop or large spoon to transfer it gently and keep it centered. Try not to smear the batter up the sides of the pan—any chocolate smudges on the walls can keep the flan from coming out in an even, clean layer and may cause uneven lines when you unmold the chocoflan.
  • Slowly pour the flan batter over the chocolate layer. As the cake bakes, the flan will sink and the chocolate cake will rise. This natural shift is what creates the classic “magic” separation of chocoflan.
  • Bake the chocoflan uncovered, directly on the oven rack, for 35–40 minutes, or until a toothpick inserted into the cake portion comes out clean. The center should look slightly set but still soft.
  • Let the cake cool to room temperature in the pan. Cover and refrigerate for at least 6 hours, or overnight, so the flan can fully firm up and the caramel can dissolve into a pourable sauce.
To unmold
  • To unmold, fill a larger pan with hot water and set the bundt pan in it for 2–3 minutes to loosen the caramel. Place a serving plate on top of the bundt pan, then invert to release the chocoflan.
Storage
  • Store it in the fridge, covered, for up to 4 days.

Notes

About the updated baking method: This recipe was originally baked using a water bath for around 1 hour to 1 hour 30 minutes. While a water bath protects the flan and helps prevent cracking, it also forces the chocolate cake layer to sit in the oven for far longer than necessary, making the cake drier than it needs to be.

Baking the assembled chocoflan freestanding for 35–40 minutes keeps the flan silky while preventing the chocolate cake from over baking. I tried both methods while remaking this recipe and the freestanding method was much better. If you prefer, you can use a water bath. You’ll just have to bake for almost double the time.
Unmolding Tip: Do not skip warming the pan briefly in hot water before flipping. This ensures the caramel is fluid enough to release the cake cleanly.
Oven temperature: If using a regular conventional electric oven, use 350°F (180°C) to bake this cake. However, if your oven is gas, or convection, or runs really hot, use 325°F (160°C).
 

Nutrition

Serving: 1sliceCalories: 460kcal
Keyword bundt, cake, caramel, flan
Tried this recipe?Let us know how it was!

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe Rating




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

126 Comments

  1. Hii! Thanks for the recipe! Making it today 🙂
    What can i use instead of vegetable shortening to grease the pan?

    Thanks !

  2. Hi Camila,

    Thank you for sharing this great recipe. I made 4 days ago for the first time and it came out so perfectly. My husband, who doesn’t like eating dessert, has surprisingly enjoyed this cake. He always asked for a slice after our dinner. We shared some slices to his parents too. I was just planning to post my comment and photo. However, today, I tried making it again but I was so disappointed as the chocolate cake came out really dry. What do you think I did wrong this time, Camila?

    I appreciate all your useful tips and would really appreciate if could help me identify what caused the cake to be so dry?

    Thank you again, and hoping to hear from you soon, Camila. All the best!

    1. Hello! What could have happened is:
      -over mixing the batter once adding the flour
      -maybe over measuring the flour and adding too much dry ingredients
      -or maybe over baking the cake.

      Sorry about that, hope it works out better next time!

  3. Hello. I love this recipe, ive had great success with choco! But my flan always falls in the middle. I added a diff cake recipe (strawberry cake) and i was afraid to overcook the cake bc the recipe said 35 mins… but i did it for 45 and was afraid to overcook the cake. Will the cake overcook if i let it cook for 1 hour like in your recipe?

    1. The cake might be slightly denser, make sure to cover the pan with foil at the end stages of baking, to avoid burning the cake. But it should be fine, just won’t be as fluffy as if you baked less time.

        1. when I covered in the beginning before, the foil stuck to the cake when the cake started to rise. So i wait for the cake to set on the outside (but not fully bake on the inside) to place the foil on top. If your pan is very tall and has a lot of room, then go for it!

          1. I see, hopefully the foil with slow down the cooking of the cake. Thank you so much! thank you for this great recipe, ive made your chocoflan 3 times already and everyone loved it!!

  4. Hi! I can’t wait to try this! I do have two questions:

    I ordered my bundt cake pan, and turns out it is 16 cups. Will this work okay? Maybe if I just reduce the baking time slightly?

    When you say condensed milk, do you mean sweetened condensed milk? Or evaporated milk?

    Thanks!!

    1. Sweetened condensed milk. And it will be ok, but the cake might not be so tall, it will be shorter, but wider. And baking time should be about the same, slightly less like you said. When you see it coming off the sides of the pan, and a toothpick is coming out clean, it’s time to turn the oven off.

  5. Hi! I am making this recipe today and had to use a Duncan Chocolate Cake mix due to the limited baking supplies at the grocery store. I have the cake in the oven and nearing 1.5 hours baking. Will the cake be okay with this substitution?

  6. Hi Camila,
    Omg, what a hit. I haves saved this recipe since last August and Just made it on Saturday. It was a long process but boy!!!! It was worth ittttttttt! The whole family loved it and it turned out perfect as well. I have shared the recipe 4 times already
    . Great job and thank you.

  7. 5 stars
    I love the idea of this recipe, but on my second attempt, the caramel layer just ran all off the cake. I kept it in the water to loosen it only about 30 seconds (not like the first time when I let it sit for much longer and the caramel took off without the cake). The other problem is that I didn’t get the lovely definition between layers. The flan was muddy looking and the cake did not have that dark chocolate color in your picture. I REALLY want to make it for another function because it tastes so darn good, but I like pretty. Any other hints?

    1. So when you say the caramel took off without the cake, what does that mean, because there’s supposed to be quite a bit of caramel sauce in the pan, you’re supposed to spoon this on top of the cake. The caramel won’t bake into the cake.
      What does muddy looking mean? Do you have any pictures you can email me?
      Also, the chocolate cake not having the same color could be due to the ingredients you are using. I make this flan in a chocolate version on this recipe here: https://www.youtube.com/watch?v=EjFKpuVdkW0&t=211s the recipe is pretty much the same but the flan layer is pumpkin flavored, but maybe watching this video can help you see what the method is like? Also, the chocolate cake and the caramel are exactly the same recipe from this Flan Cake.
      Hope it all works out!

  8. What a very interesting and I must say scrumptious cake! My only problem is that the caramel ran when I turned it out. Maybe it was too long in the warm water. I making it again tonight and taking it to a dinner party in a couple of days. My reputation will be made with this cake! Thanks for the wonderful directions. So helpful.

    1. Yes that’s probably what happened, Chris! Try leaving it a little less time in the warm water. give the pan a wiggle and as soon as the cake jiggles around in there it’s ready to turn into the plate!! Everyone will love it! Every time I bring it somewhere it’s a hit! Thank you!!!

  9. Can you omit cocoa and replace it with more flour if I just want vanilla flavor for the cake part? Thanks in advance!

  10. As we speak my Flan Cake is in the oven, fingers crossed it comes looking as delicious as yours. 🤞🏻🤞🏻
    I will post pictures once it’s done 🍮

  11. Hi Camilla, your cake looks so good. Just wondering when you say you can store in the fridge for 5 days covered, is that still in the pan not turned out or after it’s turned out? I’d love to try to make it today but will be eaten for Christmas Eve. Thank you for your help

    1. I would take it out of the pan a day after making it. So make the flan, then place it in the fridge at least for 6 hours or overnight preferably, and then you can flip it onto a plate. Remember to put it in some warm water so the caramel on the bottom will soften so you can remove the cake from the pan. When you give the pan a wiggle and the cake jiggles around in there, you can flip it onto a plate.
      Then, make sure to cover it nicely with a lid, or something, so it doesn’t get dry in the fridge, and you can store it for up to 5 days 🙂

  12. With Holidays coming up, I really want to try this. Question, however: what size pan are you using for this recipe? If I use a pan that’s too large, it won’t work so well. Also, is a tube pan necessary, or could a solid/regular cake pan be used, and what size? TIA for your assistance.

    1. I have used a 12 cup bundt pan to make this. And yes you can make it on a solid cake pan, I’ve seen it done before, a 10″ pan might work just fine, since my 12 cup bundt pan is 10″ diameter and 3.5″ high, and it has the tube in the middle, so I am assuming a 10″ or 12″ cake pan would work well.
      Let me know how it goes!! I hope you enjoy it!
      Have a fabulous day!!!

  13. Dear Camila,

    I’ve commented before (in August, about the lack of heavy cream in the Netherlands) and told you I’d let you know how the cake turned out. Well, I finally got around to baking it this weekend and it’s a huuuge hit! 🙂 Everyone loves it: ‘fudgy and creamy’ and ‘wickedly good’ is what my ‘testers’ reported back (unfortunately, I could not try it myself due to a migraine-prevention diet I am currently on). It looks gorgeous too – the layers are very well defined, though the outside does show some ‘chocolatey blemishes’ on the flan-layer (like the hide of a spotted cow), whilst yours is a spotless light golden color – which I think is even more gorgeous. However, once you cut into it, it is very sleek looking with nicely separated layers. Also, quite a forgiving recipe I’d say, for I feared I had hopelessly overbaked it (that skewer just would not come out clean, so I think I had it in the oven (fan, 160 C)for close to 1h and 45minutes!) but it’s not dry at all. Safe to say: this is a keeper! I am already thinking of a good occasion to bake it again 😉 I have 2 questions though if that’s alright: do you have any tips as to how to prevent the blotchiness on the outer rim? And why do we add the water to the caramel layer – I’ve seen so many recipes that omit it so I was wondering why you recommend incorporating it. Thanks again for such a brilliant recipe! 🙂 Sarah

  14. 5 stars
    Dear Camila,

    I’ve commented before (in August, about the lack of heavy cream in the Netherlands) and told you I’d let you know how the cake turned out. Well, I finally got around to baking it this weekend and it’s a huuuge hit! 🙂 Everyone loves it: ‘fudgy and creamy’ and ‘wickedly good’ is what my ‘testers’ reported back (unfortunately, I could not try it myself due to a migraine-prevention diet I am currently on). It looks gorgeous too – the layers are very well defined, though the outside does show some ‘chocolatey blemishes’ on the flan-layer (like the hide of a spotted cow), whilst yours is a spotless light golden colour – which I think is even more gorgeous. However, once you cut into it, it is very sleek looking with nicely separated layers. Also, quite a forgiving recipe I’d say, for I feared I had hopelessly overbaked it (that skewer just would not come out clean, so I think I had it in the oven (fan, 160 C)for close to 1h and 45minutes!) but it’s not dry at all. Safe to say: this is a keeper! I am already thinking of a good occasion to bake it again 😉 I have 2 questions though if that’s alright: do you have any tips as to how to prevent the blotchiness on the outer rim? And why do we add the water to the caramel layer – I’ve seen so many recipes that omit it so I was wondering why you recommend incorporating it. Thanks again for such a brilliant recipe! 🙂 Sarah