Old School 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

This old school cheese and onion pie is a hearty, comforting British classic that combines sweet, slowly cooked onions with a sharp, creamy cheese filling, all encased in a crisp, buttery shortcrust pastry. It’s a simple, budget-friendly dish that delivers big on flavor, making it a perfect weeknight dinner or a standout addition to a picnic spread. The key to its success is the long, slow caramelization of the onions, which brings out their natural sweetness and balances the savory cheese beautifully.

Ingredients

  • For the pastry:
    • 2 ½ cups (315 g) all-purpose flour, plus extra for rolling
    • ½ teaspoon salt
    • ¾ cup (170 g) cold unsalted butter, cut into small cubes
    • 4-5 tablespoons (60-75 ml) ice-cold water
  • For the filling:
    • 2 tablespoons (30 ml) olive oil or butter
    • 3 large (about 600 g) onions, thinly sliced
    • 1 teaspoon salt
    • ½ teaspoon black pepper
    • 1 teaspoon dried thyme (optional)
    • 1 ½ cups (170 g) sharp cheddar cheese, grated
    • ½ cup (50 g) Parmesan cheese, grated
    • 2 large eggs
    • ½ cup (120 ml) heavy cream or whole milk
    • 1 teaspoon Dijon mustard (optional)
  • For the egg wash:
    • 1 large egg, beaten with 1 tablespoon (15 ml) water

Instructions

  1. Make the pastry: In a large bowl, mix the flour and salt. Add the cold butter cubes and rub them into the flour with your fingertips until the mixture resembles coarse breadcrumbs. (You can also pulse in a food processor.) Sprinkle the ice-cold water over the mixture, one tablespoon at a time, and mix with a fork until the dough just comes together. Turn it out onto a lightly floured surface, knead briefly into a disc, wrap in plastic wrap, and refrigerate for at least 30 minutes.
  2. Cook the onions: While the pastry chills, heat the olive oil or butter in a large skillet over medium-low heat. Add the sliced onions, salt, pepper, and thyme (if using). Cook slowly, stirring occasionally, for 25-30 minutes, until the onions are soft, golden, and caramelized. If they start to stick, add a splash of water. Remove from heat and let cool slightly.
  3. Preheat the oven: Preheat your oven to 375°F (190°C).
  4. Roll out the pastry: On a lightly floured surface, roll out two-thirds of the pastry into a circle about 12 inches (30 cm) in diameter. Gently press it into a 9-inch (23 cm) pie dish or tart pan, leaving an overhang. Roll out the remaining pastry for the lid and set aside.
  5. Make the filling: In a large bowl, mix the cooled onions with the grated cheddar and Parmesan. In a separate small bowl, whisk the eggs, cream or milk, and Dijon mustard (if using). Pour this over the onion-cheese mixture and stir until well combined.
  6. Assemble the pie: Pour the filling into the prepared pastry shell. Brush the edges of the pastry with a little of the egg wash. Place the pastry lid over the filling, press the edges to seal, and trim any excess. Crimp the edges with a fork or your fingers. Cut a few small slits in the top to allow steam to escape. Brush the top with the egg wash.
  7. Bake: Place the pie on a baking sheet to catch any drips. Bake for 40-45 minutes, until the pastry is golden brown and the filling is set (the center should feel firm when gently pressed). If the edges brown too quickly, cover them with foil.
  8. Rest and serve: Let the pie rest for at least 10 minutes before slicing. This helps the filling set and makes it easier to cut clean slices. Serve warm or at room temperature.

Tips

  • Don’t rush the onions: The slow caramelization is crucial for flavor. If you cook them on high heat, they’ll burn rather than sweeten. Be patient; low and slow is the way.
  • Use cold butter for the pastry: Cold butter creates steam during baking, which makes the pastry flaky. If the butter warms up, the pastry will be tough. Work quickly and chill the dough if it becomes too soft.
  • Blind bake for a crisp bottom: If you prefer a very crisp bottom crust, pre-bake the pastry shell for 10 minutes at 375°F (190°C) with pie weights or dried beans, then remove the weights and fill. This is especially helpful if your filling is very wet.
  • Grate your own cheese: Pre-shredded cheese often contains anti-caking agents that can affect the texture of the filling. Grating your own cheese from a block melts more smoothly and tastes better.

Serving Suggestions

This pie is wonderfully versatile. Serve it with a simple green salad and a tangy vinaigrette for a light lunch, or pair it with roasted vegetables and a dollop of chutney or pickle for a more substantial dinner. It’s also excellent cold, making it a great choice for packed lunches or a picnic spread. For a classic British pub-style meal, serve with chips (fries) and mushy peas.

Variations

  • Add some protein: Stir in 6 slices of cooked, crumbled bacon or a cup of diced cooked ham to the filling for a heartier pie.
  • Switch up the cheese: Try using a mixture of Gruyère, Swiss, or a mature white cheddar for a different flavor profile. Smoked cheese adds a lovely depth.
  • Add vegetables: Sauté a couple of sliced leeks with the onions, or add a handful of fresh spinach to the filling just before baking.
  • Make it a hand pie: Instead of a large pie, roll the pastry into smaller circles, fill, and fold into pasties. Adjust the baking time to about 25-30 minutes.

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 warmed through. You can also enjoy it cold. If you want to freeze the pie, wrap it tightly in plastic wrap and then foil. It will keep for up to 3 months. Thaw overnight in the refrigerator before reheating.

Frequently Asked Questions

Can I use store-bought pastry? Yes, absolutely. A good quality all-butter shortcrust pastry from the store will work perfectly and save time. Just make sure to follow the package instructions for blind baking if required.

Why is my pie filling runny? This can happen if the onions were not cooked down enough, or if the pie wasn’t baked long enough. Make sure the onions are well caramelized and the filling is set before you take it out of the oven. Letting the pie rest also helps it firm up.

Can I make this pie ahead of time? Yes, you can assemble the pie completely and refrigerate it for up to 24 hours before baking. You may need to add 5-10 minutes to the baking time if baking from cold. Baked pie can be reheated as described above.

What is the best cheese for this pie? Sharp cheddar is the classic choice because it has a strong flavor that stands up to the sweet onions. However, you can use any good melting cheese like Gruyère, Red Leicester, or a mix of your favorites.

Can I make this pie without eggs? Yes, you can substitute the eggs with a mixture of ½ cup (120 ml) milk and 2 tablespoons (16 g) cornstarch or all-purpose flour. Whisk together until smooth and use as you would the egg mixture. The texture will be slightly less rich but still delicious.

My pastry is tough, what did I do wrong? Tough pastry is usually caused by overworking the dough or adding too much water. Handle the dough as little as possible and add water gradually until it just comes together. Also, ensure your butter is very cold.

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