Nestled in my memory like the warm scent of baking bread, this onion pie recipe comes straight from my grandmother’s weathered recipe box. Nothing fancy, just honest ingredients transformed into something magical through patience and love. This humble dish speaks to simpler times when a good meal meant gathering around the kitchen table with loved ones.
Why This Recipe Works
- The slow caramelization of three pounds of yellow onions creates a deep, sweet foundation that balances perfectly with the savory elements, transforming ordinary onions into something extraordinary through patient cooking
- Using both heavy cream and whole milk in the custard filling ensures a rich, velvety texture that sets beautifully without becoming too dense, creating that perfect sliceable consistency that holds together when served
- The combination of freshly grated nutmeg and black pepper adds subtle warmth and complexity that elevates the sweet onions without overpowering their delicate flavor profile
- Pre-baking the pie crust prevents the dreaded soggy bottom while allowing the filling to cook evenly, resulting in a perfectly crisp foundation that complements the creamy onion filling
- Resting the completed pie for at least thirty minutes allows the custard to set properly, making clean slices possible and giving the flavors time to meld together harmoniously
Ingredients
- 1 9-inch unbaked pie crust, homemade or store-bought
- 3 pounds yellow onions, peeled and thinly sliced
- 3 tablespoons unsalted butter
- 1 tablespoon olive oil
- 3 large eggs
- 1 cup heavy cream
- 1/2 cup whole milk
- 1 cup grated Gruyère cheese
- 1/2 teaspoon freshly grated nutmeg
- 1 teaspoon kosher salt
- 1/2 teaspoon freshly ground black pepper
- 2 tablespoons fresh thyme leaves
Equipment Needed
- 9-inch pie plate
- Large skillet or Dutch oven
- Mixing bowls
- Whisk
- Measuring cups and spoons
- Cheese grater
- Oven
- Pie weights or dried beans
Instructions

Preparing the Pie Crust
Begin by placing your 9-inch unbaked pie crust into a standard pie plate, gently pressing it into the corners and up the sides without stretching the dough. Use your fingers to crimp the edges, creating that beautiful rustic look that says homemade with love. Now, line the crust with parchment paper and fill it with pie weights or dried beans—this step is crucial for preventing the crust from puffing up during baking. Place it in a preheated 375°F oven and bake for exactly 15 minutes, until the edges just begin to turn golden. Remove from the oven and carefully lift out the parchment with the weights, then return the empty crust to the oven for another 5 minutes to dry out the bottom. You’ll know it’s ready when the surface looks matte rather than shiny. This pre-baking ensures your onion pie will have that perfect crisp foundation that won’t get soggy from the creamy filling.
Caramelizing the Onions
While the crust is baking, melt 3 tablespoons of unsalted butter with 1 tablespoon of olive oil in a large skillet or Dutch oven over medium heat. The combination of butter for flavor and oil for higher smoking point creates the perfect cooking medium. Add all 3 pounds of thinly sliced yellow onions—they’ll seem like an overwhelming amount at first, but trust the process. Stir to coat every strand with the fat, then reduce the heat to medium-low. Here’s where patience becomes your secret ingredient: cook the onions slowly, stirring every 10-15 minutes, for about 45-50 minutes total. You’re looking for that beautiful golden-brown color and sweet aroma that signals proper caramelization. The onions should reduce to about one-third of their original volume and become meltingly soft. If they start sticking, add a tablespoon of water to deglaze the pan and scrape up those flavorful browned bits.
Creating the Custard Filling
Assembling the Pie
Now for the satisfying assembly: spread your beautifully caramelized onions evenly across the pre-baked pie crust, creating a uniform layer that reaches all the way to the edges. Sprinkle 1 cup of grated Gruyère cheese over the onions—the nutty, slightly sweet flavor of this cheese complements the caramelized onions perfectly. Slowly pour the custard mixture over the onions and cheese, using a spatula to ensure it distributes evenly and seeps into all the nooks and crannies. Tap the pie plate gently on the counter to release any air bubbles that might be trapped beneath the surface. The filling should come right up to the edge of the crust but not overflow. For an extra touch, sprinkle that reserved pinch of fresh thyme over the top—it’ll make your pie look as beautiful as it tastes.
Baking to Perfection
Place your assembled pie on a baking sheet—this makes handling easier and catches any potential drips. Slide it into a preheated 350°F oven on the middle rack and bake for 45-50 minutes. You’re looking for three key indicators of doneness: the edges should be puffed and golden brown, the center should show just a slight jiggle when you gently shake the pan (it will continue to set as it cools), and a knife inserted near the center should come out clean. If the crust edges begin to brown too quickly, loosely tent them with aluminum foil. The beautiful aroma filling your kitchen will tell you when it’s nearly done—that combination of sweet onions, nutmeg, and baking pastry is simply unforgettable.
Resting and Serving
Once perfectly baked, transfer your onion pie to a wire cooling rack and let it rest for at least 30 minutes before slicing. This resting period is non-negotiable—it allows the custard to set properly so you get clean, beautiful slices rather than a runny mess. The pie will deflate slightly as it cools, which is completely normal. When ready to serve, use a sharp knife to cut wedges, wiping the blade clean between cuts for neat presentation. This onion pie is wonderful warm, at room temperature, or even cold straight from the refrigerator the next day. Serve it as the star of a simple supper with a crisp green salad, or as a spectacular side dish for roasted meats.
Tips and Tricks
If you want to take your onion pie to the next level, consider these additional insights gathered from years of kitchen experience. When selecting onions, yellow onions provide the perfect balance of sweetness and sharpness after caramelizing, but don’t be afraid to mix varieties—a combination of yellow and sweet onions like Vidalia can create interesting depth. For the most even slicing, use a mandoline slicer set to 1/8-inch thickness, but always use the safety guard to protect your fingers. If you’re making your own pie crust from scratch, adding a tablespoon of grated Parmesan cheese to the dough adds wonderful savory notes that complement the filling beautifully.
For those busy days when you need to get ahead, you can caramelize the onions up to three days in advance and store them in an airtight container in the refrigerator. The same goes for the pie crust—you can pre-bake it a day ahead and store at room temperature, tightly wrapped. When working with the custard filling, make sure all your ingredients are at room temperature before mixing to ensure even cooking and prevent the butter in the crust from solidifying. If you notice your pie browning too quickly but the center isn’t set, create a foil shield by cutting out the center of a square of aluminum foil and placing just the exposed crust edges.
For the most beautiful presentation, brush the crimped edges of your pie crust with an egg wash (one egg beaten with a tablespoon of water) before the initial baking—this will give it that gorgeous golden shine. If you’re serving this for company, consider making individual pies in 4-inch tart pans—they bake in about 25-30 minutes and make for elegant individual servings. Leftover onion pie keeps wonderfully in the refrigerator for up to 4 days and can be gently reheated in a 300°F oven for 15 minutes or enjoyed cold. The flavors actually deepen overnight, making leftovers something to look forward to rather than just tolerate.
Recipe Variations
- For a heartier main dish version, add 6 slices of cooked and crumbled bacon or 1 cup of diced ham to the onions before adding the custard. The salty, smoky notes play beautifully against the sweet onions, and it transforms the pie into a complete meal that needs only a simple green salad alongside. You could also substitute the Gruyère with sharp cheddar for a more pronounced cheese flavor that stands up well to the additional proteins.
- Create a vegetarian delight by adding 1 cup of sautéed mushrooms along with the caramelized onions. Cremini or shiitake mushrooms work particularly well, adding an earthy depth that complements the sweetness of the onions. For an extra layer of flavor, deglaze the mushroom pan with a splash of sherry or white wine before combining with the onions. This variation is particularly wonderful in the autumn months when mushrooms are at their peak.
- For a French-inspired twist, replace the Gruyère with 1/2 cup of grated Emmental and 1/2 cup of Comté cheese, and add a tablespoon of Dijon mustard to the custard mixture. Sprinkle the top with a tablespoon of grated Parmesan during the last 10 minutes of baking for a beautiful golden crust. This variation channels the flavors of a classic French onion soup in pie form, perfect for impressing guests or making an ordinary Tuesday feel special.
- Transform this into a spring celebration pie by adding 1 cup of fresh peas and 2 tablespoons of chopped fresh dill to the filling. The bright green peas and herbal dill notes lighten the rich custard beautifully, making it ideal for Easter brunch or Mother’s Day gatherings. You could also incorporate some sautéed asparagus tips for additional color and texture, creating a pie that tastes as fresh and vibrant as the season itself.
Frequently Asked Questions
Can I use a different type of onion for this recipe?
While yellow onions are recommended for their perfect balance of sweetness and sharpness when caramelized, you can certainly experiment with other varieties. Sweet onions like Vidalia or Walla Walla will result in an even sweeter, milder pie, while red onions will add beautiful color but have a stronger flavor that some find overpowering. White onions tend to be sharper and less sweet, so I’d recommend using them in combination with yellow onions rather than as a complete substitute. The key is achieving that deep caramelization regardless of variety—the slow cooking process transforms any onion into something magical.
How do I prevent my pie crust from getting soggy?
Avoiding a soggy bottom comes down to three key techniques: proper pre-baking, complete cooling before filling, and ensuring your filling isn’t too wet. When pre-baking, make sure you bake the empty crust for those final 5 minutes after removing the weights—this dries out the surface. Let the crust cool completely before adding the caramelized onions, as adding warm onions to a warm crust creates steam that leads to sogginess. Also, make sure your caramelized onions aren’t swimming in liquid—if they seem wet, drain them briefly before assembling. These simple steps guarantee that satisfying crisp crust every time.
Can I make this recipe ahead of time?
Absolutely! This onion pie is wonderfully accommodating for advance preparation. You can caramelize the onions up to 3 days ahead and refrigerate them, and the pie crust can be pre-baked a day in advance. For best results, I recommend assembling the pie no more than 2 hours before baking and keeping it refrigerated until it goes in the oven. If you need to bake it completely ahead, it reheats beautifully in a 300°F oven for 15-20 minutes, though the texture is best when served within 4 hours of baking. The flavors actually improve with time, making it a great option for entertaining.
What’s the difference between onion pie and quiche?
While both feature a custard filling in a pastry crust, onion pie typically has a higher ratio of filling ingredients to custard, creating a denser, more substantial result. Quiche usually has a lighter, eggier custard that acts as the primary component, while in onion pie, the caramelized onions are the star with the custard playing a supporting role. Texture-wise, onion pie is typically sliceable and firm, while quiche is often creamier and more delicate. The seasoning profile also differs—onion pie relies heavily on the sweetness of caramelized onions enhanced with nutmeg, while quiche often features more cheese and herb-forward flavors.
Can I freeze onion pie?
You can freeze onion pie, though the texture of the custard may change slightly upon thawing. For best results, bake the pie completely, cool it completely to room temperature, then wrap tightly in plastic wrap followed by aluminum foil. Freeze for up to 2 months. To serve, thaw overnight in the refrigerator, then reheat in a 325°F oven for 20-25 minutes until warmed through. The crust may lose some crispness, but the flavor will remain wonderful. I don’t recommend freezing unbaked pie, as the custard can separate during freezing and baking.
Summary
This rustic onion pie captures the essence of farmhouse cooking with its sweet caramelized onions, rich custard filling, and flaky crust. Perfect for any occasion, from simple family dinners to special gatherings, it represents the beautiful alchemy that transforms humble ingredients into something extraordinary through patience and care.



