Desserts
Mary Berry's cheese and onion pie delivers the perfect balance of golden, flaky pastry and a rich, savory filling that's impossible to resist. This timeless British classic combines tender onions, sharp cheddar, and a buttery crust that achieves that signature blistered, caramelized finish.
I've refined this recipe to ensure every layer—from the crisp bottom to the tender top—comes together flawlessly, just like Mary would make it.
The secret lies in the two-step baking process: first blind-baking the pastry to create a sturdy base, then brushing it with egg wash for that signature glossy, golden finish.
The filling requires patience—slow-cooking the onions until they're deeply caramelized and tender, then mixing them with grated cheese for maximum flavor infusion. This isn't just a pie; it's a showstopper that transforms any gathering into a cozy, comforting experience.
What you'll end up with is a pie that's crisp at the edges, tender in the middle, with a filling so rich and flavorful it disappears in seconds.
The aroma alone will have everyone gathering around the table, and the first bite delivers that perfect harmony of sharp cheddar, sweet onions, and buttery pastry. It's the kind of dish that feels like a hug in food form—warm, comforting, and utterly satisfying.
Perfect for Sunday lunches, holiday gatherings, or when you simply crave something that tastes like home. The recipe scales beautifully, so you can make it for a crowd or enjoy a personal-sized portion.
Let's get started on creating this British classic that's as much about tradition as it is about taste.
Ingredients for cheese and onion pie recipe mary berry
Six ingredients for the perfect crust, six more for that melty, caramelized filling—Mary Berry's magic in every bite.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 3 cups | Plus 2 tbsp for dusting |
| Unsalted Butter 🧈 | 1 ½ cups | Cold, cubed for pastry |
| Yellow Onions 🧅 | 4 large | Thinly sliced for caramelization |
| Sharp Cheddar Cheese 🧀 | 2 cups | Freshly grated from block |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Large Eggs 🥚 | 1 whole | For egg wash |
| Milk 🥛 | 2 tbsp | For pastry binding |
| Ice Water 💧 | 4 tbsp | For pastry handling |
| Salt 🧂 | 1 ½ tsp | Fine sea salt preferred |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly cracked |
| Granulated Sugar 🍚 | 1 tbsp | For caramelizing onions |
| Allspice Berries 🌿 | ¼ tsp | Crushed for warmth |
The onions are non-negotiable—yellows caramelize best, and you want them sweet and tender. Sainsbury's or Waitrose have the best quality in the UK, but any fresh, firm onions work. I like to slice mine 1/8-inch thick—thinner means faster cooking, but thicker gives more depth. For the cheese, sharp cheddar is essential—none of that pre-shredded stuff. The crumbly kind melts better and tastes fresher. If you're in the US, Cabot or Sharp Cheddar from the deli section is your best bet. And don't skip the allspice—it's what gives that classic British warmth to the filling.
No sharp cheddar? Gruyère or mature cheddar will work, but the flavor won't be quite the same. Running short on heavy cream? Half-and-half with an extra tablespoon of butter gets you close. The pastry's the star here, so if you're using store-bought, Puff Pastry from the freezer aisle (like Holland & Barrett) cuts corners without sacrificing quality. For the onions, if they start browning too fast, add a splash of water—just enough to deglaze, not drown them. And trust me on the sugar—it's not just for sweetness. It helps caramelize those onions into golden perfection. Pre-shredded cheese? Toss it. It's full of anti-caking agents that make the filling grainy.
The pastry dough needs to rest 30 minutes before rolling—don't skip this. The onions keep for 3 days in the fridge if you make them ahead, but the filling should go straight into the pie. For the crust, brush it with egg wash twice—once before baking, once after. This pie reheats beautifully—just 350°F for 15 minutes to crisp up the edges. And leftovers? They're even better the next day, so make a double batch if you can. Store the filling separately if you're not baking it right away—the crust stays crispy longer that way.
Why You'll Love This Recipe
- No-Fuss Dough: I swear by that cold butter method—just cut it into flour until it resembles breadcrumbs. No food processor, no stress, and the crust turns out flaky enough to make you forget you didn’t spend hours on it.
- Caramelized Crunch: That slow-cooked onion layer? Chef’s kiss. The onions melt into sweet, golden ribbons while the sharp cheddar melts into them, creating a texture that’s crisp on top but creamy underneath—like a hug from a pie.
- Leftover Goldmine: Between us, this pie tastes better the next day. The flavors meld overnight, and those crispy edges soften just enough to make it the ultimate lunchbox filler or quick dinner reheated in the microwave.
- Budget Buster: Sharp cheddar and heavy cream might sound fancy, but this pie costs me less than takeout for four. Plus, onions and flour stretch a long way—perfect when your wallet’s feeling picky but your family isn’t.
Step-by-step instructions for Mary Berry's cheese and onion pie
Here's how to create the perfect flaky crust and rich, caramelized filling that makes this pie legendary.
Prepare the Caramelized Onion Filling
In a large skillet, melt 1.5 cups of the cold, cubed unsalted butter over medium-low heat. Add the 4 large yellow onions, sliced into even ¼-inch strips, and sprinkle with 1 tablespoon granulated sugar and 1.5 teaspoons salt. This sweet-salty combination is key to developing deep caramelization.
Cook the onions for 25-30 minutes, stirring occasionally, until they're deep golden brown and tender. You'll know they're ready when they're almost jam-like in texture and smell heavenly. If they stick, add a splash of water and scrape up those flavorful browned bits from the bottom of the pan. Let the onions cool slightly before proceeding.
While the onions cook, preheat your oven to 375°F. This temperature will give you a golden crust and perfectly melted cheese filling. I like to preheat early so everything's ready when the filling is done.
Make the Perfect Pastry Dough
In a large bowl, combine the 3 cups all-purpose flour with 0.5 teaspoon ground black pepper and 0.25 teaspoon crushed allspice berries. Cut in the remaining 1.5 cups cold cubed butter using a pastry cutter or your fingers until the mixture resembles coarse crumbs with pea-sized butter pieces.
Add the 2 tablespoons milk and 4 tablespoons ice water, mixing gently just until the dough comes together. Be careful not to overwork it—this creates tough pastry. Turn the dough onto a lightly floured surface and knead briefly until smooth. Divide into two equal pieces, wrap in plastic, and chill for 30 minutes.
This chilling step is crucial. It prevents the butter from melting during rolling, which would make your crust soggy. I always set a timer so I don't forget this important resting period.
Assemble the Pie with Precision
Roll out one dough piece to fit a 9-inch pie dish, leaving a ½-inch overhang all around. Line the dish with the pastry, pressing gently to shape it to the bottom. Trim the edges, leaving the overhang intact. Fill with the cooled caramelized onions, spreading them evenly.
In a separate bowl, whisk together the 2 cups sharp cheddar cheese, 0.5 cup heavy cream, and 1 whole large egg. Pour this mixture over the onions, spreading it evenly to the edges. The cheese should melt beautifully into the onions, creating that signature creamy texture.
Roll out the second dough piece and place it over the filling. Trim both top and bottom crusts to create a clean edge. Use a fork to crimp the edges together, creating that classic pie crust pattern. Cut a few slits in the top crust to allow steam to escape.
Blind-Bake the Bottom Crust
Place the pie on a baking sheet lined with parchment paper. Blind-bake the bottom crust for 12-15 minutes at 375°F until it's lightly golden. This step prevents a soggy bottom. While it bakes, prepare an egg wash by beating the remaining 1 whole large egg with 1 tablespoon milk.
Remove the pie from the oven and carefully pour the filling back into the crust. Brush the top crust with the egg wash for a beautiful golden finish. Place the pie back in the oven and bake for an additional 35-40 minutes until the crust is deep golden brown and the filling is bubbling.
This baking time might seem long, but it's essential for achieving that perfect texture—crispy crust with creamy, melted cheese. If the top browns too quickly, tent it with foil to prevent burning.
Rest and Serve for Maximum Enjoyment
Remove the pie from the oven and let it cool for 15-20 minutes before slicing. This resting period allows the filling to set slightly, making it easier to slice cleanly. The contrast between the crispy, flaky crust and the creamy, caramelized filling is what makes this pie truly special.
Serve warm with a simple green salad or crusty bread. Each slice should reveal layers of golden crust, tender onions, and melted cheese that practically oozes with flavor. This is the kind of pie that disappears quickly—so make sure you've got enough for seconds!
Pro Tips For Making Cheese And Onion Pie Recipe Mary Berry
- Sweat Onions Low: Use a wide pan and keep the heat at a steady simmer—not too high, or they’ll caramelize into burnt bits. I learned this the hard way after ruining a batch where the onions turned bitter; now I just let them melt down for 15 minutes until they’re translucent and soft.
- Chill the Dough: Wrap the pastry in plastic and refrigerate it for at least 30 minutes before rolling. Cold butter in the dough prevents it from shrinking or tearing when you handle it—Mary Berry’s recipe relies on a crisp, even crust, and skipping this step risks a soggy bottom.
- Grate Cheese Fresh: Don’t use pre-shredded cheese—it’s coated with anti-caking agents that make the filling gummy. Instead, grate sharp cheddar yourself and mix it into the cream while still cold; this keeps the texture smooth and prevents clumping in the oven.
- Blind-Bake the Crust: Cover the pastry shell with parchment, fill it with pie weights or dried beans, and bake for 10 minutes before adding the filling. This pre-baking step guarantees the base stays crisp instead of absorbing moisture from the onions and cream—trust me, your future self will notice the difference.
Flavor customization for this recipe
Sweet-Savory Balance
Adjust the sweetness in your filling by playing with the sugar. For a more pronounced caramelized flavor, increase to 2 tablespoons sugar—this works especially well if you prefer your onions extra jammy.
If you find the sweetness overwhelming, reduce to ½ tablespoon and add ¼ teaspoon extra salt to enhance the savory notes. I often test the onions mid-cook: if they're browning too quickly, a splash of water keeps them tender without losing flavor. 🍚
Cheese Variations
Swap the sharp cheddar for Gruyère or Comté for a richer, nuttier depth—these melt beautifully and add complexity. For a vegetarian twist, mix in ½ cup crumbled blue cheese (like Stilton) for a tangy kick.
If you're avoiding dairy, nutritional yeast (¼ cup) mimics the umami richness, though the texture will differ slightly. Always grate cheese fresh—pre-shredded varieties contain anti-caking agents that make the filling grainy.
Spice It Up
Add warmth with ½ teaspoon smoked paprika or ¼ teaspoon cayenne pepper for a subtle heat. For a British pub-style twist, sprinkle 1 teaspoon English mustard powder into the filling—it brightens the flavors without overpowering.
I love adding ½ teaspoon dried thyme to the onions for an earthy note that pairs perfectly with the cheese. If you're feeling adventurous, a pinch of ground coriander adds a citrusy brightness that cuts through the richness. 🌶️
Herb Infusions
Fresh herbs elevate this pie to restaurant-quality. Fold in 2 tablespoons chopped chives or 1 tablespoon fresh parsley into the filling just before baking for a pop of color and freshness. For a more robust flavor, add 1 tablespoon chopped sage while caramelizing the onions—it pairs beautifully with the allspice.
If you're using dried herbs, reduce to ½ teaspoon since they're more concentrated. Herbs like thyme or rosemary can also be sprinkled on top of the pie before baking for an aromatic finish.
Crust Enhancements
For a flakier crust, add 1 tablespoon cornstarch to the flour—it creates delicate layers that melt in your mouth. If you prefer a crispier bottom, blind-bake the crust for an extra 5 minutes before adding the filling.
For a savory twist, brush the pre-baked crust with 1 tablespoon garlic-infused olive oil before adding the onions. I also love sprinkling ½ teaspoon onion powder into the dough for an extra layer of flavor that ties into the filling. 🧈
Make-Ahead Adjustments
If prepping ahead, caramelize the onions and assemble the pie up to 24 hours in advance, then refrigerate. Before baking, let it sit at room temperature for 30 minutes to prevent condensation.
For a quicker version, use ½ cup frozen caramelized onions (thawed) and reduce cooking time by 5 minutes. If reheating, cover with foil and bake at 350°F for 15 minutes to restore crispness.
The filling can also be made ahead and stored separately—just reheat gently before assembling the pie. ⏰
Nutrition facts
Frequently asked questions
Can I use store-bought pastry instead of homemade dough?
For convenience, use 2 sheets of puff pastry—one for the base and one for the top. Brush the bottom layer with egg wash, add your filling, then cover with the top sheet. Crimp the edges with a fork and cut slits for steam. Bake at 375°F for 30-35 minutes until golden. The texture will be slightly different but still delicious.
How do I prevent a soggy bottom crust?
Blind-bake the bottom crust for 12-15 minutes before adding the filling. Place parchment paper and pie weights (or dried beans) on top to prevent puffing. This creates a sturdy base that won’t absorb moisture from the filling. For extra insurance, chill the assembled pie for 15 minutes before baking.
What’s the best way to reheat leftovers?
Wrap slices in foil and reheat at 350°F for 10-12 minutes until the crust is crispy again. For a quicker method, pop them in a 375°F oven for 5-7 minutes—just watch closely to avoid over-browning. Leftovers keep well for 3 days in the fridge or 3 months in the freezer.
Can I make this pie ahead of time?
Yes! Assemble the pie (unbaked) and refrigerate for up to 24 hours. Let it sit at room temperature for 30 minutes before baking to prevent condensation. For the filling, caramelized onions can be made 3 days ahead and stored in the fridge. Reheat gently before using. This makes it perfect for holiday gatherings!
Why did my onions burn before caramelizing?
This happens when cooking too hot or with too little sugar. Reduce heat to medium-low and add 1 tablespoon sugar to help break down the natural sugars. If they brown too quickly, add a splash of water to deglaze and keep them tender. Stir occasionally to prevent sticking.
