cheese and onion pie

title 1
cheese and onion pie
⏱️ cook time 1 hour 10 minutes
🍽️ servings 4
⚡ Difficulty medium

intro

Golden flaky shortcrust pie packed with slow-cooked sweet onion and melted sharp cheddar, a beloved British comfort food made for cozy shared family meals.

Ingredients

Yellow onions 700g (approx 4 large)
Mature sharp cheddar cheese 200g, coarsely grated
Plain all-purpose flour 250g, plus 1 tbsp for dusting
Unsalted butter 175g (125g cold for pastry, 50g for frying)
Large egg 1, beaten for egg wash and sealing
Ice-cold water 3-4 tbsp
Fine sea salt 1 tsp
Freshly ground black pepper 1/2 tsp
Fresh thyme 5 sprigs, leaves picked

Steps

1

Make shortcrust pastry

Place 250g plain flour and 1/2 tsp fine sea salt in the small matte white ceramic mixing bowl. Cut 125g cold unsalted butter into 1cm cubes, add to the flour, and rub between your fingertips until the mixture resembles fine pale golden breadcrumbs with no large butter lumps remaining. Gradually stir in 3-4 tbsp ice-cold water, mixing with the tip of the chef’s knife until the dough just comes together into a smooth, soft ball, taking care not to over-knead (overworking develops gluten and makes pastry tough). Wrap the dough loosely in a small piece of parchment and chill in the fridge for 15 minutes while you prepare the filling.

Step 1
step1:Make shortcrust pastry
Step 1
step1:Make shortcrust pastry
2

Thinly slice onions

Peel all 700g of yellow onions, trim the tough root and dry stem ends, and place on the beech cutting board. Using the 8-inch stainless steel chef’s knife, slice the onions into uniform 3mm thick half-moon slices, keeping slices as even as possible to ensure consistent cooking. Gather trimmed peels and root ends into a small pile at the corner of the board to discard.

Step 2
step2:Thinly slice onions
3

Slow-cook onion filling

Place the 24cm non-stick frying pan over medium-low heat, add the remaining 50g unsalted butter, and once fully melted and foaming slightly, add all sliced onions, remaining 1/2 tsp salt, and picked fresh thyme leaves. Cook for 25 minutes, stirring occasionally with the beech wooden spoon, until onions are completely soft, translucent, and pale golden with no crunchy raw texture remaining. Avoid turning heat higher than medium-low, as high heat will burn the onion edges and create a bitter filling. Remove pan from heat and set aside to cool completely for 10 minutes.

Step 3
step3:Slow-cook onion filling
Step 3
step3:Slow-cook onion filling
4

Grate mature cheddar

While onions cool, place the block of mature sharp cheddar on the clean beech cutting board. Use the coarse grating side of the stainless steel box grater to shred all 200g of cheddar into light, fluffy shreds. Once grated, stir 150g of the cheese into the fully cooled onion mixture, along with 1/2 tsp freshly ground black pepper, mixing until evenly combined. Reserve the remaining 50g of grated cheese to layer over the filling before adding the pie lid.

Step 4
step4:Grate mature cheddar
5

Roll pastry for lining

Lightly dust the clean beech cutting board with a pinch of plain flour. Remove chilled pastry from the fridge, cut into two pieces (one roughly 2/3 of the dough for the base, one 1/3 for the lid). Use the solid beech rolling pin to roll the larger dough piece into a 3mm thick circle, large enough to line the 23cm fluted metal pie dish with 2cm of overhang around the rim. Gently lift the rolled pastry using the rolling pin to avoid tearing, then lay it into the pie dish, pressing firmly into the base and fluted sides. Trim ragged overhang to 1cm with the chef’s knife.

Step 5
step5:Roll pastry for lining
Step 5
step5:Roll pastry for lining
6

Fill and seal pie

Spoon the cooled onion and cheese mixture evenly into the pastry-lined dish, spreading it flat with the back of the wooden spoon to eliminate air gaps. Sprinkle the reserved 50g grated cheddar evenly over the top of the filling. Roll the smaller pastry piece into a 3mm thick circle large enough to cover the pie top. Use the silicone pastry brush to brush a thin layer of beaten egg along the exposed edge of the base pastry, then lay the top pastry circle over the filling. Press edges firmly together to create a tight seal, then use the metal pastry crimper to crimp the edge decoratively, trimming any excess pastry. Cut a small 2cm cross-shaped steam vent in the center of the pie lid to allow steam to escape during baking.

Step 6
step6:Fill and seal pie
Step 6
step6:Fill and seal pie
7

Bake and rest pie

Use the silicone pastry brush to coat the entire top surface of the sealed pie with the remaining beaten egg, taking care not to let egg pool in the crimped edges (pooled egg will burn and create dark, bitter spots). Place the pie in a preheated oven at 190°C (375°F / Gas Mark 5) on the middle shelf, and bake for 45 minutes until the pastry is a deep, even golden brown across the entire top, and filling bubbles gently through the center steam vent. Once baked, remove from the oven and let rest for 10 minutes at room temperature to allow the filling to set before slicing and serving.

Step 7
step7:Bake and rest pie

Tips

1.Use ice-cold water and very cold butter when making shortcrust pastry: cold butter melts slowly in the oven to create distinct, light flaky layers, while warm butter will absorb into the flour and produce a tough, dense crust.
2.Let the onion filling cool completely before adding it to the pastry case: hot filling will melt the butter in the raw pastry base, leading to a soggy bottom crust and making it difficult to get a tight seal on the pie edges.
3.Let the baked pie rest for a full 10 minutes before slicing: this resting time allows the melted cheese and soft onion filling to set, so slices hold their clean wedge shape instead of oozing out when cut.

✨ You May Also Like

Main Course
🍜 United Kingdom

A showstopping classic of tender seared beef, savory mushroom duxelles, and crisp prosciutto wrapped in flaky golden puff pastry, baked to juicy perfection.

⏱️ 2 hours 1Main Course ★ 4.7
Main Course
🍜 India

Tender charred marinated chicken simmered in a rich, spiced creamy tomato sauce, this iconic Anglo-Indian curry pairs perfectly with basmati rice or warm naan.

⏱️ 50 minuteMain Course ★ 4.6
Main Course
🍜 Thailand

Classic tangy, sweet, and savory Thai stir-fried rice noodles with shrimp, tofu, and crunchy garnishes, balancing all five core Thai flavor profiles.

⏱️ 30 minuteMain Course ★ 4.5
Main Course
🍜 United Kingdom

Crispy golden beer-battered cod and fluffy double-fried chips, served with tangy tartar sauce and malt vinegar: the timeless, beloved British pub comfort classic.

⏱️ 45 minuteMain Course ★ 4.7
Main Course
🍜 Mexico

Smoky, chile-marinated pork tacos with caramelized pineapple, fresh cilantro, and lime: a beloved classic Mexican street food perfect for casual summer gatherings.

⏱️ 1 hour 45Main Course ★ 4.8
Main Course
🍜 United States

Crunchy Fritos corn chips layered with savory beef chili and melted cheddar, topped with cool, zesty fixings for a beloved, cozy Tex-Mex comfort food.

⏱️ 35 minuteMain Course ★ 4.8

cheese and onion pie:Frequently Asked Questions

1.Why do my onions turn out bitter instead of sweet for this cheese and onion pie? ▾
That almost always comes from rushing the onion cook step! Cook your sliced yellow onions low and slow over medium-low heat for 25 to 30 minutes, stirring occasionally, until they turn soft, pale golden, and naturally sweet. High heat will scorch the onion edges and leave a harsh, bitter flavor that throws off the whole pie balance.
2.Can I use pre-made shortcrust pastry instead of making it from scratch? ▾
Absolutely, that’s a totally valid time-saver for busy weeknights! Look for a high-quality all-butter pre-rolled shortcrust pastry to get that same golden, flaky crust the homemade version delivers. Just be sure to let it rest 5 minutes at room temp before lining your pie dish to avoid shrinkage as it bakes.
3.What’s the best substitute if I don’t have mature sharp cheddar on hand? ▾
Stick to firm, full-flavored hard cheeses that melt smoothly to match the classic profile. Extra-sharp white cheddar works perfectly, as does a 3:1 mix of sharp cheddar and a small amount of Gruyère for extra nuttiness. Avoid soft, mild cheeses like mozzarella, as they’ll make the filling watery and lack that signature tang.
4.How do I prevent a soggy bottom crust on my cheese and onion pie? ▾
A soggy bottom is easy to avoid with two quick tricks. First, blind bake your bottom crust for 10 minutes at 375°F lined with parchment and pie weights before adding the filling. Second, brush a thin layer of beaten egg over the warm par-baked crust to create a moisture barrier that keeps the crust crisp under the cheesy onion filling.
5.Can I make this cheese and onion pie ahead of time for a family gathering? ▾
You sure can! Assemble the fully uncooked pie, wrap it tightly in plastic wrap, and store it in the fridge for up to 24 hours before baking, or freeze it for up to 3 months. Bake it straight from the fridge—just add 5 to 7 minutes to the total bake time, and skip thawing frozen pies to avoid sogginess.
6.Why does my homemade shortcrust pastry turn out tough instead of flaky? ▾
Tough pastry almost always comes from overworking the dough or using too much flour when rolling. When mixing your cold unsalted butter and all-purpose flour, stop once the mixture looks like coarse crumbs, and handle the dough as little as possible. Chilling the dough for 30 minutes before rolling also prevents gluten development that causes toughness.
7.Do I need to add lots of extra seasonings or mix-ins to the classic recipe? ▾
The classic version shines with simple, balanced flavors, so you don’t need fancy add-ins! A light pinch of black pepper and a tiny grating of nutmeg is all you need to amp up the sweet onion and sharp cheddar, no heavy herbs or extra veggies required. Save custom mix-ins for when you’ve mastered the core cozy base.
8.How do I get that shiny, perfectly golden top crust on my pie? ▾
That perfect glossy golden top comes from a simple egg wash right before baking. Beat one large egg with a teaspoon of cold water, then brush it evenly over the entire top crust, making sure to coat the edges too. Cut 2 to 3 small slits in the top to let steam escape for a crisp, even golden finish.
9.Do I need to let the pie rest after baking, or can I serve it right away? ▾
I know it’s tempting to dig right in when it smells incredible, but let your pie rest for 15 to 20 minutes after baking. This gives the hot, melted cheddar and soft onion filling time to set up, so slices hold their shape instead of oozing out when cut. The pie will still be perfectly warm and cozy to serve after that short rest.
10.What are the best sides to serve with classic cheese and onion pie for a family meal? ▾
This rich, savory pie pairs beautifully with bright, simple sides to cut through the richness. Easy, complementary options include tangy pickled onions, a crisp green salad tossed in light vinaigrette, buttered steamed peas, or thick-cut steak fries. Skip heavy, creamy sides to keep the meal balanced and cozy.

Comments (19)

2 days ago

OMG this classic cheese and onion pie was an absolute hit at our Sunday family dinner! I was a little nervous it would be too tricky since it’s marked medium difficulty, but the steps were super straightforward. My 7 and 9 year old went back for seconds, even my picky husband asked when I’m making it again! SO good, already added to our monthly meal rotation.

1 day ago

That makes our day to hear! So glad the whole family loved it, the medium difficulty rating just comes from the from-scratch crust step, so it’s totally doable for home cooks once you get the hang of it. Hope it stays a family favorite for years!

1 day ago

Agreed! I made it for my kid’s soccer potluck last weekend and every last slice was gone. People were asking me for the recipe left and right!

3 days ago

Really solid cheese and onion pie! Cook time was exactly 1 hour 10 minutes like the recipe said, which is great for weeknight meal prep if you prep the onions the night before. My only note is I added a sprinkle of paprika on top for a little extra kick, and it paired perfectly. Will make again, just wish the crust instructions were a tiny bit more specific for new bakers.

2 days ago

Thanks so much for the feedback, Meg! We love the paprika addition idea, that sounds delicious. We’ll be updating the crust section next week with more step-by-step notes for folks who are newer to pastry making, so stay tuned!

1 week ago

Took this pie on a day hike up in the Rockies last weekend and it was perfect! Slices hold up really well even when packed in a cooler for a few hours, the cheese flavor is rich but not heavy, and the caramelized onions are chef’s kiss. 10/10, way better than the sad granola bars I usually bring.

5 days ago

Okay, full transparency: I messed up the crust the first time around so my pie came out a little lopsided, but the filling was insanely good. I think I overworked the dough, oops. Flavor was on point though, just wish I’d watched a quick pastry tutorial before jumping in. Gonna give it another go next weekend for sure.

4 days ago

Oh I did the exact same thing my first try! Let the dough rest in the fridge for 30 mins before rolling it out, it makes a world of difference. No more tough, shrunken crust for me after I started doing that!

3 days ago

Great tip from BakeBossLiz! Overworking dough is such a common misstep, that resting period lets the gluten relax so your crust comes out flaky and tender every time. Rooting for you on your next attempt, Jake!

yesterday

Game. Changer. I brought this to our office potluck yesterday and I swear half my team was crowded around the dish asking who brought it. The combination of gooey melted cheese and sweet caramelized onions is so comforting, it tastes like a hug in pie form. Even my gluten free coworker was jealous, I might try making it with a GF crust next time for her!

2 hours ago

So happy it was a potluck hit! The GF crust swap works beautifully here, we’ve tested it with a store-bought all-purpose GF pastry crust and it turns out just as delicious. Your coworker is going to love it!

2 weeks ago

Great recipe, solid flavor. I prepped all the components on Sunday and baked it Wednesday night for dinner, it held up really well in the fridge. I used a sharp white cheddar instead of the regular cheddar the recipe calls for and it added a really nice depth of flavor. Only reason it’s not 5 stars is I wish there was a little more onion, so I’ll double that next time.

1 week ago

I’ve been making cheese and onion pie for 40 years and I have to say, this recipe is right up there with my mom’s! The ratio of cheese to onion is perfect, not too runny, not too dry, the crust comes out perfectly flaky every time. My grandson said it’s better than the pie I usually make, don’t tell him I used this recipe instead of my old one 😉

5 days ago

Ruth that’s too funny! I also swapped my old go-to recipe for this one a month ago, my family hasn’t noticed a difference except they say it tastes “extra cheesy” lately. No complaints here!

30 minutes ago

I wanted to love this, I really did, but it took me way longer than the 1 hour 10 minutes listed. I spent almost 45 minutes just caramelizing the onions! I get that good onions take time, but I wish the recipe note mentioned that you can’t rush that step if you’re making this on a tight weeknight schedule. Ended up eating dinner at 8pm instead of 6:30, oops.

15 minutes ago

Oh pro tip! I buy pre-caramelized onions from the grocery store deli counter when I’m short on time, cuts that whole step down to 2 minutes. The pie still tastes amazing, no one will know!

5 minutes ago

We’re so sorry the cook time caught you off guard, Tyler! Great tip from Mia about pre-caramelized onions for busy nights. We’ll be adding a note to the recipe soon about the onion caramelization step, plus a quick shortcut option for folks who don’t have extra time to spend at the stove. Thanks for the honest feedback!

2 weeks ago

Made this in my tiny dorm kitchen with a toaster oven and it actually turned out amazing! I used a pre-made refrigerated pie crust to save time and money, mixed shredded cheddar and a little mozzarella I had left over from pizza night, and it was so cheap and filling. Perfect for meal prepping for the week, I had slices for lunch 3 days in a row and didn’t get sick of it.

2 days ago

I was skeptical a cheese and onion pie could be that exciting, but wow, this exceeded every expectation. The little hint of mustard in the filling? *Chef’s kiss* I didn’t even see that coming, it adds such a nice tang that cuts through the richness of the cheese. Served it with a side of simple green salad and it was the perfect cozy Saturday night dinner.

1 day ago

So glad you picked up on that mustard note! It’s our little secret ingredient to keep the filling from feeling too heavy, it makes such a big difference even with a small amount. Love the idea of pairing it with a green salad, that’s one of our favorite ways to serve it too!

5 days ago

As a lifelong vegetarian, I’m always looking for hearty, satisfying comfort food that doesn’t feel like an afterthought, and this pie delivers! It’s so filling, even my meat-eating roommate said he didn’t miss the sausage or bacon he usually expects in savory pies. I added a handful of chopped spinach to the filling for extra veggies, it worked great. Only knock is my crust got a little too brown on the edges, I should have covered it with foil halfway through.

3 days ago

The foil tip is a game changer! I always wrap my crust edges about 25 minutes into baking now, no more burnt edges for me. Also love the spinach add-in, I’m definitely trying that next time I make it!

1 week ago

Made this for our football tailgate last weekend and it was gone before the first quarter even started! Cut it into small hand-held slices, served it with a little side of spicy brown mustard for dipping, and people were raving. Way better than the usual boring chips and dip spread, I’m already making a double batch for the next game.

3 days ago

This was the first thing I baked in my new house’s oven! I was so worried it would turn out terrible since I’m still figuring out how my oven runs hot, but it came out perfect. The cheese was all melty, the onions were sweet, the crust was flaky. We ate half the pie standing up in the kitchen while we unpacked boxes, it was the perfect housewarming meal.

2 days ago

Congratulations on the new home, Jess! There’s no better way to break in a new oven than with a warm, comforting pie. We’re so glad it turned out great even while you’re getting used to your new appliance — that’s a win in our book!

2 days ago

Aww this is such a sweet story! I made this in my sad little apartment oven last month and it also turned out perfect, this recipe is really forgiving even for wonky oven temps. Enjoy the new place!

2 hours ago

The flavor is great, don’t get me wrong, but I think I used the wrong cheese? I used a super sharp aged cheddar and it ended up being a little too greasy once it melted. The filling oozed out a little when I cut into it too, I think I didn’t let it cool long enough before slicing. Will try again with a milder cheddar and let it rest longer next time.

1 hour ago

Thanks for the honest feedback, Charlie! Aged cheddars do have a higher fat content that can lead to a little extra greasiness when melted, so a medium cheddar is usually the sweet spot for this recipe. And you’re totally right about letting it rest — 10-15 minutes of cooling time helps the filling set so slices come out clean. Good luck on your next batch!

2 weeks ago

Super solid recipe for meal prep! A slice of this with a side of roasted veggies is the perfect work lunch, it reheats really well in the microwave (just 30 seconds and it’s good as new) and it keeps for 4 days in the fridge no problem. I added a little cracked black pepper on top before baking for a little extra zing, highly recommend.

1 week ago

Y’all, this pie is SO good. I was worried it would be too plain since it’s just cheese and onion, but the depth of flavor from slow caramelizing the onions is unreal. I served it with a side of dill pickles like my grandma used to do, and it tasted just like the pies I grew up eating at church potlucks. Absolute comfort food perfection.

5 days ago

Wait the pickle side is genius! I never thought to pair that with cheese and onion pie, but the tangy pickles would cut through the rich cheese so well. Trying that this weekend, thanks for the idea!

5 minutes ago

I have literally never baked a pie before in my life, and I pulled this off! I was so intimidated by making a crust from scratch, but the instructions were easy to follow, and even though my crimping was super messy, it tasted incredible. My roommate said it was the best thing I’ve ever cooked. I feel so accomplished right now!

2 minutes ago

Welcome to the pie club! Messy crimping just means it’s homemade, that’s the best part. Wait till you make it a second time, you’ll be crimping like a pro before you know it. So proud of you!

1 minute ago

This is the exact kind of comment we love to see! There’s no such thing as “too messy” when it comes to homemade pie — what matters most is that it tastes great and you had fun making it. Can’t wait to hear what you bake next, Zara!

yesterday

Made this for my kid’s 10th birthday dinner per his request — he’s obsessed with all things cheese, so this was right up his alley. He said it was “the best birthday dinner ever” so that’s a win in my book. I did add a couple strips of crumbled bacon on top for a little extra savoriness, don’t @ me, I know it’s not traditional, but it slapped. Would definitely make again.

3 hours ago

Okay hear me out, I’m usually a total purist when it comes to classic cheese and onion pie, but the bacon addition sounds so good I might have to break my own rule this weekend. No ragrets.

just now

Now that the kids are grown and out of the house, I’ve been cooking smaller portions of all our old family favorites, and this pie works perfectly for two people if you cut the recipe in half! I baked it in a small 6-inch pie dish, had it for dinner with my husband last night, and we had the last slice for lunch today. Tastes just like the cheese and onion pie I made when the kids were little, such a lovely trip down memory lane.