This Backyard Chef Cheese and Onion Pie is a hearty, savory pie inspired by British pub classics, but made for the American backyard grill or oven. It features a buttery, flaky crust filled with caramelized onions and a rich, creamy cheese custard that sets into a golden, sliceable pie. It works because the sweet, deeply cooked onions balance the sharpness of the cheese, and the simple technique yields a satisfying, comforting dish that’s perfect for casual gatherings or a cozy weeknight dinner.
Ingredients
- 1 ½ cups (190 g) all-purpose flour, plus more for rolling
- ½ teaspoon salt
- ½ cup (115 g) cold unsalted butter, cut into small cubes
- 4–5 tablespoons (60–75 ml) ice water
- 3 large yellow onions (about 1 ½ lbs / 680 g), thinly sliced
- 2 tablespoons (30 ml) olive oil
- 1 tablespoon (15 g) butter
- ½ teaspoon salt
- ¼ teaspoon black pepper
- 1 teaspoon fresh thyme leaves (or ½ teaspoon dried)
- 1 cup (120 g) shredded sharp cheddar cheese
- ½ cup (50 g) grated Parmesan cheese
- 3 large eggs
- 1 cup (240 ml) heavy cream
- ¼ teaspoon ground nutmeg
- 1 egg yolk beaten with 1 tablespoon water (for egg wash)
Instructions
- Make the pastry: In a large bowl, whisk together the flour and salt. Cut in the cold butter using a pastry blender or your fingertips until the mixture resembles coarse crumbs with some pea-sized butter pieces. Sprinkle with ice water, 1 tablespoon at a time, tossing with a fork until the dough just comes together. Do not overwork. Shape into a disk, wrap in plastic, and refrigerate for at least 30 minutes.
- Caramelize the onions: While the dough chills, heat the olive oil and butter in a large skillet over medium heat. Add the sliced onions and salt. Cook, stirring occasionally, for 20–25 minutes, until the onions are soft, deeply golden, and caramelized. Reduce heat if they start to burn. Stir in the black pepper and thyme, then remove from heat and let cool slightly.
- Preheat the oven to 375°F (190°C).
- Roll out the dough: On a lightly floured surface, roll the chilled dough into a 12-inch (30 cm) round. Carefully transfer it to a 9-inch (23 cm) pie dish. Press the dough into the dish, trim the overhang to about 1 inch (2.5 cm), and crimp the edges. Prick the bottom with a fork. Line with parchment paper and fill with pie weights or dried beans. Bake for 15 minutes, then remove the weights and parchment and bake for another 5–7 minutes, until the crust looks dry and lightly golden. Set aside to cool slightly.
- Prepare the filling: Spread the caramelized onions evenly over the bottom of the pre-baked crust. Sprinkle both cheeses over the onions.
- Make the custard: In a medium bowl, whisk together the eggs, heavy cream, and nutmeg until smooth. Pour the custard over the onions and cheese.
- Bake: Brush the crimped edges of the crust with the egg wash. Place the pie on a baking sheet and bake for 35–40 minutes, until the filling is set around the edges but slightly jiggly in the center. The internal temperature of the egg custard should reach 160°F (71°C) as per USDA FSIS safe minimum for egg dishes. If the crust edges brown too quickly, cover them loosely with foil.
- Cool and serve: Let the pie cool on a wire rack for at least 15 minutes before slicing. Serve warm or at room temperature.
Tips
- Don’t rush the onions: The key to a sweet, rich flavor is low and slow caramelization. If they brown too quickly, lower the heat. Burnt onions will taste bitter.
- Blind baking is essential: Pre-baking the crust prevents a soggy bottom. Make sure to use pie weights or dried beans, and don’t skip the second bake without them.
- Check for doneness: The pie is done when the edges are puffed and golden, and the center is just set. A knife inserted near the center should come out clean, or use a thermometer to ensure 160°F (71°C).
- Substitutions: Use any good melting cheese like Gruyère, Gouda, or a mix of cheddar and Monterey Jack. For a lighter version, substitute half-and-half for the heavy cream, but the filling will be less rich.
Serving Suggestions
Serve this pie warm with a crisp green salad dressed with a simple vinaigrette, or alongside roasted vegetables. It also pairs well with a bowl of tomato soup for a comforting lunch. For a heartier meal, serve with grilled sausages or a slice of ham.
Variations
- Add bacon: Cook 4 slices of bacon until crisp, crumble, and sprinkle over the onions before adding the cheese.
- Herb twist: Add 1 tablespoon of chopped fresh chives or parsley to the custard for extra freshness.
- Potato topping: Thinly slice a small potato and arrange overlapping slices on top of the filling before baking for a rustic, hearty version.
Storage and Reheating
Store leftover pie in the refrigerator, covered, for up to 3 days. To reheat, place slices in a 350°F (175°C) oven for 10–15 minutes, or until warmed through. You can also microwave individual slices for 1–2 minutes, but the crust will be less crisp. The pie can be frozen, wrapped tightly, for up to 2 months; thaw overnight in the refrigerator before reheating.
Frequently Asked Questions
Can I use a store-bought pie crust? Yes, a refrigerated or frozen pie crust works well. You’ll still need to blind bake it as directed. A deep-dish crust is best for this filling.
Why is my custard runny? The custard may be underbaked. Make sure the pie reaches 160°F (71°C) in the center. Also, be careful not to add too much cream; the ratio of 1 cup cream to 3 eggs is key.
Can I make this pie ahead of time? Yes, you can assemble the pie completely, then refrigerate it unbaked for up to 24 hours. Add 5–10 minutes to the baking time. You can also bake it fully and reheat it.
Can I use milk instead of heavy cream? Yes, but the filling will be less rich and may be slightly more watery. Use whole milk for best results, and consider adding an extra egg yolk to help set the custard.
My crust is browning too fast. What should I do? Cover the edges with aluminum foil or a pie crust shield during the last 15 minutes of baking. This will prevent burning while the filling finishes cooking.
Can I use a different type of onion? Yes, sweet onions like Vidalia or Walla Walla will make the pie sweeter. Red onions will add a slightly sharper flavor. You can also use leeks, but clean them thoroughly and slice them thinly.
Related
- Air Fryer Garlic Bread: Quick & Crispy Recipe
- Air Fry Roast Potatoes: Crispy & Golden Recipe
- Air Fryer Roast Potatoes UK: Crispy Every Time
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).