Desserts
Mary Berry's cheese and onion pie delivers the perfect balance of crisp golden pastry and creamy, savory filling that's become a British classic. This recipe captures the essence of her signature technique—layering tender onions with sharp cheddar in a buttery crust that bakes to golden perfection.
The secret lies in slow-cooking the onions until they're caramelized and sweet, which forms the rich foundation for the melty cheese filling.
What makes this recipe truly special is its approachability—you don't need advanced pastry skills to achieve professional results. The shortcrust pastry is straightforward to prepare, while the filling comes together in just a few minutes of assembly.
Mary Berry's method ensures the pie has a delicate, tender texture rather than a heavy, soggy one, making it ideal for both special occasions and comforting weeknight dinners.
The result is a pie with a crisp, flaky crust that gives way to a velvety filling of caramelized onions and sharp cheddar, all held together by a light cream sauce.
Each slice reveals layers of flavor—sweet onions, salty cheese, and buttery pastry—that make this dish irresistibly comforting. The aroma alone will have everyone gathering around your table, eager for a taste.
Perfect for lunch gatherings, dinner parties, or even a comforting solo meal, this cheese and onion pie is a timeless favorite that never fails to impress. The recipe includes tips for achieving the perfect texture and shortcuts for busy cooks, ensuring you can enjoy this classic dish without stress.
Let's get started on creating your own masterpiece.
Ingredients for cheese and onion pie recipe mary berry
Six ingredients for the perfect pastry plus seven for the velvety filling—Mary Berry's magic in every bite.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Plus 2 tbsp for dusting |
| Cold Unsalted Butter 🧈 | 1 cup | Cut into cubes, full-fat preferred |
| Granulated Sugar 🍚 | ¼ cup | For pastry sweetness |
| Ice Water 💧 | ¼ cup | For pastry binding |
| Yellow Onions 🧅 | 4 large | Peeled, sliced thin |
| Salted Butter 🧈 | 3 tbsp | For onion caramelizing |
| Sharp Cheddar Cheese 🧀 | 1 ½ cups | Grated, matured variety |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Whole Milk 🥛 | ¼ cup | For creaminess |
| All-Purpose Flour 🌾 | 1 tbsp | For sauce thickening |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly ground preferred |
| Egg 🥚 | 1 whole | For egg wash |
| Diamond Crystal Kosher Salt 🧂 | 1 tsp | For pastry and filling |
The onions are non-negotiable here. Mary Berry swears by yellow onions for that sweet caramelization—red or white just won't cut it. Look for firm, dry bulbs with no sprouts. Waitrose or M&S have the best quality in the UK, but any good grocery store works. Thinly slice them—almost translucent—and cook low and slow until golden. That's where all the magic happens. Pro tip: Don't rush this step. The longer you cook them, the sweeter and more complex the flavor becomes. I've seen people use onion soup mix as a shortcut, but trust me—fresh onions are worth the time.
No sharp cheddar? Red Leicester or mature cheddar works too—just make sure it's aged at least 6 months. Heavy cream too expensive? Half-and-half plus a splash of milk keeps it creamy. The pastry needs to be cold when you handle it—pop it in the fridge for 30 minutes before rolling. And that egg wash? Beat the egg with a pinch of salt for extra shine. The flour you use matters too—strong white flour gives the best texture, but all-purpose works in a pinch. Just don't overwork the dough or you'll end up with tough pastry.
This pie tastes even better the next day—make it ahead and reheat at 350°F for 15 minutes. Store leftovers in an airtight container for up to 3 days. The filling freezes beautifully too—just reheat gently in the oven. I always make a double batch because it disappears faster than you can say 'Mary Berry'. The secret to reheating? Loosely cover with foil so the top doesn't dry out. And if you're feeling fancy, a sprinkle of grated Parmesan on top before baking adds another layer of flavor.
Why You'll Love This Recipe
- No-Fuss Dough: I swear by that cold butter cut into flour—it’s the secret to a flaky crust without overworking. Five minutes of mixing, a quick chill, and you’re golden. (Yes, even if your kitchen’s warmer than a summer pie sale.)
- Onion Magic: That sweet, caramelized onion filling? It’s the star. Thinly slice them, slow-cook until sticky, and layer them with sharp cheddar—every bite’s got that perfect balance of sharp and sweet. (My husband still steals slices straight from the pan.)
- Weeknight Hero: Make it for dinner, pack leftovers for lunch, or freeze slices for lazy days. The crust holds up, the cheese stays melty, and it’s ready in under an hour. (No sad takeout menus here.)
- Budget Win: Flour, butter, onions, cheese—these are pantry staples. You’ll spend less than a fancy restaurant meal, but the flavor? Ridiculously good. (My wallet thanks me every time.)
Step-by-step instructions for Mary Berry's cheese and onion pie
Here's how to create a golden crust and irresistible melty filling just like Mary Berry's classic.
Make the Perfect Pastry Base
First, cut the 1 cup cold unsalted butter into small cubes and place them in the freezer for 10 minutes to keep them firm. In a large bowl, combine the 2.5 cups all-purpose flour (plus the extra 2 tbsp for dusting) with the 0.25 cup granulated sugar and 1 tsp diamond crystal kosher salt. Rub the cold butter cubes into the flour mixture using your fingertips until the mixture resembles coarse breadcrumbs with some pea-sized butter pieces remaining.
Next, gradually add the 0.25 cup ice water, 1 tablespoon at a time, mixing gently with a fork until the dough just comes together. Be careful not to overwork it—just until it forms a rough ball. Shape the dough into a disk, wrap it in plastic wrap, and chill in the refrigerator for 30 minutes. This resting time is crucial for a flaky crust.
Caramelize the Onions for Sweet Depth
While the dough chills, heat 3 tbsp salted butter in a large skillet over medium heat. Add the 4 large yellow onions, sliced thinly, and cook them slowly, stirring occasionally. This step is all about patience—the onions need to caramelize, which takes about 25-30 minutes. You'll know they're ready when they're deep golden brown and sweet-smelling.
Once caramelized, transfer the onions to a plate and let them cool slightly. This prevents excess moisture in your filling, which could make the crust soggy. Keep the skillet warm for the next step—those flavorful browned bits are pure gold.
Prepare the Creamy Cheese Filling
In the same skillet (with those precious browned bits), melt the remaining butter if needed, then stir in the 1 tbsp all-purpose flour to make a roux. Cook for 1-2 minutes until lightly golden, then gradually whisk in the 0.5 cup heavy cream and 0.25 cup whole milk until smooth. Let the mixture simmer gently for 3-4 minutes until it begins to thicken.
Remove the skillet from heat and stir in the 1.5 cups sharp cheddar cheese, breaking it up into small pieces as it melts into the sauce. Season generously with 0.5 tsp ground black pepper, then fold in the caramelized onions. The filling should be rich, creamy, and just thick enough to coat the back of a spoon. Taste and adjust seasoning if needed—Mary Berry's version is always perfectly balanced.
Assemble and Bake the Pie
Preheat your oven to 375°F. Roll out the chilled pastry dough on a lightly floured surface to fit a 9-inch pie dish, leaving a ½-inch overhang all around. Transfer the dough to the pie dish and trim the edges, leaving about ½ inch extra. Fold the overhang under itself to create a neat, decorative edge.
Pour the cheese and onion filling into the pastry shell, spreading it evenly. In a small bowl, beat the 1 whole egg with a splash of water to make an egg wash. Brush this generously over the pastry edges and any exposed dough. This ensures a beautiful golden finish. Bake for 40-45 minutes until the pastry is deep golden brown and the filling is bubbling.
Finish and Serve with Confidence
Remove the pie from the oven and let it rest for 10 minutes before serving. This resting period allows the filling to set slightly, making it easier to slice without losing its shape. The crust should be crisp and flaky, while the filling remains gloriously gooey with pockets of melted cheese.
Slice into wedges and serve warm—each bite should deliver that perfect balance of sweet caramelized onions, sharp cheddar, and buttery pastry. The key to Mary Berry's version is in the details: slow caramelization, proper pastry handling, and that golden egg wash finish. Trust the process, and you'll have a pie that rivals the best bakery creations.
Pro Tips For Making Cheese And Onion Pie Recipe Mary Berry
- CHILL THE BUTTER FIRST: Mary Berry’s recipe relies on cold butter for that signature flaky crust, but I learned this the hard way—room-temperature butter makes a tough, greasy mess. Pop those cubes in the freezer for 10 minutes before cutting, and don’t skip the ice water when mixing. The dough will handle better, and you won’t end up with a sad, dense bottom.
- CARAMELIZE THE ONIONS LOW: Skip the high-heat rush—slow-cook those onions for at least 20 minutes until deep golden and almost jammy. I used to walk away after 10, but the flavor falls flat without that sweet, concentrated depth. A splash of water or stock halfway helps, but don’t overdo it—you want texture, not soup.
- WEIGH THE FLOUR DON’T SCOOP: Scooping flour straight from the bag packs it too tightly, and your crust will turn out heavier than intended. Use a kitchen scale for precision—Mary Berry’s recipe is fussy about ratios. If you’re in a pinch, spoon flour into a measuring cup, then level it off, but don’t tap it. Trust me, the difference is noticeable.
- PRESS THE CRUST EVENLY: Uneven pressure = uneven baking. Press the dough into the pie tin with your fingertips, not your palms, and keep it about ½-inch thick all over. I used to slap it in and wonder why some spots stayed pale. A rolling pin helps, but your hands give better control—just don’t overwork the dough after pressing.
Creative variations of this cheese and onion pie recipe mary berry
Classic British Twist
For an authentic British touch, swap the sharp cheddar for a mix of Red Leicester and mature cheddar—this combo gives that signature British pub pie flavor. I like adding 1 tbsp English mustard to the filling for a subtle tang, just like Mary Berry might.
Serve with a side of pickled onions and a crisp English mustard sauce for the full experience. 🇬🇧
Spicy Kick Variation
Add ½ tsp smoked paprika and ¼ tsp cayenne pepper to the filling for a smoky, slightly spicy twist. I also fold in ½ cup cooked chorizo, crumbled, for extra depth.
This version works beautifully with a puff pastry crust instead of shortcrust for a flakier texture. Garnish with fresh chives before baking for a pop of color.
Vegetarian-Friendly Upgrade
For a richer vegetarian version, replace half the cheddar with smoked Gouda or Gruyère—these cheeses add a nutty depth. I also stir in ½ cup cooked wild mushrooms (like cremini or shiitake) with the onions for an umami boost.
A sprinkle of nutmeg in the filling elevates the dish to restaurant-quality without meat.
Sweet & Savory Fusion
Add 1 tbsp honey or maple syrup to the caramelized onions for a subtle sweetness that balances the sharp cheese. Top the pie with a thin layer of puff pastry before baking for extra flakiness. This version pairs perfectly with a sparkling apple cider for a dessert-like twist. 🍯
Gluten-Free Adaptation
Use a gluten-free shortcrust pastry mix (like Schär) for the crust and thicken the filling with cornstarch instead of flour. For extra richness, stir in ½ cup crumbled feta with the cheddar.
This version keeps all the flavor while being safe for gluten-sensitive guests. Always check labels—Bob's Red Mill gluten-free flour works well too.
Make-Ahead Shortcut
Prep the filling and crust separately, then assemble just before baking. Store the dough and filling in airtight containers in the fridge for up to 2 days. For a quick version, use store-bought puff pastry and skip the homemade crust.
I love adding ½ cup cooked lentils to the filling for extra protein—it makes this pie even heartier for meal prep. 💡
Nutrition facts
Frequently asked questions
Can I use puff pastry instead of shortcrust for this recipe?
Yes, puff pastry works beautifully! For a flakier texture, use 1 sheet of store-bought puff pastry instead of the shortcrust. Line a 9-inch pie dish with the pastry, trim edges, and fill as directed. Bake at 375°F for 30-35 minutes until golden. The result is extra crispy layers that pair perfectly with the creamy filling.
Why did my crust turn out soggy?
Soggy crusts usually happen from excess moisture in the filling. Always cool caramelized onions completely before mixing with cheese, and avoid overmixing the filling. Pre-bake the crust for 10 minutes at 375°F before adding filling to create a barrier. For extra insurance, sprinkle ½ cup crushed cornflakes between crust and filling.
What's the best way to reheat leftovers?
Reheat slices in a 350°F oven for 10-15 minutes covered loosely with foil to prevent drying. For microwave quickness, use 30-second bursts on medium power, then cover with a damp paper towel. The filling should be warm through but not rubbery. This pie actually tastes better reheated—Mary Berry's secret!
Can I make this pie ahead of time?
Assemble the pie (unbaked) and refrigerate for up to 24 hours. Bake straight from cold, adding 5-10 extra minutes to the baking time. For best results, freeze the unbaked pie for up to 1 month—thaw overnight in the fridge before baking. The flavors develop beautifully overnight, making it perfect for holiday gatherings.
What cheese works best if I don't have sharp cheddar?
For authentic flavor, use Red Leicester or mature cheddar (aged 6+ months). Other good substitutes: Gruyère (nutty), Emmental (mild), or a mix of mozzarella and Parmesan (for creaminess). Avoid pre-shredded cheese—it contains anti-caking agents that make the filling grainy. Always grate fresh for best texture.
