Cheese Flan with Caramelized Onion and Cheddar Recipe
Introduction
This cheese flan is a rich and comforting dish featuring caramelized onions and sharp cheddar wrapped in a buttery shortcrust pastry. It’s perfect for a simple lunch or a cozy dinner with a fresh salad. The golden, puffed-up filling makes it as beautiful as it is delicious.

Ingredients
- 15g salted butter, plus extra for the dish
- 1 onion, finely chopped
- 5 eggs, beaten
- 150ml whole milk
- 320g ready-rolled sheet of shortcrust pastry
- 150g extra-mature cheddar, grated
Instructions
- Step 1: Heat the oven to 200°C (180°C fan) or gas mark 6 with a baking tray inside. Melt the butter in a small pan over medium heat. When the butter foams, add the chopped onion and a large pinch of salt. Fry gently for 10-15 minutes until the onion softens and begins to caramelize. Remove from heat and let it cool slightly.
- Step 2: In a bowl, whisk together the beaten eggs and whole milk, and season generously with salt and pepper.
- Step 3: Butter an 18 x 25cm baking dish that is at least 6cm deep, then line it with baking parchment. Roll out the shortcrust pastry into the dish, pressing it fully into the corners and up the sides.
- Step 4: Scatter the caramelized onion evenly over the pastry base, then sprinkle the grated cheddar on top. Carefully pour the egg and milk mixture over the filling.
- Step 5: Place the baking dish on the hot baking tray in the oven and bake for 35-40 minutes. The flan should be golden on top and puffed up. Remove from the oven and allow to cool slightly before serving.
Tips & Variations
- For extra flavor, add a pinch of freshly ground nutmeg or some chopped herbs like thyme or chives to the egg mixture.
- Try swapping the cheddar for another strong cheese such as Gruyère or Comté for a different taste.
- To prevent the pastry from shrinking, chill it in the fridge for 15 minutes before baking and avoid stretching it too much when lining the dish.
Storage
Store any leftover cheese flan covered in the refrigerator for up to 2 days. Reheat gently in a low oven (around 160°C) until warmed through to preserve the texture. Avoid microwaving as it may make the pastry soggy.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I make this cheese flan ahead of time?
Yes, you can prepare the flan up to the point of baking, cover it tightly, and refrigerate it overnight. Bake it the next day adding a few extra minutes to ensure it’s cooked through.
Can I use a different type of pastry?
Shortcrust pastry works best for this recipe because it’s sturdy enough to hold the filling. However, puff pastry can be used for a lighter, flakier base—just keep an eye on baking time as it may cook faster.
Print
Cheese Flan with Caramelized Onion and Cheddar Recipe
- Total Time: 1 hour
- Yield: 6 servings 1x
- Diet: Vegetarian
Description
This classic Cheese Flan is a savory and comforting dish featuring a flaky shortcrust pastry base filled with caramelized onions, mature cheddar cheese, and a creamy egg custard. Perfect for a brunch, light lunch, or dinner, it offers a delightful balance of sweet onion and sharp cheese flavors all baked to golden perfection.
Ingredients
For the Filling
- 15g salted butter, plus extra for greasing
- 1 onion, finely chopped
- 5 eggs, beaten
- 150ml whole milk
- 150g extra-mature cheddar, grated
For the Pastry
- 320g ready-rolled sheet of shortcrust pastry
Instructions
- Preheat the Oven: Heat the oven to 200°C (180°C fan) or gas mark 6, placing a baking tray inside to warm up.
- Caramelize the Onion: Melt the butter in a small pan over medium heat. Once it starts foaming, add the finely chopped onion with a large pinch of salt. Fry gently for 10-15 minutes until the onions soften and begin to caramelize. Remove from heat and let cool slightly.
- Prepare the Egg Mixture: In a bowl, whisk together the beaten eggs and whole milk. Season well with salt and pepper to taste.
- Prepare the Pastry Base: Butter an 18 x 25 cm baking dish that is at least 6 cm deep. Line the dish with baking parchment for easy removal. Roll out the ready-rolled shortcrust pastry into the tin, pressing it so the edges reach the corners and sides evenly.
- Assemble the Flan: Evenly scatter the caramelized onions over the pastry base, followed by the grated mature cheddar cheese. Carefully pour the egg and milk mixture over the filling, ensuring it is evenly distributed.
- Bake: Place the prepared dish onto the preheated baking tray in the oven. Bake for 35-40 minutes until the flan is golden brown, puffed up, and set.
- Cool and Serve: Once baked, remove from the oven and allow to cool for a few minutes before slicing and serving warm.
Notes
- For extra flavor, sprinkle a little freshly ground black pepper on top before baking.
- You can substitute the cheddar with other mature cheeses like Gruyère or Comté for a different taste profile.
- The flan is best served warm but can be enjoyed at room temperature.
- Make sure to let the caramelized onions cool slightly before assembling to avoid cooking the eggs prematurely.
- Use fresh eggs and good-quality milk for the creamiest results.
- Prep Time: 20 minutes
- Cook Time: 40 minutes
- Category: Main Dish
- Method: Baking
- Cuisine: British
Keywords: Cheese flan, savory flan, caramelized onion flan, British cheese tart, shortcrust pastry flan

