Sweet onion pie is a savory custard tart that turns caramelized onions, eggs, and cream into a rich, silky filling baked in a flaky crust. It works because the slow-cooked onions become sweet and jammy, while the custard sets into a tender, sliceable pie that works for brunch, lunch, or a light dinner. This recipe uses a standard 9-inch pie pan and gives you a foolproof method for a golden, set filling every time.
Ingredients
- 1 (9-inch) unbaked pie crust (homemade or store-bought, about 8 ounces / 225 g)
- 3 tablespoons (42 g) unsalted butter
- 3 large sweet onions (about 2 pounds / 900 g total), thinly sliced
- 1 teaspoon salt, divided
- 1/2 teaspoon black pepper
- 1/4 teaspoon ground nutmeg (optional)
- 3 large eggs
- 1 cup (240 ml) heavy cream
- 1/2 cup (120 ml) whole milk
- 1 1/2 cups (170 g) shredded Gruyère or Swiss cheese
- 2 tablespoons (15 g) all-purpose flour (for dusting the crust)
Instructions
- Preheat your oven to 375°F (190°C). If using a homemade crust, roll it out to about 12 inches (30 cm) round and fit it into a 9-inch (23 cm) pie pan. Trim and crimp the edges. If using a store-bought crust, place it in the pan. Chill the crust in the freezer for 15 minutes while you prepare the filling.
- Line the chilled crust with parchment paper and fill with pie weights or dried beans. Bake for 15 minutes. Remove the paper and weights, then bake for another 5–7 minutes until the bottom looks dry and lightly golden. Set aside to cool slightly. Reduce the oven temperature to 350°F (175°C).
- In a large skillet over medium heat, melt the butter. Add the sliced onions and 1/2 teaspoon of the salt. Cook, stirring occasionally, for 20–25 minutes until the onions are very soft and golden brown, reducing heat if they start to burn. Remove from heat and let cool for 10 minutes.
- In a medium bowl, whisk the eggs, cream, milk, remaining 1/2 teaspoon salt, pepper, and nutmeg (if using) until smooth.
- Spread the caramelized onions evenly over the bottom of the pre-baked crust. Sprinkle the shredded cheese over the onions. Pour the egg mixture over the top, making sure it covers the filling evenly.
- Place the pie on a baking sheet to catch any spills. Bake at 350°F (175°C) for 35–45 minutes, until the center is set but still slightly jiggly when gently shaken. A knife inserted near the center should come out clean, or the internal temperature should read 160°F (71°C) for food safety.
- Let the pie cool on a wire rack for at least 15 minutes before slicing. Serve warm or at room temperature.
Tips
- Caramelize properly: Don’t rush the onions. Cooking them low and slow brings out their natural sugars. If they brown too quickly, add a splash of water to deglaze the pan.
- Blind bake the crust: This step is essential to avoid a soggy bottom. Freezing the crust before baking helps prevent shrinking.
- Check for doneness: The custard should be set around the edges but still slightly wobbly in the center when you remove it from the oven; it will finish setting as it cools.
- Substitutions: You can use half-and-half instead of cream and milk, or swap the Gruyère for sharp cheddar, fontina, or Monterey Jack. For a lighter version, use all milk, but the texture will be less rich.
Serving Suggestions
Serve sweet onion pie warm, cut into wedges, alongside a crisp green salad with a simple vinaigrette. It also pairs well with roasted vegetables or a bowl of tomato soup. For brunch, offer it with fresh fruit and mimosas. It holds up well at room temperature, making it a great potluck dish.
Variations
- Herbed version: Add 1 tablespoon fresh thyme or 2 teaspoons chopped rosemary to the onion mixture.
- Bacon and onion: Cook 4 slices of bacon until crisp, crumble, and add half to the filling and sprinkle the rest on top.
- Add greens: Sauté 2 cups of spinach or kale with the onions until wilted, then proceed with the recipe.
- No-crust option: Skip the crust and bake the filling in a buttered 9-inch pie dish; reduce baking time to 25–30 minutes. This is more like a frittata.
Storage and Reheating
Refrigerate leftover pie in an airtight container or covered with foil for up to 4 days. To reheat, place slices in a 350°F (175°C) oven for 10–15 minutes until warmed through. You can also microwave individual slices for 1–2 minutes, but the crust will soften. The pie can be frozen for up to 2 months; wrap tightly in plastic wrap and foil, then thaw overnight in the refrigerator before reheating.
Frequently Asked Questions
Can I use a deep-dish pie pan? Yes, but you may need to increase the baking time by 5–10 minutes and use a bit more custard. A standard 9-inch (2-inch deep) pan is ideal; if using a 9-inch deep dish, add an extra egg and 1/4 cup of cream.
Why is my pie watery? Watery pie usually comes from undercooked onions that release moisture during baking. Make sure to cook the onions until they are deeply caramelized and most of the liquid has evaporated. Also, let the pie cool completely before slicing to allow the custard to set.
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 directly from the fridge, adding 10–15 minutes to the baking time. You can also bake it fully and reheat as directed.
What is the best cheese for sweet onion pie? Gruyère is classic for its nutty flavor and good melting. Swiss, fontina, or even a sharp cheddar work well. Avoid pre-shredded cheeses as they contain anti-caking agents that can affect texture.
How do I know when the pie is done? The center should be just set—not liquid—but still slightly jiggly. A knife inserted near the center should come out clean, or the internal temperature should reach 160°F (71°C). Overbaking can cause the custard to curdle.
Can I use a glass pie pan? Yes, but note that glass conducts heat differently. You may need to lower the oven temperature by 25°F (15°C) and watch the edges to prevent overbrowning. Also, always place a glass pan on a baking sheet to help distribute heat evenly.