This onion pie casserole is a savory custard pie that turns humble onions into a rich, comforting main or side dish. It works because the onions are slowly cooked until sweet and tender, then baked in a simple egg-and-cheese custard that sets into a golden, sliceable pie. It’s a versatile, budget-friendly recipe that feels special enough for a holiday table yet easy enough for a weeknight dinner.
Ingredients
- 1 (9-inch) unbaked pie crust (store-bought or homemade)
- 3 tablespoons (42 g) unsalted butter
- 3 large yellow onions (about 1.5 lb / 680 g), thinly sliced
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/4 teaspoon dried thyme (or 1 teaspoon fresh)
- 3 large eggs
- 1 cup (240 ml) whole milk or half-and-half
- 1 cup (120 g) shredded sharp cheddar cheese, divided
- 1/4 cup (30 g) grated Parmesan cheese
Instructions
- Preheat your oven to 375°F (190°C). If using a store-bought pie crust, fit it into a 9-inch pie plate and crimp the edges. Place the crust in the refrigerator while you prepare the onions.
- In a large skillet, melt the butter over medium heat. Add the sliced onions, salt, pepper, and thyme. Cook, stirring occasionally, for 15–20 minutes, until the onions are soft and golden brown. Do not rush this step; the caramelization adds sweetness. Set aside to cool slightly.
- In a medium bowl, whisk the eggs, milk, 3/4 cup of the cheddar cheese, and the Parmesan cheese until well combined.
- Spread the cooked onions evenly over the bottom of the prepared pie crust. Pour the egg mixture over the onions. Sprinkle the remaining 1/4 cup cheddar cheese on top.
- Place the pie on a baking sheet to catch any spills. Bake for 35–45 minutes, until the center is set and a knife inserted near the center comes out clean. The top should be golden brown and slightly puffed.
- Let the pie rest on a wire rack for at least 15 minutes before slicing. This allows the custard to set fully so the slices hold together.
Tips
- Blind-bake the crust: To avoid a soggy bottom, you can pre-bake the crust for 10 minutes at 375°F (190°C) with pie weights or dried beans, then remove the weights and bake for another 5 minutes. This is especially helpful if you like a crisp crust.
- Use a mix of onions: Sweet onions like Vidalia or Walla Walla are extra mild, but yellow onions work perfectly. You can also use leeks for a more delicate flavor.
- Don’t overbake: The custard should be just set – it will continue to cook as it rests. Overbaking can make the texture rubbery.
- Let it rest: Slicing too soon will result in a runny pie. The 15-minute rest is essential for clean slices.
Serving Suggestions
This onion pie is wonderful as a vegetarian main with a green salad and crusty bread. It also makes a great side dish alongside roasted chicken, pork chops, or grilled steak. Serve it warm or at room temperature – it’s equally delicious either way.
Variations
- Herb and garlic: Add 2 minced garlic cloves with the onions and swap the thyme for rosemary or sage.
- Bacon onion pie: Cook 4 slices of bacon until crisp, crumble, and sprinkle half over the onions and the rest on top before baking.
- Swiss and mushroom: Replace the cheddar with Swiss cheese and add 1 cup of sautéed mushrooms to the onions.
- Crustless version: Grease a 9-inch pie plate and skip the crust entirely. Bake as directed, but check for doneness 5–10 minutes earlier since there’s no crust to slow the bake.
Storage and Reheating
Store leftover onion 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 for up to 2 months; thaw overnight in the refrigerator and reheat in the oven.
Frequently Asked Questions
Can I make this ahead of time? Yes, you can assemble the pie (without baking) up to 24 hours in advance. Cover and refrigerate, then bake as directed, adding 5–10 minutes to the baking time since you’re starting from cold.
Why is my pie watery? This usually happens if the onions weren’t cooked down enough or the pie was underbaked. Make sure the onions are soft and golden before adding them, and bake until the center is fully set. If you’re using a very juicy onion variety, you can drain them after cooking.
Can I use a frozen pie crust? Absolutely. Thaw it in the refrigerator overnight, then proceed with the recipe. You may need to bake the crust a few minutes longer if it’s very thick.
What if I don’t have a pie plate? You can use a 9-inch deep-dish pie plate or a 9-inch tart pan. A 9×9-inch square baking dish will work too, but the pie will be thinner and bake faster – start checking at 25 minutes.
Is this pie gluten-free? The filling is naturally gluten-free, so just use a gluten-free pie crust. You can also make a crustless version by greasing the pie plate well.
Can I use a different cheese? Yes, any good melting cheese works – Gruyère, Monterey Jack, or fontina are all excellent. Avoid very oily cheeses like mozzarella, which can make the pie greasy.