This Cheese and Onion Pie is a hearty British classic, made famous by the Hairy Bikers’ version. It features a rich, creamy filling of slowly caramelized onions and plenty of sharp cheddar cheese, all encased in a golden, flaky shortcrust pastry. It’s the ultimate comfort food—savory, satisfying, and perfect for a cozy dinner.
Ingredients
- 2 tbsp (30 g) butter
- 2 tbsp (30 ml) olive oil
- 3 large onions (about 1.5 lb / 680 g), thinly sliced
- 1 tsp salt
- 1/2 tsp black pepper
- 1 tsp dried thyme (or 1 tbsp fresh)
- 1 cup (240 ml) whole milk
- 3 tbsp (45 g) all-purpose flour
- 2 cups (200 g) grated sharp cheddar cheese
- 1 tbsp (15 ml) Dijon mustard (optional)
- 1 large egg, beaten (for egg wash)
- 1 lb (450 g) shortcrust pastry (store-bought or homemade)
Instructions
- Preheat your oven to 375°F (190°C).
- In a large skillet or frying pan, melt the butter with the olive oil over medium heat. Add the sliced onions, salt, pepper, and thyme. Cook gently for 20–25 minutes, stirring occasionally, until the onions are soft and golden brown. Do not rush this step—caramelizing the onions properly is key to the pie’s flavor.
- While the onions cook, roll out the shortcrust pastry on a lightly floured surface. Line a 9-inch (23 cm) pie dish with about two-thirds of the pastry, leaving the rest for the lid. Trim the edges, leaving a slight overhang. Place the lined dish in the refrigerator to chill while you make the filling.
- Once the onions are caramelized, sprinkle the flour over them and stir well. Cook for 1–2 minutes to remove the raw flour taste.
- Gradually pour in the milk, stirring constantly to avoid lumps. Bring the mixture to a gentle simmer and cook for 2–3 minutes until thickened. Remove from heat.
- Stir in the grated cheddar cheese and Dijon mustard (if using) until the cheese is melted and the sauce is smooth. Taste and adjust seasoning if needed.
- Pour the cheese and onion filling into the chilled pastry case. Spread it evenly.
- Roll out the remaining pastry for the lid. Dampen the edges of the bottom pastry with a little water, then place the lid on top. Press the edges together to seal, then crimp with a fork or your fingers. Cut a few small slits in the top to allow steam to escape.
- Brush the top of the pie with the beaten egg for a shiny, golden finish.
- Place the pie on a baking sheet (to catch any drips) and bake in the preheated oven for 35–40 minutes, or until the pastry is golden brown and the filling is bubbling.
- Let the pie rest for 10 minutes before slicing and serving. This helps the filling set slightly and makes it easier to cut clean slices.
Tips
- Don’t skip caramelizing: The onions need time to release their natural sugars and turn sweet and golden. If you rush this step, the pie will lack depth of flavor.
- Use a good melting cheese: Sharp cheddar is classic, but you can also use a mix of cheddar and Gruyère for extra creaminess. Avoid pre-shredded cheese as it often contains anti-caking agents that can affect the sauce’s texture.
- Chill the pastry: Chilling the lined pie dish before adding the hot filling helps prevent the pastry from shrinking during baking.
- Make ahead: You can assemble the pie completely and refrigerate it (unbaked) for up to 24 hours. When ready to bake, add a few extra minutes to the cooking time.
Serving Suggestions
This pie is wonderfully satisfying on its own, but it pairs beautifully with a side of creamy mashed potatoes, steamed green beans, or a simple garden salad. For a traditional British touch, serve with a generous spoonful of Branston pickle or chutney on the side.
Variations
- Add potato: Layer thin slices of cooked potato at the bottom of the pie before adding the cheese and onion filling for a heartier version.
- Herb twist: Add a handful of chopped fresh parsley or chives to the filling along with the thyme.
- Different cheese: Try using a smoked cheddar or a mix of cheddar and red Leicester for a different flavor profile.
- Vegetarian and vegan: This recipe is already vegetarian. For a vegan version, use plant-based butter, milk, and cheese, and ensure your pastry is vegan-friendly.
Storage and Reheating
Store any leftover pie in the refrigerator, covered, for up to 3–4 days. To reheat, place slices in a preheated oven at 350°F (175°C) for 10–15 minutes, or until heated through. You can also microwave individual slices for 1–2 minutes, though the pastry will be less crisp. The pie can be frozen (baked or unbaked) for up to 3 months—wrap it tightly in plastic wrap and foil. Thaw overnight in the refrigerator before reheating.
Frequently Asked Questions
Can I use puff pastry instead of shortcrust? Yes, you can substitute puff pastry for a flakier, lighter crust. However, the baking time may differ—keep an eye on it and bake until golden brown.
Why is my filling runny? A runny filling usually means the sauce wasn’t thickened enough. Make sure you cook the flour and milk mixture until it’s thick and bubbling before adding the cheese. Also, let the pie rest after baking to allow the filling to set.
Can I make this pie without onions? If you’re not a fan of onions, you could try using leeks instead. Cook them the same way until soft and golden.
Is this pie suitable for freezing? Absolutely. Assemble the pie, wrap it well, and freeze. Bake from frozen, adding 15–20 minutes to the cooking time, or thaw overnight and bake as directed.
How do I prevent the pastry from getting soggy? Blind-baking the bottom crust for 10–15 minutes before adding the filling can help prevent sogginess. Alternatively, ensure your filling is thick and not overly wet.
Can I add meat to this pie? Yes, cooked ham or bacon would be a delicious addition. Just add it to the filling along with the cheese.
Related
- American Cup Cheese and Onion Pie Recipe
- Old Stewing Chicken Recipe: Tender & Flavorful
- How to Stew a Flavorful Chicken Soup
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).