Cheese and onion pie is a comforting British classic, featuring a rich, savory filling of slowly caramelized onions and plenty of melted cheese, all encased in golden, flaky pastry. It’s a hearty, satisfying dish that works as a main course or a snack. The key to a perfect pie is getting the cooking time right so the pastry is crisp and the filling is bubbling hot, and this guide gives you exact timings and temperatures for both store-bought and homemade pies.
Ingredients
- 2 tablespoons (30 g) butter
- 2 large onions (about 400 g / 14 oz), thinly sliced
- 1 teaspoon (5 g) sugar (optional, helps caramelize)
- 2 cups (200 g) grated sharp cheddar cheese
- 1 cup (100 g) grated mozzarella or Gruyère (optional, for extra melt)
- 1 tablespoon (8 g) all-purpose flour
- 1/2 cup (120 ml) heavy cream or whole milk
- 1 teaspoon (5 ml) Worcestershire sauce (optional)
- 1/2 teaspoon (2.5 g) salt
- 1/4 teaspoon (1 g) black pepper
- 1 large egg, beaten (for egg wash)
- 1 package (14 oz / 400 g) puff pastry or shortcrust pastry (or homemade for a 9-inch pie)
Instructions
- Preheat the oven to 375°F (190°C). If using a store-bought pie shell or making a double-crust pie, have your pastry ready.
- Caramelize the onions: In a large skillet, melt the butter over medium heat. Add the sliced onions and sugar (if using). Cook, stirring occasionally, until the onions are soft and golden brown, about 15–20 minutes. If they start to stick, add a splash of water. Remove from heat and let cool slightly.
- Make the filling: In a large bowl, mix the grated cheddar (and mozzarella/Gruyère if using) with the flour. Add the caramelized onions, cream (or milk), Worcestershire sauce (if using), salt, and pepper. Stir to combine. The mixture should be thick and cohesive.
- Assemble the pie: If using a pie dish (9-inch / 23 cm), line it with the bottom pastry. Pour in the cheese-onion mixture and spread evenly. Cover with the top pastry, crimp the edges to seal, and cut a few slits in the top to allow steam to escape. Brush the top with the beaten egg for a golden finish.
- Bake the pie: Place the pie on a baking sheet to catch any drips. Bake for 35–40 minutes, or until the pastry is golden brown and puffed. The filling should be hot and bubbling (if you insert a thermometer through the vent, it should read at least 165°F (74°C) for food safety, though this is a vegetarian dish—the temperature ensures the cream and eggs are fully cooked). If the edges brown too quickly, cover them with foil.
- Rest and serve: Let the pie rest for 10 minutes before slicing. This helps the filling set and prevents it from running out.
Tips
- Don’t skip caramelizing: The onions must be cooked until they are truly golden and jammy—this develops their natural sweetness and removes excess moisture, which would otherwise make the pie soggy.
- Use a mix of cheeses: Sharp cheddar gives flavor, while a melting cheese like mozzarella or Gruyère ensures a gooey texture. If you only have cheddar, that’s fine—just add a little more.
- Prevent a soggy bottom: For a bottom crust that stays crisp, blind bake the bottom pastry for 10 minutes before adding the filling. This is especially helpful if you’re using a very moist filling.
- Check for doneness: Ovens vary, so start checking at 30 minutes. The pie is done when the pastry is deep golden and the filling is visibly bubbling through the vents. If you’re unsure, insert an instant-read thermometer into the center—it should read 165°F (74°C).
Serving Suggestions
Serve this pie warm with a side of steamed green beans, a crisp green salad, or some roasted root vegetables. It also pairs well with a dollop of chutney or pickled onions for a tangy contrast. For a hearty meal, add some mashed potatoes and gravy—it’s a classic British combination.
Variations
- Add potatoes: Layer thinly sliced boiled potatoes under the cheese-onion mixture for a more substantial pie.
- Herb it up: Stir in 1 teaspoon of dried thyme or a tablespoon of chopped fresh chives to the filling.
- Make it a hand pie: Cut the pastry into circles, fill with the mixture, fold over, and bake at 375°F (190°C) for 20–25 minutes until golden.
- Use a different cheese: Try smoked cheddar, Red Leicester, or a mix of Parmesan and mozzarella for a different flavor profile.
Storage and Reheating
Store leftover pie in the refrigerator within 2 hours of baking. Cover loosely with foil or plastic wrap—it will keep for 3–4 days. To reheat, place slices on a baking sheet and warm in a 350°F (175°C) oven for 10–15 minutes, or until heated through. You can also microwave individual slices for 1–2 minutes, but the pastry will be less crisp. The pie can be frozen for up to 2 months; thaw overnight in the fridge and reheat as above.
Frequently Asked Questions
How long does it take to cook a cheese and onion pie from scratch? The total time is about 1 hour 25 minutes, including 30 minutes of prep (mostly caramelizing onions) and 35–40 minutes of baking. The actual hands-on time is less, but the onions need slow cooking.
Can I use pre-made pastry? Absolutely. Store-bought puff pastry or shortcrust works perfectly. Just make sure to roll it out to about 1/8-inch thickness and follow the recipe’s baking time—store-bought pastry may brown faster, so check at 30 minutes.
Why is my pie soggy? A soggy bottom usually comes from excess moisture in the filling. Make sure the onions are well caramelized and not watery, and consider blind baking the bottom crust for 10 minutes before adding the filling. Also, don’t overfill the pie—leave a little room for bubbling.
Can I make it ahead of time? Yes, you can assemble the pie (without the egg wash) and refrigerate it for up to 24 hours. When ready to bake, brush with egg wash and add 5–10 minutes to the baking time to account for the cold start.
What internal temperature should the pie reach? For food safety, the filling should reach 165°F (74°C) when checked with a thermometer. This ensures any eggs or cream are fully cooked, even though the pie is vegetarian.
Can I freeze the pie before baking? Yes, assemble the pie, wrap it well, and freeze for up to 2 months. Bake from frozen at 375°F (190°C) for 50–60 minutes, or until golden and bubbling.
Related
- Fish Pie Origin: A Classic British Comfort Food
- Classic Australian Fish Pie Recipe
- Fish Pie Recipe NZ: Creamy & Comforting
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).