Cheese and onion pie is a beloved British classic: a buttery shortcrust pastry filled with a savoury mixture of melting cheese, sweet caramelised onions, and a rich, creamy egg custard. This recipe delivers a deeply satisfying, golden-topped pie that works as a hearty main course or a comforting side. The combination of sharp Cheddar and sweet onions, bound with a simple egg and cream filling, creates a pie that is both rustic and elegant—perfect for a weekend lunch or a cosy dinner.
Ingredients
- 2 tbsp (30 g) unsalted butter
- 3 large onions (about 450 g / 1 lb), thinly sliced
- 1 tsp salt
- 1/2 tsp black pepper
- 1 tsp dried thyme (or 1 tbsp fresh)
- 2 cups (200 g) grated sharp Cheddar cheese
- 1/2 cup (50 g) grated Parmesan cheese
- 3 large eggs
- 1 cup (240 ml) heavy cream (or half-and-half for a lighter version)
- 1 tbsp Dijon mustard
- 1/4 tsp ground nutmeg
- 1 lb (450 g) shortcrust pastry (homemade or store-bought)
- 1 egg, beaten, for egg wash
Instructions
- Preheat the oven to 375°F (190°C).
- In a large skillet, melt the butter over medium heat. Add the sliced onions, salt, pepper, and thyme. Cook, stirring occasionally, until the onions are soft and golden brown, about 20–25 minutes. Set aside to cool slightly.
- In a large bowl, combine the grated Cheddar and Parmesan. Add the cooled onions and mix well.
- In a separate bowl, whisk together the eggs, cream, Dijon mustard, and nutmeg. Pour this over the cheese-onion mixture and stir until everything is well coated.
- Roll out two-thirds of the pastry on a lightly floured surface to about 1/8-inch (3 mm) thickness. Line a 9-inch (23 cm) pie dish with the pastry, pressing it into the edges. Trim the excess.
- Pour the filling into the pastry-lined dish, spreading it evenly.
- Roll out the remaining pastry to form the top crust. Place it over the filling, trim the edges, and crimp to seal. Cut a few small slits in the top to allow steam to escape.
- Brush the top with the beaten egg wash.
- Bake for 35–40 minutes, until the pastry is golden brown and the filling is set (a knife inserted near the center should come out clean). If the edges brown too quickly, cover them with foil.
- Let the pie rest for 10 minutes before slicing. Serve warm or at room temperature.
Tips
- Don’t rush the onions: Caramelising the onions slowly brings out their natural sweetness, which balances the sharpness of the cheese. If you’re short on time, you can cook them on a higher heat for 10–15 minutes, but they won’t be as sweet.
- Use a good melting cheese: Cheddar is classic, but you can use Gruyère, Emmental, or a mix of your favourites. Avoid pre-shredded cheese, as it often contains anti-caking agents that affect melting.
- Blind-bake for a crisp bottom: If you prefer a very crisp bottom crust, blind-bake the pastry for 10 minutes at 375°F (190°C) before adding the filling. This is especially helpful if your filling is very moist.
- Check the filling is set: The pie is done when the filling is just set—it should not wobble in the center. Overbaking can cause the custard to curdle, so keep an eye on it.
Serving Suggestions
Serve this pie with a fresh green salad dressed with a simple vinaigrette, or with steamed seasonal vegetables like peas, green beans, or broccoli. For a heartier meal, pair it with roasted potatoes or a bowl of tomato soup. It also makes a wonderful addition to a picnic or a packed lunch, served cold with chutney or pickles.
Variations
- Add herbs: Stir in chopped fresh chives, parsley, or sage for an extra layer of flavour.
- Make it spicy: Add a pinch of cayenne pepper or a finely chopped red chilli to the onion mixture for a gentle kick.
- Swap the cheese: Use a smoked Cheddar, Red Leicester, or a blue cheese like Stilton for a different taste. Reduce the amount of blue cheese to 1/2 cup (50 g) and top up with a milder cheese.
- Add a vegetable: Sautéed mushrooms, leeks, or spinach (squeezed dry) can be added to the filling for extra substance.
- Use puff pastry: For a lighter, flakier pie, use puff pastry for the top crust instead of shortcrust. Adjust the baking time to 30–35 minutes, watching closely.
Storage and Reheating
The pie can be stored in the refrigerator, covered, for up to 3 days. To reheat, place slices in a preheated oven at 350°F (175°C) for 10–15 minutes, or until warmed through. Alternatively, microwave individual slices on medium power for 1–2 minutes, though the pastry will lose some crispness. The pie can also be frozen for up to 2 months—wrap it tightly in plastic wrap and foil. Thaw overnight in the fridge before reheating as above.
Frequently Asked Questions
Can I make this pie ahead of time? Yes, you can assemble the pie completely and refrigerate it unbaked for up to 24 hours. When ready to bake, add about 10 minutes to the baking time. You can also bake it fully and reheat as described above.
Why is my filling runny? A runny filling usually means the custard hasn’t set properly. Ensure you bake the pie until the center is just set—it should not jiggle. Also, make sure your onions are well-cooked and not too wet; excess moisture from the onions can thin the custard.
Can I use a ready-made pastry? Absolutely. Store-bought shortcrust pastry works perfectly. Just make sure to follow the package instructions for rolling and baking temperatures, and let it sit at room temperature for a few minutes if it’s too firm to roll.
What is the best cheese for this pie? Sharp Cheddar is the most common and gives a robust flavour. However, you can mix it with Gruyère, which melts beautifully, or add a little Parmesan for extra savouriness. Avoid very oily cheeses like mozzarella, as they can make the filling greasy.
Can I make this pie without eggs? Yes, you can make an egg-free version by omitting the eggs and using 1 cup (240 ml) of milk or cream instead. The filling will be less custardy and more like a cheesy onion mixture. Bake until the top is golden and the filling is bubbling.
How do I prevent the crust from burning? If the edges are browning too quickly, cover them with strips of foil or a pie shield. You can also brush the crust with a little milk or cream instead of egg wash, which browns more slowly.
Related
- Vaseline Cocoa Butter: DIY Whipped Body Butter Recipe
- Tree Hut Body Butter: DIY Whipped Recipe
- Sesame Jack Chicken Strips: Crispy, Cheesy, Easy
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).