Proper Cheese and Onion Pie Recipe

Updated November 25, 2026

Total time
1 hr 45 min
prep 30 min · cook 1 hr 15 min
Serves
6
portions as written

Jump to recipe

Proper cheese and onion pie is a British classic: a rich, creamy filling of slowly caramelised onions and sharp mature cheddar, encased in crisp, golden shortcrust pastry. It’s hearty, savoury, and deeply satisfying—the kind of pie that works just as well for a weekday supper as it does for a picnic. This version gets the balance right: plenty of onion, plenty of cheese, and a sauce that holds together without turning gluey.

Ingredients

  • 2 tbsp (30 g) unsalted butter
  • 1 tbsp (15 ml) olive oil
  • 3 large onions (about 750 g / 1 lb 10 oz), thinly sliced
  • 1 tsp salt
  • 1 tsp sugar
  • 2 tbsp (16 g) all-purpose flour
  • 1 cup (240 ml) whole milk
  • 1 tsp Dijon mustard
  • 2 cups (200 g) grated mature cheddar cheese
  • 1 tbsp (15 ml) Worcestershire sauce (optional)
  • Freshly ground black pepper, to taste
  • 1 lb (450 g) shortcrust pastry (homemade or store-bought)
  • 1 egg, beaten, for glazing

Instructions

  1. Melt the butter with the olive oil in a large, heavy-bottomed frying pan over medium heat. Add the sliced onions, salt, and sugar. Cook gently, stirring occasionally, for 20–25 minutes, until the onions are soft, golden, and jammy. Do not rush this—proper caramelisation is key. Set aside to cool slightly.
  2. While the onions cook, roll out two-thirds of the pastry on a lightly floured surface to about 3 mm (1/8 inch) thick. Line a 9-inch (23 cm) pie dish, leaving any overhang. Chill the lined dish in the fridge for 15 minutes.
  3. Preheat the oven to 375°F (190°C).
  4. In a small saucepan, whisk the flour into the cooled onions (if the onions are still warm, let them cool a little first). Place over medium heat and cook for 1 minute, stirring.
  5. Gradually pour in the milk, stirring constantly, until the mixture thickens into a sauce. Cook for 2–3 minutes, then remove from heat.
  6. Stir in the mustard, cheddar cheese, Worcestershire sauce (if using), and a generous amount of black pepper. Taste and adjust seasoning—remember the cheese is salty, so go easy on extra salt.
  7. Pour the filling into the chilled pastry case. Roll out the remaining pastry and cover the pie, pressing the edges to seal. Trim and crimp as desired. Cut a few small slits in the top to let steam escape.
  8. Brush the top with beaten egg. Place the pie on a baking sheet to catch any drips.
  9. Bake for 35–40 minutes, until the pastry is deep golden brown and the filling is bubbling. If the edges brown too quickly, cover them with foil.
  10. Let the pie rest for 10 minutes before slicing. This helps the filling set and prevents it from running out.

Tips

  • Use a good melting cheese. Mature cheddar is traditional, but you can swap half for Gruyère or Red Leicester for a different flavour. Avoid pre-grated cheese—it often contains anti-caking agents that make the sauce grainy.
  • Don’t skip caramelising the onions. This is where the sweetness and depth come from. If you’re short on time, you can speed it up by adding a splash of water and covering the pan, but the result won’t be as rich.
  • Chill the pastry before baking. This prevents shrinkage and helps the pastry hold its shape. If you’re using store-bought pastry, still chill the lined dish for at least 15 minutes.
  • If the filling seems too loose, add an extra tablespoon of flour or let the sauce cook a little longer before adding the cheese. The filling should be thick enough to hold its shape when spooned.

Serving Suggestions

Serve warm with a simple green salad, pickled onions, or steamed seasonal vegetables. It also pairs beautifully with chutney or Branston pickle on the side. For a more substantial meal, add roasted potatoes or a bowl of tomato soup.

Variations

  • Add potato: Layer thin slices of cooked potato in the bottom of the pastry case before adding the filling—this makes it more substantial and helps absorb excess moisture.
  • Use puff pastry: For a lighter, flakier topping, use puff pastry instead of shortcrust for the lid. Bake at 400°F (200°C) for 25–30 minutes, until puffed and golden.
  • Add herbs: Stir in a tablespoon of chopped fresh thyme or chives with the cheese for an extra layer of flavour.
  • Make it a hand pie: Roll the pastry into a large rectangle, spread the filling in the centre, fold over, and seal. Bake for 25–30 minutes at 375°F (190°C) for a portable version.

Storage and Reheating

Store leftover pie in the fridge, covered, for up to 3 days. To reheat, place slices in a 350°F (175°C) oven for 10–15 minutes, or until hot throughout. You can also reheat individual slices in the microwave, but the pastry will be softer. The pie can be frozen for up to 2 months—wrap tightly in foil and thaw overnight in the fridge before reheating.

Frequently Asked Questions

Can I use pre-cooked onions? Yes, but they need to be well-caramelised. If you have leftover caramelised onions, use them and skip the first step. Just make sure they are not too wet—pat them dry if necessary.

Why is my filling runny? This usually happens if the onions were not cooked down enough, or if the sauce wasn’t thickened properly. Make sure the flour is cooked for a minute before adding the milk, and let the sauce bubble for a couple of minutes to fully thicken.

Can I make this pie ahead of time? Absolutely. Assemble the pie completely, then refrigerate unbaked for up to 24 hours. You may need to add 5–10 minutes to the baking time if baking from cold. Alternatively, bake it fully, cool, and reheat as above.

What if I don’t have a pie dish? You can use a 9-inch (23 cm) ovenproof skillet or a deep tart tin. Just adjust the pastry quantities slightly—you may have a little extra or need a bit more, depending on the depth.

Can I make this vegetarian? It already is! Just ensure your Worcestershire sauce is vegetarian (many brands are) or omit it. The pie is naturally meat-free.

What cheese works best? Mature cheddar is the classic choice because it has a strong flavour and melts well. You can also use a mix of cheddar and a bit of Parmesan for extra savouriness.

Related

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).