This is the cheese and onion pie that doesn’t apologize—sharp, savory, and unapologetically rich, with a deeply caramelized onion filling bound in a creamy, tangy cheese sauce, all encased in a buttery, crisp shortcrust pastry. It’s a British classic that’s often called “nasty” as a term of endearment for its intense, punchy flavor and hearty nature. This version works because it balances the sweetness of slowly cooked onions with the sharp bite of mature cheddar and the subtle funk of Worcestershire sauce, creating a pie that’s both comforting and boldly flavorful.
Ingredients
- 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 tbsp (15 g) butter
- 2 tbsp (16 g) all-purpose flour
- 1 cup (240 ml) whole milk
- 1/2 cup (120 ml) heavy cream
- 2 cups (200 g) grated sharp cheddar cheese
- 1/2 cup (50 g) grated Parmesan cheese
- 1 tbsp (15 ml) Worcestershire sauce
- 1 tsp dry mustard powder
- 1/4 tsp ground nutmeg
- 1 large egg, beaten (for egg wash)
- 1 lb (450 g) shortcrust pastry (homemade or store-bought)
Instructions
- Heat the olive oil in a large, heavy-bottomed skillet over medium heat. Add the sliced onions and salt. Cook, stirring occasionally, for 20-25 minutes, until the onions are soft, deeply golden, and caramelized. If they start to stick, add a splash of water. Set aside to cool slightly.
- While the onions cook, make the cheese sauce. In a medium saucepan, melt the butter over medium heat. Whisk in the flour and cook for 1-2 minutes until it forms a paste (a roux). Gradually whisk in the milk and cream, stirring constantly to avoid lumps. Bring to a gentle simmer and cook for 3-4 minutes until the sauce thickens enough to coat the back of a spoon.
- Remove the sauce from the heat and stir in the cheddar and Parmesan until melted and smooth. Add the Worcestershire sauce, mustard powder, and nutmeg. Season with the black pepper. Taste and add more salt if needed (remember the cheese is salty).
- Fold the caramelized onions into the cheese sauce. Let the filling cool completely—this helps prevent a soggy crust.
- Preheat your oven to 375°F (190°C). On a lightly floured surface, roll out two-thirds of the pastry to fit a 9-inch (23 cm) pie dish. Press the pastry into the dish, leaving any overhang. Spoon the cooled onion-cheese filling into the pastry shell and spread it evenly.
- Roll out the remaining pastry to form the top crust. Place it over the filling, trim the edges, and crimp to seal. Cut a few small slits in the top to allow steam to escape. Brush the top with the beaten egg for a golden finish.
- Place the pie on a baking sheet to catch any drips. Bake for 35-40 minutes, until the pastry is golden brown and the filling is bubbling. Let the pie rest for 10 minutes before slicing—this allows the filling to set slightly.
Tips
- Don’t rush the onions: The caramelization is key to the pie’s depth. Low and slow is the way—if they brown too quickly, they’ll turn bitter. Use a wide pan so they aren’t crowded.
- Cool the filling completely: Adding hot filling to raw pastry will melt the butter and make the crust tough and soggy. Let it cool to room temperature, or even chill it for 30 minutes.
- Substitute the cheese: If you can’t find sharp cheddar, use a mature Gouda or a mix of Gruyère and a mild cheddar. For a vegetarian version, ensure your cheese and Worcestershire sauce are vegetarian-friendly (some Worcestershire contains anchovies).
- Blind bake for extra crispness: If you prefer a very crisp bottom crust, blind bake the pastry shell for 15 minutes at 375°F (190°C) with pie weights, then remove the weights and bake for 5 more minutes before adding the filling.
Serving Suggestions
Serve this pie hot, straight from the oven, with a side of steamed green beans or a crisp mixed salad dressed with a simple vinaigrette. It also pairs beautifully with chutney or pickled onions for a sharp contrast. For a heartier meal, serve with mashed potatoes and gravy—it’s a classic pub-style combination.
Variations
- Add potato: Layer thinly sliced, pre-cooked potatoes at the bottom of the pie for a more substantial filling.
- Smoky twist: Add 1/2 teaspoon of smoked paprika or a handful of smoked cheese to the filling for a smoky depth.
- Herb infusion: Stir in 1 tablespoon of chopped fresh thyme or chives with the onions for an aromatic lift.
- Puff pastry top: Use puff pastry for the top crust instead of shortcrust for a lighter, flakier finish—just adjust the baking time to 30-35 minutes.
Storage and Reheating
Store leftovers in an airtight container in the refrigerator for up to 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 2-3 minutes, but the pastry will be less crisp. The pie can be frozen after baking—wrap it tightly in plastic wrap and foil, and freeze for up to 3 months. Thaw overnight in the fridge before reheating in the oven.
Frequently Asked Questions
Can I use pre-shredded cheese? Yes, but freshly grated cheese melts more smoothly because pre-shredded varieties often contain anti-caking agents that can make the sauce grainy. For the best texture, grate your own.
Why is my filling runny? This usually happens if the sauce wasn’t thickened enough or the onions released extra moisture. Cook the sauce until it’s quite thick—it should coat a spoon heavily—and make sure the onions are well-caramelized and not watery. Also, let the pie rest after baking to set.
Can I make this pie ahead of time? Absolutely. Assemble the pie completely, then refrigerate it 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 refrigerate; reheat as directed.
Can I use a different type of onion? Yes, yellow or brown onions are classic, but you can use red onions for a milder, slightly sweeter flavor, or even leeks for a more delicate taste. Just adjust the caramelization time accordingly.
Is this pie suitable for vegetarians? Yes, if you use vegetarian cheese and ensure your Worcestershire sauce is vegetarian (many brands are, but check the label). Also, make sure your pastry is vegetarian (most are, but some contain lard).
Can I freeze the unbaked pie? Yes, assemble the pie and freeze it unbaked, wrapped tightly, for up to 3 months. Bake from frozen at 375°F (190°C) for 50-60 minutes, or until golden and bubbling. No need to thaw.
Related
- Indian Fried Bread (Poori) Recipe
- Individual Cheese and Onion Pie Recipe
- How to Play Hot Cross Buns on Xylophone
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).