Desserts
Mary Berry's cheese and onion pie delivers that perfect balance of flaky pastry and rich, savory filling—every bite is pure comfort.
The secret lies in a buttery crust that achieves that golden, crisp edge while staying tender inside, paired with a filling of caramelized onions and sharp cheddar that melts into creamy perfection. This recipe captures the essence of classic British baking, where simplicity meets indulgence in one delicious package.
The magic begins with the pastry—a light, airy crust that's both sturdy enough to hold the filling and delicate enough to shatter into flakes. Mary Berry's technique ensures no soggy bottoms, while the filling transforms humble onions and cheese into something deeply satisfying.
The onions caramelize beautifully, their sweetness cutting through the sharpness of the cheese, creating layers of flavor that make each forkful irresistible.
What you'll end up with is a pie that's as impressive on the plate as it is delicious on the palate—golden, bubbling edges, a filling that's just set but still creamy, and that signature flaky pastry that's the hallmark of Mary Berry's baking.
The aroma alone will have everyone gathering around the table, and the first bite will confirm why this classic stands the test of time.
Perfect for a cozy family dinner, a special occasion, or simply treating yourself to a homemade comfort classic. Pair it with a crisp green salad or a dollop of homemade gravy for the full experience. Let's get baking!
Ingredients for cheese and onion pie recipe mary berry
Buttery pastry meets caramelized onions and sharp cheddar—this classic pie needs just 12 ingredients.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 3 cups | Plus 2 tbsp for dusting |
| Unsalted Butter 🧈 | 1 cup | Cold, cubed for pastry |
| Yellow Onions 🧅 | 2 large | Thinly sliced for filling |
| Sharp Cheddar Cheese 🧀 | 1 ½ cups | Grated, matured preferred |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Milk 🥛 | ¼ cup | Whole milk preferred |
| Salt 🧂 | 1 tsp | Plus extra for filling |
| Black Pepper 🌶️ | ½ tsp | Freshly ground preferred |
| Granulated Sugar 🍚 | 1 tsp | For caramelizing onions |
| Ice Cubes ❄️ | ½ cup | For chilling butter |
| Egg 🥚 | 1 large | For egg wash |
| Semolina Flour 🌾 | 1 tbsp | For dusting work surface |
The butter is non-negotiable here—Plugrá or Kerrygold if you can find it, but any good unsalted works. Cold cubes are key for that signature flaky texture. Waitrose or Tesco usually stock the best British butter, but even Walmart's store brand will do in a pinch. For the onions, yellow or brown work best—they caramelize more beautifully than white. If you're feeling fancy, grab a few extra for topping the pie before baking. The sharp cheddar should have visible crystals—Westcombe or Red Leicester if you want to splurge, but any mature cheddar will do.
No heavy cream? Full-fat Greek yogurt thinned with milk works in a bind. Short on sharp cheddar? Add a pinch of mustard powder to regular cheddar for that tang. The pastry needs to be cold when it goes into the oven—freeze it for 20 minutes if your kitchen feels warm. For the filling, brown the onions low and slow—they should be almost jammy, not crispy. If your onions start sticking, add a splash of water or white wine (about 1 tbsp) to deglaze. The egg wash? Beat the egg with a splash of milk for extra shine.
Pastry keeps best wrapped in the fridge for 2 days or frozen for 3 months. Make the filling ahead—it actually improves overnight. The assembled pie can sit at room temp for 1 hour before baking if you're prepping ahead. Leftovers? Reheat at 350°F for 15 minutes—the filling gets even creamier. I always make an extra portion—freeze it in slices for lazy weeknights.
Why You'll Love This Recipe
- No-Fuss Dough: I swear by this butter-and-flour crust—it’s just 10 minutes of cutting, chilling, and rolling. No food processor, no fancy techniques, just cold butter and a pinch of salt. The result? A flaky, golden blanket that holds up to the filling without turning soggy.
- Caramelized Onion Magic: That slow-cooked onion layer? Pure flavor payoff. You’ll caramelize the onions until they’re deep amber and sweet—no sugar needed—then mix them into the heavy cream and cheese. One bite and you’ll understand why this pie tastes like a hug from your grandma.
- Potluck Star: Between us, this pie always disappears at gatherings. It’s hearty enough for a Sunday brunch but simple enough for a dinner party. Serve it warm with a green salad, and you’ve got a crowd-pleaser that won’t leave anyone asking, “What’s for dessert?”
- Leftovers for Days: Make one, eat half, and still have perfect slices for lunch. The crust stays crisp, the cheese stays melty, and the onions keep their sweetness—no reheating tricks required. Honestly, I’ve had this pie for breakfast, lunch, and dinner, and it’s never let me down.
Step-by-step instructions for Mary Berry's cheese and onion pie
Here's how to create that perfect golden crust and rich, savory filling.
Make the Perfect Pastry Dough
In a large bowl, combine the 3 cups all-purpose flour and 1 tsp salt. Add the 1 cup cold, cubed unsalted butter and use your fingertips to rub it into the flour until the mixture resembles coarse breadcrumbs with pea-sized butter pieces remaining. This cold butter creates those flaky layers we're after.
Add the 0.5 cup ice cubes and mix gently with a fork until the ice melts. Then stir in the 1 large egg and just enough 0.25 cup milk to bring the dough together. Avoid overworking the dough—just mix until it forms a rough ball. Wrap in plastic and chill for 30 minutes while you prepare the filling.
Caramelize the Onions for Sweet Depth
Heat a large skillet over medium heat and add 2 large yellow onions, sliced thinly. Cook for 15-20 minutes, stirring occasionally, until they turn a beautiful golden brown and develop that sweet caramelized flavor. This step is crucial—it transforms ordinary onions into something extraordinary.
About 5 minutes before the onions are done, add the 1 tsp granulated sugar and 1 tsp salt to enhance their sweetness. When they're perfectly caramelized, transfer them to a plate and set aside. You'll know they're ready when they're soft, sweet-smelling, and deeply golden.
Assemble the Filling
In a medium bowl, combine the caramelized onions, 1.5 cups grated sharp cheddar cheese, 0.5 cup heavy cream, and 0.5 tsp black pepper. Mix gently but thoroughly to distribute all the flavors evenly. The cheese should be fully coated in the cream, and you should see little pockets of melted cheese forming—this is what makes the filling so rich.
Taste the filling and adjust seasoning if needed. You might want to add a pinch more salt or pepper to balance the flavors. This is your chance to make sure every bite will be perfectly seasoned. Transfer the filling to a bowl and set aside while you roll out the pastry.
Roll and Line the Tart Pan
On a lightly floured surface dusted with 1 tbsp semolina flour, roll out half of the chilled pastry dough to fit a 9-inch tart pan. Press it gently into the pan, making sure it covers the bottom and sides evenly. Trim any excess dough hanging over the edge with a sharp knife.
Pour the filling into the lined tart pan, spreading it out evenly. Then roll out the remaining pastry dough and place it over the filling. Press the edges together to seal, then use a fork to crimp the edges decoratively. Cut a few small slits in the top pastry to allow steam to escape during baking.
Bake to Golden Perfection
Preheat your oven to 375°F. Brush the top pastry with the beaten 1 large egg mixed with a splash of milk for that classic golden finish. Place the pie on a baking sheet lined with parchment paper to catch any drips, then bake for 45-50 minutes until the pastry is deep golden brown and the filling is bubbling.
The pie is done when the pastry is crisp and golden, and the filling is set but still creamy. Let it cool for 15 minutes before slicing—this gives the filling time to set properly and prevents it from running when you cut into it. Serve warm with a simple green salad for the perfect meal.
Pro Tips For Making Cheese And Onion Pie Recipe Mary Berry
- Sweat Onions Low: I learned this the hard way—cooking onions on high heat turns them bitter and watery. For Mary Berry’s version, keep the heat at a gentle simmer, covered, until they’re soft and translucent. A splash of water (about 2 tablespoons) helps steam them evenly, but don’t skip the lid—it’s the thing that matters most for flavor.
- Grate Cheese Fresh: Pre-shredded cheddar packs extra starch to keep it from clumping, and it’s usually lower quality. For this pie, grate sharp cheddar yourself—it melts smoother and tastes richer. If you’re in a rush, buy block cheese and use a microplane for the fastest, most even texture.
- Blind-Bake the Crust: Skipping the blind-bake leads to a soggy bottom, no matter how much you pre-bake the onions. Weigh down the crust with pie weights or dried beans, then bake at 375°F (190°C) for 15 minutes before adding the filling. Trust me, your future self will thank you for the crispy foundation.
- Whisk Cream Cold: Warm heavy cream loses its structure, and that’s the last thing you want in a custardy filling. Whisk it into the egg mixture last, right after the eggs and milk, and only when everything else is at room temperature. Cold cream keeps the filling silky, not grainy—sounds weird, but it works.
Flavor customization for these flavors
Spice Level Boost
For a kick, stir in ½ tsp smoked paprika or ¼ tsp cayenne pepper with the filling. I love adding 1 tbsp chopped fresh thyme for an earthy depth that pairs beautifully with the cheese.
If you're feeling adventurous, try ½ tsp mustard powder—it cuts through the richness and adds a subtle tang. 🌶️
Cheese Swaps
Swap out sharp cheddar for Gruyère or Comté for a nutty, complex flavor. For a creamier texture, mix in ½ cup cream cheese with the sharp cheddar. If you prefer a milder taste, use medium cheddar and add 1 tsp lemon zest to brighten the filling.
Onion Variations
Try red onions for a sweeter, milder flavor or leeks for a subtle onion taste without the sharpness. For extra richness, caramelize ½ cup pearl onions alongside the yellow onions.
I also like adding 1 tbsp apple cider vinegar to the onions while they cook—it enhances their sweetness and adds a tangy note.
Herb Infusions
Fresh herbs elevate the filling instantly. Add 2 tbsp chopped chives or 1 tbsp chopped parsley> to the filling before baking. For a more robust flavor, mix in 1 tsp dried thyme> or ½ tsp dried rosemary> with the onions while they caramelize.
These herbs add freshness that balances the richness of the cheese.
Extra Crunch Topping
Before baking, sprinkle ¼ cup panko breadcrumbs> or crushed potato chips> on top of the pie for a delightful crunch. For a savory twist, add 2 tbsp grated Parmesan cheese> mixed with the breadcrumbs. This adds texture and a salty contrast to the creamy filling. ✨
Sweet & Savory Twist
Add 2 tbsp dried cranberries> or chopped dried apricots> to the filling for a sweet-savory balance. The fruit softens slightly during baking, adding bursts of sweetness that complement the sharp cheese.
For a more decadent touch, stir in 2 tbsp chopped candied pecans> or walnuts> into the filling.
Nutrition facts
Frequently asked questions
Can I use frozen onions for this cheese and onion pie?
Fresh onions are ideal for caramelizing, but frozen work in a pinch. Thaw and drain them thoroughly first, then pat completely dry with paper towels. The extra moisture can make the filling soggy, so you may need to cook them slightly longer to achieve that sweet, jammy texture. For best results, use frozen onions that haven't been pre-cooked.
How do I prevent a soggy bottom in my pie?
Mary Berry's secret is pre-cooking the filling slightly to remove excess moisture before assembling. Spread the filling in the tart pan and bake it uncovered at 350°F for 10 minutes to thicken it. Also, chill the assembled pie for 20 minutes before baking to help the pastry set before the filling melts.
What's the best way to reheat leftovers?
For that restaurant-quality texture, reheat slices at 350°F for 10-12 minutes until the pastry is crisp again. Cover loosely with foil to prevent over-browning. Microwaving works too, but the pastry gets rubbery—always cover with a damp paper towel and heat in 30-second bursts until warmed through.
Can I make this pie ahead of time?
Assemble the pie and refrigerate it overnight for deeper flavors. Bake it straight from the fridge, adding 5-10 minutes to the baking time. For make-ahead convenience, bake the pie, cool completely, then freeze individual slices wrapped in plastic. Reheat from frozen at 375°F for 15 minutes.
What wine pairs best with cheese and onion pie?
A crisp Chardonnay or Sauvignon Blanc complements the creamy filling beautifully. For red wine lovers, try a light Pinot Noir—its acidity cuts through the richness. A dry cider or sparkling water with lemon works too if you prefer non-alcoholic options. The key is balancing the pie's richness with something refreshing.
