Desserts
Mary Berry's cheese and onion pie recipe delivers that perfect balance of buttery pastry, caramelized onions, and sharp cheddar—every layer rich and satisfying. This classic British pie transforms humble ingredients into something extraordinary, with a golden crust that flakes perfectly and a filling that melts in your mouth.
The secret lies in slow-cooking the onions until they're deep amber and tender, then layering them with cheese for that signature savory punch.
What sets this recipe apart is Mary Berry's signature technique: a well-blinded pastry case that stays crisp while the filling bakes to golden perfection. The onions caramelize slowly in butter and cream, developing layers of sweetness that contrast beautifully with the sharp cheddar.
Each bite combines the buttery richness of the pastry with the complex flavors of the filling—a true comfort food masterpiece.
The result is a pie that looks as impressive as it tastes, with a lattice crust that adds texture without overwhelming the filling. The onions become almost jam-like in their sweetness, while the cheese melts into creamy strands that hold the pie together.
This is the kind of dish that feels like a hug from your favorite grandmother—warm, comforting, and impossible to resist.
Perfect for family gatherings or a cozy weeknight dinner, this pie reheats beautifully and tastes even better the next day. The combination of textures and flavors makes it a standout centerpiece for any meal. Let's create this classic British favorite that brings warmth to every table.
Ingredients for cheese and onion pie recipe mary berry
Buttery pastry, caramelized onions, and sharp cheddar—these are the stars of Mary Berry's iconic pie.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 3 ½ cups | Plus 1/4 cup for dusting |
| Unsalted Butter 🧈 | 1 ½ cups | Cold, cubed for pastry |
| Yellow Onions 🧅 | 4 large | Peeled, sliced into 1/4-inch rings |
| Sharp Cheddar Cheese 🧀 | 1 ½ cups | Grated, matured variety preferred |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Granulated Sugar 🍚 | 2 tbsp | For caramelizing onions |
| Salt 🧂 | 1 ½ tsp | Diamond Crystal preferred |
| Black Pepper 🌶️ | ½ tsp | Freshly ground for best flavor |
| Ice Water 💧 | ½ cup | For pastry dough |
| Egg 🥚 | 1 large | For egg wash |
| Milk 🥛 | 1 tbsp | For egg wash |
The onions are non-negotiable here. Use sweet yellow onions for that perfect balance of sweetness and depth—they caramelize beautifully. Sainsbury's or Waitrose carry excellent quality, or grab the largest you can find at Trader Joe's. For the pastry, double cream butter (like Plugrá) makes all the difference—it stays flaky even when blind-baked. The sharp cheddar should have visible crystals; Westcombe or Keen's are classic choices. If you're in a pinch, any well-aged cheddar will do, but avoid pre-shredded—the anti-caking agents make it melt poorly.
No sharp cheddar? Gruyère or mature Gouda work beautifully, though the flavor profile shifts slightly. Running short on heavy cream? Half-and-half with 1 tbsp butter stirred in mimics the richness. For the pastry, if you can't find double cream butter, European-style butter with 82% fat content is your next best bet. The sugar in the filling can be swapped for honey or maple syrup, though sugar caramelizes more predictably. And if you're making a lattice crust, cut the strips 1/4-inch wide for that perfect balance of texture and openness.
This pie tastes even better the next day—reheats beautifully in a 350°F oven for 15-20 minutes. Store the unbaked pie in the fridge for up to 2 days before baking, and the baked pie keeps for 3 days covered at room temperature. For make-ahead convenience, blind-bake the crust and freeze it—thaw overnight in the fridge before adding the filling. The onions can be caramelized up to 3 days ahead; store them in the fridge with a sprinkle of salt to preserve their texture.
Why You'll Love This Recipe
- No-Fuss Fillings: This pie comes together faster than you can say "Mary Berry." Just slice onions, grate cheese, and mix—no fancy techniques required. The heavy cream and sharp cheddar do all the heavy lifting while you roll out the crust.
- Caramelized Magic: That slow-cooked onion filling? It’s where the real flavor lives. The onions turn sweet and golden, then melt into the creamy cheese—like a hug in pie form. Honestly, the first bite makes you forget it’s supposed to be simple.
- Leftovers That Shine: This pie actually tastes better the next day. The flavors meld, the crust stays crisp, and it’s perfect for lunchboxes or a quick reheat. I’ve fed a crowd with it twice and still had slices the following morning.
- Pantry Staple Power: You’re using things you already have: flour, butter, onions, cheese. No weird ingredients or last-minute grocery runs. Between us, this is the kind of recipe that turns a "what’s for dinner?" panic into a delicious solution.
Step-by-step instructions for Mary Berry's cheese and onion pie
Mastering this classic requires precision in both the pastry and filling. Here's how to achieve that perfect balance of crisp crust and rich, caramelized layers.
Prepare the Pastry Dough
In a large bowl, combine the 3.5 cups all-purpose flour with 1.5 tsp salt and 0.5 tsp black pepper. Cut in the 1.5 cups cold, cubed unsalted butter using a pastry cutter or your fingers until the mixture resembles coarse crumbs with pea-sized butter pieces. This texture is crucial for achieving a flaky crust.
Gradually add the 0.5 cup ice water, 1 tablespoon at a time, mixing gently with a fork until the dough just comes together. Avoid overworking the dough—handle it only enough to form a smooth ball. Wrap in plastic wrap and chill in the refrigerator for at least 1 hour. This resting period relaxes the gluten, ensuring a tender crust rather than a tough one.
Caramelize the Onions
Peel and slice the 4 large yellow onions into ¼-inch rings. In a large, deep skillet, melt 1 tablespoon butter over medium heat. Add the onions and cook, stirring occasionally, for 10 minutes until they begin to soften. Sprinkle the 2 tbsp granulated sugar evenly over the onions and continue cooking for another 15-20 minutes, stirring frequently, until the onions are deep golden brown and caramelized.
Here's the thing—don't rush this step. The sugar needs time to dissolve and react with the onions, creating that sweet, jammy texture that makes this pie unforgettable. If the onions start to stick, add another tablespoon of butter to prevent burning. Once caramelized, transfer the onions to a bowl and set aside to cool slightly.
Assemble the Filling
In a medium bowl, combine the cooled caramelized onions with the 1.5 cups grated sharp cheddar cheese, 0.5 cup heavy cream, and the remaining 1 tablespoon butter. Mix gently until the cheese is fully melted and the filling is smooth and well combined. Season with an extra pinch of salt if needed, but be cautious—the cheese and caramelized onions are already well-seasoned.
This is where the magic happens. The warm onions will help melt the cheese completely, creating a luscious, creamy filling that contrasts beautifully with the crisp pastry. Taste the filling now—it should be rich, slightly sweet, and perfectly balanced. If it needs more depth, a splash of milk can help loosen the texture without altering the flavor.
Roll Out and Fill the Pie
Preheat your oven to 375°F. On a lightly floured surface, roll out half of the chilled pastry dough into a 12-inch circle, about ⅛-inch thick. Transfer it to a 9-inch pie dish, pressing gently to fit. Trim any excess dough hanging over the edges. Roll out the remaining dough for the top crust, but leave it whole for now.
Pour the cheese and onion filling into the pie shell, spreading it evenly. Brush the edges of the bottom crust with the 1 large egg mixed with 1 tbsp milk to create a seal. Drape the second pastry dough over the top, pressing lightly to adhere. Use a fork to crimp the edges, creating a decorative pattern. Cut a few small slits in the top crust to allow steam to escape during baking.
Bake to Golden Perfection
Place the pie on a baking sheet lined with parchment paper to catch any drips. Bake in the preheated oven for 45-50 minutes, until the crust is deep golden brown and the filling is bubbling through the slits in the top crust. The pie is done when the internal temperature reaches 190°F—this ensures the filling is fully set but still creamy.
Remove the pie from the oven and let it cool on a wire rack for at least 1 hour before slicing. This resting period allows the filling to set properly and prevents a runny center. Serve warm with a crisp green salad or steamed vegetables. The contrast of textures—crisp, flaky crust with creamy, caramelized filling—is what makes this pie truly special.
Pro Tips For Making Cheese And Onion Pie Recipe Mary Berry
- Sweat Onions Low: I learned this the hard way—don’t rush the onions. Cook them at a gentle simmer (not a boil) for at least 20 minutes until they’re soft, caramelized, and almost falling apart. That’s the flavor base of your pie, not just a garnish.
- Grate Cheese Fine: Sharp cheddar loses its edge when it clumps. Use a box grater and pulse the cheese in a food processor for 10 seconds—just enough to break up any lumps without turning it into paste. Your filling will melt smoothly, not separate.
- Blind-Bake the Crust: Skip the parchment trick for this pie. Line the crust with a single layer of dried beans or pie weights, then bake at 375°F (190°C) for 12 minutes before adding the filling. This guarantees a crisp bottom—no soggy base when the creamy filling goes in.
- Whisk Cold Butter: The filling’s secret isn’t the cream—it’s the butter. Cut cold unsalted butter into the flour mixture in small cubes, then whisk it in until it resembles coarse crumbs. This creates pockets for the onions and cheese to melt into, not a greasy mess.
Flavor customization for this recipe
Sweet & Tangy Twist
Add 1 tbsp apple cider vinegar to the caramelized onions while cooking to brighten their flavor with a subtle tang. I find this works especially well with sharp white cheddar—the acidity balances the richness beautifully.
For extra depth, stir in ½ tsp Dijon mustard with the heavy cream before mixing into the filling. This adds complexity without overpowering the classic flavors. 💫
Herb-Infused Variations
Fresh herbs elevate this pie to restaurant-quality. Try adding 1 tbsp chopped fresh thyme or rosemary to the caramelized onions while cooking—they infuse beautifully into the sweetness. For a more robust flavor, fold 2 tbsp chopped chives or parsley into the filling just before baking.
These herbs add a bright, fresh contrast to the creamy cheese and caramelized onions.
Spicy Kick Options
For heat lovers, add ½ tsp smoked paprika or ¼ tsp cayenne pepper to the filling for a subtle smoky warmth. I like to sprinkle ¼ cup crumbled chorizo over the top crust before baking for a Spanish-inspired twist.
The fat from the chorizo also crisps the pastry beautifully. For a milder kick, add ½ tsp Aleppo pepper to the caramelized onions while cooking.
Cheese Swaps
While sharp cheddar is classic, Gruyère or Comté add nutty depth that pairs perfectly with caramelized onions. For a creamy texture, mix ½ cup cream cheese into the filling along with the sharp cheddar.
If you love blue cheese, try ¼ cup crumbled Stilton—it adds a tangy punch that cuts through the sweetness. Always grate your own cheese for the best melt and texture.
Lattice Crust Upgrade
Instead of a solid top crust, create a lattice pattern by cutting the dough into ½-inch strips and weaving them over the filling. This adds beautiful texture while allowing steam to escape.
For extra flair, brush the lattice with 1 tbsp melted butter before baking—it crisps beautifully and adds golden color. The open pattern also lets you see the gorgeous caramelized onions underneath. ✨
Make-Ahead Flavor Boosters
Caramelize the onions 3 days ahead and store them in the fridge—they develop even deeper flavor over time. For extra richness, add 1 tbsp crème fraîche or sour cream to the filling before baking.
This creates a luxurious, velvety texture that pairs perfectly with the crisp pastry. I also like to sprinkle 1 tbsp toasted breadcrumbs over the filling before adding the top crust for added crunch.
Nutrition facts
Frequently asked questions
Can I make this pie ahead of time?
The unbaked pie can be refrigerated for up to 2 days before baking. For even better results, blind-bake the crust and freeze it—thaw overnight in the fridge before adding the filling. The caramelized onions can also be made 3 days ahead and stored in the fridge with a sprinkle of salt to preserve their texture.
What if my pastry turns out soggy?
Soggy pastry usually means the filling was too wet or the crust wasn't pre-baked enough. To fix this, always blind-bake the bottom crust for 15 minutes at 375°F before adding the filling. For extra insurance, brush the bottom crust with a thin layer of egg wash before adding the filling—this creates a barrier that keeps the pastry crisp.
Can I use a different type of cheese? While sharp cheddar is classic, you can swap it for Gruyère, mature Gouda, or even Stilton for a tangy twist. For a creamier texture, mix in ½ cup cream cheese. Just
How do I know when the onions are fully caramelized?
Fully caramelized onions should be deep golden brown with a jam-like consistency. They'll release their sweet aroma and cling together when stirred. If they start to stick, add another tablespoon of butter. The cooking time varies—25-35 minutes total is typical—but patience is key for that perfect texture.
Can I make this pie without a top crust?
Yes! For a rustic look, simply spread the filling in the pie dish and cover it with a lattice crust instead of a solid top. This creates beautiful texture while allowing steam to escape. Brush the lattice with melted butter before baking for extra crispness. The open pattern also lets you admire the gorgeous caramelized onions underneath.
