Classic Cheese and Onion Pie with Cheddar Custard
In this article
This classic cheese and onion pie combines sweet, slowly caramelised onions with a silky cheddar custard that sets into a golden crust. The contrast of buttery shortcrust pastry and rich, cheesy filling makes it perfect for a comforting lunch or a hearty dinner side.
Ingredients
- 250 g plain flour (plus extra for dusting)
- 125 g cold unsalted butter, diced
- 1 tsp salt (for pastry)
- 4–5 tbsp ice‑cold water
- 3 large onions (about 500 g), thinly sliced
- 2 tbsp unsalted butter (for onions)
- 2 tbsp plain flour (for custard base)
- 300 ml whole milk
- 100 ml double cream
- 3 large eggs
- 150 g sharp cheddar, grated
- ½ tsp ground nutmeg
- Salt and freshly ground black pepper, to taste
Instructions
- In a large bowl combine the flour, 1 tsp salt and the cold butter pieces. Using fingertips or a pastry cutter, rub the butter into the flour until the mixture resembles coarse breadcrumbs with some pea‑size pieces of butter remaining.
- Add the ice‑cold water a tablespoon at a time, mixing gently with a fork until the dough just comes together. Form the dough into a flat disc, wrap it in cling film and refrigerate for at least 30 minutes; this resting stage relaxes the gluten and keeps the butter cold, which prevents shrinkage during baking.
- While the dough chills, pre‑heat the oven to 200 °C (390 °F) with a rack positioned in the centre of the oven.
- Heat 2 tbsp butter in a wide, heavy‑bottomed skillet over medium‑low heat. Add the sliced onions, a pinch of salt and a pinch of sugar, then cook gently, stirring occasionally, for 25–30 minutes until the onions are soft, golden and caramelised. If the pan looks dry, add a splash of water to de‑glaze; the goal is deep colour without burning.
- Sprinkle 2 tbsp flour over the caramelised onions, stirring constantly for 1–2 minutes to form a light roux. This will thicken the custard later and eliminate any raw flour taste.
- Gradually whisk in the whole milk and double cream, scraping the bottom of the pan to dissolve any browned bits. Bring the mixture to a gentle simmer, then remove from heat. The sauce should coat the back of a spoon and be slightly thickened.
- In a separate bowl whisk the three eggs together with the grated cheddar, nutmeg, a generous pinch of salt and a few turns of black pepper. To prevent the eggs from curdling, temper them by slowly whisking in about ¼ cup of the hot milk‑cream mixture, then pour the tempered egg‑cheese blend back into the pan, stirring constantly.
- Return the pan to low heat and cook for another 2–3 minutes, just until the custard thickens enough to coat the spoon but does not boil. The custard should reach around 70 °C (158 °F); it will finish cooking in the oven and must reach an internal temperature of 74 °C (165 °F) for safety.
- Roll out the chilled pastry on a lightly floured surface to a 3‑mm thickness, large enough to line a 23‑cm (9‑inch) pie tin. Gently lift the pastry into the tin, pressing it into the base and sides, and trim any excess. Prick the base all over with a fork to stop it puffing.
- Pour the hot cheddar‑onion custard into the prepared crust, spreading it evenly. If you like a decorative edge, fold the overhang of pastry over the filling and crimp it with your fingers or a fork.
- Bake the pie on the middle rack for 30–35 minutes, or until the crust is golden brown and the custard registers at least 74 °C (165 °F) on an instant‑read thermometer. A light wobble in the centre is acceptable; the custard will set as it cools.
- Remove the pie from the oven and allow it to rest on a wire rack for 10 minutes before slicing. This resting period lets the custard finish setting and makes clean cuts easier.
Tips
- Choose a sharp, aged cheddar for maximum flavour; milder cheeses can make the custard taste flat.
- If you have extra time, caramelise the onions over low heat for 45 minutes for a deeper, sweeter profile.
- Keep all pastry ingredients cold and handle the dough as little as possible to avoid a tough crust.
- Do not over‑bake the custard; a slight jiggle indicates it will set perfectly once cooled.
Serving Suggestions
Serve the pie warm, cut into generous wedges, alongside a crisp green salad dressed with a simple vinaigrette. A spoonful of apple chutney or a dollop of whole‑grain mustard adds a bright contrast to the rich cheese. For a heartier meal, pair it with roasted root vegetables or a steaming bowl of tomato soup.
Variations
Feel free to adapt the classic recipe to suit your pantry or taste preferences. Adding 100 g of crisp‑cooked bacon or pancetta to the onion mixture introduces a smoky depth. Swap the cheddar for Gruyère or a blend of mature English cheeses for a nuttier note. For a vegetable boost, fold in 150 g of thinly sliced leeks or a handful of chopped spinach just before adding the custard. Herbs such as fresh thyme or sage can be minced and stirred into the custard for an aromatic twist.
Storage and Reheating
Cool the pie to room temperature within two hours of baking, then cover it loosely with foil or transfer to an airtight container. Refrigerate for up to three days. To freeze, wrap the cooled pie tightly in cling film followed by a layer of aluminium foil; it will keep for two months. When ready to serve, reheat in a pre‑heated oven at 180 °C (350 °F) for 15–20 minutes, or until the centre reaches 74 °C (165 °F). For a crispier crust, finish the reheating stage under the grill for 2–3 minutes, watching closely to avoid burning.
Frequently Asked Questions
Can I use ready‑made shortcrust pastry?
Yes. A good quality ready‑made shortcrust will save time and still give a flaky result. Keep it chilled until you line the tin, and blind‑bake it for 10 minutes if you prefer a firmer base.
Why does my crust become soggy?
A soggy bottom is usually caused by excess moisture in the filling or an under‑cooked pastry. Ensure the onions are well‑drained after caramelising, and bake the crust on a pre‑heated baking sheet or pizza stone to promote even heat distribution.
Is a gluten‑free version possible?
Replace the plain flour with a 1:1 gluten‑free all‑purpose blend that contains xanthan gum. The dough may be slightly more crumbly, so handle it gently and add a little extra cold water if needed.
Can I substitute the milk with a non‑dairy alternative?
Whole milk provides the richness needed for a smooth custard, but you can use an equal amount of unsweetened oat or soy milk combined with a splash of extra cream to maintain the same fat content. The flavour will be subtly different but still delicious.
How long can the pie be kept at room temperature?
Because the filling contains eggs and dairy, the pie should not sit out for more than two hours. After that, refrigerate promptly to keep it safe and preserve texture.