Desserts
Mary Berry's cheese and onion pie delivers that perfect balance of rich, savory filling and crisp, buttery pastry—every slice is a testament to classic British baking. 💛 The secret lies in a well-seasoned filling with sharp cheddar, caramelized onions, and a touch of mustard for depth, all encased in a golden, flaky crust that holds together beautifully.
This recipe captures Mary Berry's signature approach: simple ingredients elevated through technique. The onions soften into sweet, jammy perfection while the cheese melts into a velvety, flavorful filling. A shortcrust pastry provides sturdy structure, though puff pastry works beautifully too for a lighter texture.
What you'll achieve is a pie with a crisp golden crust, tender yet slightly caramelized onions, and a rich, cheesy filling that's neither too heavy nor too light. The aroma alone will have everyone gathering around the table, and each bite delivers that satisfying contrast of textures and flavors.
Serve it warm with a crisp green salad or tangy pickles to cut through the richness. This pie is perfect for lunch gatherings, dinner parties, or even a comforting weeknight meal. Let's get baking!
Ingredients for cheese and onion pie recipe mary berry
Mary Berry's signature ingredients transform into a velvety, golden cheese and onion pie with perfect texture balance.
| Ingredient | Amount | Notes |
|---|---|---|
| Shortcrust Pastry Sheets 🥧 | 2 sheets | Store-bought or homemade, thawed if frozen |
| Yellow Onions 🧅 | 3 large | Thinly sliced, caramelized |
| Sharp Cheddar Cheese 🧀 | 1 ½ cups | Grated, matured variety preferred |
| Dijon Mustard 🍯 | 1 tbsp | For depth of flavor |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Unsalted Butter 🧈 | ½ cup | Cold, cubed for pastry |
| All-Purpose Flour 🌾 | 1 cup | Plus 1 tbsp for dusting |
| Ice Water 💧 | ¼ cup | For pastry binding |
| Salt 🧂 | ½ tsp | Fine sea salt preferred |
| Black Pepper 🌶️ | ¼ tsp | Freshly cracked |
| Fresh Thyme Leaves 🌿 | 1 tbsp | Chopped, optional garnish |
| Egg Wash 🥚 | 1 whole | 1 egg beaten with 1 tsp water |
The onions are non-negotiable for this pie—Mary Berry's version relies on their sweet, jammy depth. Look for yellow onions with dry skins, as they caramelize more evenly. Waitrose or M&S often carry premium British onions that excel here. If you're short on time, pre-sliced onions from the freezer section work in a pinch, but fresh is ideal. For extra richness, some cooks add a splash of dry sherry to the onions while caramelizing, though it's optional. The cheese should be sharp cheddar with visible crystals—none of that pre-shredded stuff, which melts poorly.
No shortcrust pastry on hand? Puff pastry works beautifully for a lighter crust, though it requires slightly less handling. Substituting cream? Half-and-half or whole milk thins the filling, but you'll need to reduce it longer. The mustard is key—Dijon mustard adds complexity, while American yellow mustard works in a bind. For a vegetarian twist, swap the thyme for fresh chives or parsley. If your onions burn while caramelizing, reduce the heat to low and keep stirring. And if you're prepping ahead, the filling can be made one day in advance—just reheat gently before baking.
This pie keeps beautifully for 3 days in the fridge when fully cooled, though it's best enjoyed within 2 days for peak texture. For longer storage, wrap tightly in parchment and foil and freeze for up to 3 months. Reheat slices in a 350°F oven for 10-15 minutes to restore crispness. The pastry reheats best when wrapped in foil first to prevent drying. Leftover filling? Use it for cheesy onion quiches or stuffed baked potatoes—it's even more delicious the second time around.
Why You'll Love This Recipe
- Minimal Chopping Required: I swear by this recipe when I’m too tired to julienne onions—just slice them thick, caramelize them slowly, and let the sharp cheddar melt into that sweet, jammy goodness. The pastry sheets cut the work in half, and honestly? Nobody notices if they’re not perfectly even.
- Creamy Crispy Magic: That layer of heavy cream and Dijon mustard under the cheese? It’s the secret weapon. The mustard adds a tangy depth, while the cream makes the filling silky instead of dry. The moment the pastry turns golden and the cheese pulls into strings? Pure satisfaction.
- Weeknight Dinner or Potluck Star: Between us, this pie is my go-to for lazy nights and Sunday suppers. Serve it warm with a crisp green salad for a no-fuss dinner, or slice it cold for a picnic—it’s just as good either way. My in-laws even asked for the recipe after one bite. (Yes, even on a Tuesday night.)
- Leftovers That Don’t Suck: Most pies turn into sad, soggy leftovers, but not this one. The shortcrust holds up, the cheese stays melty (not rubbery), and the onions keep their caramelized punch. I’ve reheated slices in the oven for days, and they’re still the star of my lunchbox. Budget-friendly? Absolutely. Reliable? Even more so.
Step-by-step instructions for cheese and onion pie
Mary Berry's signature savory tart delivers buttery layers and caramelized onions every time.
👨🍳 Step 1: Prepare the Caramelized Onion Filling
In a large skillet, melt the 0.5 cup unsalted butter over medium-low heat. Add the 3 large yellow onions, sliced into even strips, and cook for 30-40 minutes until deeply golden brown and sweet-smelling. Stir occasionally and add a splash of water if they stick too much.
This slow cooking transforms the onions into a rich, jam-like consistency that forms the heart of the pie. You'll know they're ready when they've reduced to about 1 cup of caramelized mixture and have a deep amber color. Season with 0.5 tsp salt and 0.25 tsp black pepper while still warm, allowing the flavors to meld completely.
🍳 Step 2: Assemble the Filling Mixture
In a medium bowl, combine the caramelized onions with the 1.5 cups sharp cheddar cheese, 0.5 cup heavy cream, 1 tbsp Dijon mustard, and 1 tbsp fresh thyme leaves. Mix thoroughly until the cheese is fully melted and the filling has a smooth, creamy texture.
I like to press the mixture through a fine-mesh sieve to eliminate any large onion pieces—this creates an ultra-smooth filling that's easier to work with when assembling. The Dijon mustard adds subtle depth while the thyme brightens the rich cheese flavors. Let the mixture cool slightly before using to prevent steam buildup when baking.
🥘 Step 3: Prepare the Pastry Base
Preheat your oven to 375°F. Roll out one of the shortcrust pastry sheets on a lightly floured surface to fit a 9-inch pie dish, leaving a ½-inch overhang on all sides. Press it gently into the dish, then trim the excess with a sharp knife, leaving the overhang intact.
In a small bowl, combine the 1 cup all-purpose flour, 0.25 cup ice water, and remaining 0.5 tsp salt. Mix until just combined—this forms a simple pastry repair mix for the top crust. Chill the pie dish with the base while you prepare the filling to prevent shrinking during assembly.
🍳 Step 4: Fill and Crimp the Pie
Spread the onion-cheese filling evenly into the prepared pie shell, leaving a ½-inch border at the edges. Roll out the second shortcrust pastry sheet to match the bottom crust's dimensions, then carefully lift it and place it over the filling.
Trim both crusts to match perfectly, then use your fingers to press the edges together firmly. Create a decorative crimp by pinching the edges with a fork or your fingertips. Brush both crusts generously with the 1 whole egg wash, then sprinkle additional 0.25 tsp black pepper and 1 tbsp chopped fresh thyme over the top for extra flavor.
🔥 Step 5: Bake to Golden Perfection
Place the pie on a parchment-lined baking sheet to catch any drips, then bake for 35-40 minutes until the pastry is deep golden brown and the filling is bubbling gently at the edges. If the top crust browns too quickly, loosely cover it with aluminum foil.
Remove from the oven and let rest for 15 minutes before slicing—this allows the filling to set slightly and prevents a runny center. The pie should have a crisp, flaky crust with a creamy, caramelized onion filling that's rich but not overly heavy. Serve warm with a simple green salad for a perfect savory meal.
Pro Tips For Making Cheese And Onion Pie Recipe Mary Berry
- Sweat, Don’t Sear: Onions for this pie need to be soft and golden, not crispy or burnt. Cook them on medium-low heat with a splash of water or cream—just enough to keep them moist—until they’re almost falling apart. I learned this the hard way when mine turned into onion jerky by accident.
- Grate, Don’t Chop: Sharp cheddar loses its texture when melted if it’s not prepped right. Grate it yourself (the finer, the better) and pat it dry with a paper towel to remove excess moisture. Pre-shredded cheese has anti-caking agents that make the filling gummy—trust me, it’s noticeable.
- Blind-Bake the Crust: Skip the soggy bottom by pre-baking the pastry with pie weights or dried beans for 15 minutes at 190°C (375°F). Then, brush the base with a little cream before adding the filling—it creates a barrier and makes the crust crispy, not doughy. (Yes, even if you’re impatient like me.)
- Mustard Last, Not First: Mix the Dijon mustard into the cream after the onions have cooked down, not before. This keeps its sharpness from turning bitter and lets it bloom into the filling properly. I was skeptical until I tried it—now it’s non-negotiable for the right tang.
Make-ahead tips for this recipe
Filling Prep Ahead
The caramelized onion filling is the star of this pie, and you can make it up to 2 days in advance.
Store it in an airtight container in the fridge, and when ready to bake, simply reheat it gently in a saucepan over low heat for 5-10 minutes, stirring occasionally until warmed through. This step saves you 40 minutes of cooking time on pie day. 💡
Pastry Assembly Shortcuts
If rolling out pastry feels intimidating, use store-bought puff pastry instead of shortcrust—it’s more forgiving and creates a lighter texture. Simply roll it out, fit it into your pie dish, and let the filling do the work.
For extra stability, chill the assembled pie (unbaked) in the fridge for 30 minutes before baking to prevent shrinking. 🥧
Freezing Fully Assembled
For ultimate convenience, assemble the pie completely (including egg wash) and freeze it unbaked. Wrap tightly in plastic wrap followed by aluminum foil to prevent freezer burn. When ready to bake, thaw in the fridge overnight, then bake as directed—just add 5-10 minutes to the baking time.
This method preserves the pastry’s flakiness perfectly. ❄️
Make-Ahead Serving
If you’re prepping for a gathering, bake the pie 1 day ahead and store it at room temperature in an airtight container. Reheat slices in a 350°F oven for 10 minutes to restore crispness.
For a restaurant-style presentation, garnish with extra chopped thyme and a sprinkle of flaky sea salt right before serving. 💫
Portion Control
To simplify serving, divide the filling into 6 equal portions in a muffin tin before assembling. This ensures consistent slices and makes reheating individual portions effortless. For a single-serving twist, use 6-inch tart pans instead of a pie dish—each mini pie bakes in 25-30 minutes and reheats beautifully. 🍽️
Nutrition facts
Frequently asked questions
Can I use pre-made pie crust instead of homemade shortcrust?
Mary Berry's recipe works beautifully with store-bought shortcrust or even puff pastry for a lighter texture. Just ensure it's fully thawed if frozen, and chill the assembled pie for 30 minutes before baking to prevent shrinking. Pre-made crusts save time while maintaining that classic golden finish.
What if my onions burn while caramelizing?
Reduce the heat to low and keep stirring frequently. If they start to brown too quickly, add a splash of water to deglaze the pan. The onions should cook for 30-40 minutes until deeply golden but not crispy. Patience is key—they'll transform into sweet, jammy perfection.
Can I make this pie ahead of time?
Yes! The filling can be made 2 days ahead and stored in an airtight container. For the full pie, assemble it completely (including egg wash), wrap tightly in plastic and foil, then freeze for up to 3 months. Thaw overnight in the fridge before baking—just add 5-10 minutes to the baking time.
What's the best cheese substitute if I don't have sharp cheddar?
Try Gruyère or Comté for a nutty depth, or Parmesan mixed with mild cheddar for extra umami. Avoid pre-shredded cheese—it contains anti-caking agents that prevent proper melting. If using a different cheese, adjust the amount to maintain the 1.5 cups total for balanced flavor.
How do I prevent a soggy bottom crust?
Pre-bake the bottom crust for 5 minutes at 375°F before adding filling, or sprinkle 1 tbsp crushed cornflakes or breadcrumbs on the base. Chilling the assembled pie in the fridge for 30 minutes before baking also helps. For extra insurance, place a baking sheet under the pie dish to catch drips.
