Desserts
This German onion pie recipe delivers the perfect balance of sweet and savory caramelized onions layered between a crispy, buttery crust—just like the ones you’d find in a traditional German bakery.
The secret lies in slow-cooking the onions until they’re tender and deeply golden, then combining them with a rich egg mixture and sharp cheddar for that signature tangy depth. I’ve perfected this recipe over years of testing, ensuring every slice offers a satisfying contrast of textures and flavors.
The foundation of this pie is a simple yet sturdy dough, either a classic shortcrust or a slightly sweetened bread-based version, depending on regional preferences. Bavarian-style pies often include a touch of sugar in the dough to complement the onions, while northern variations might rely on a heartier rye crust.
The filling transforms ordinary onions into a caramelized masterpiece through patience—low and slow cooking until they’re almost jam-like in consistency. This method builds layers of flavor that make the pie irresistible.
What you’ll end up with is a golden, bubbly pie with a crisp bottom crust and a soft, custardy top, where each bite delivers melty cheese, tender onions, and just the right amount of sweetness.
The aroma alone will have everyone gathering around the table, and the versatility means it works as a hearty side dish or even a main course when paired with a crisp green salad or a cold German beer.
This is comfort food at its finest, with just the right balance of tradition and approachability.
Whether you’re making it for a family gathering or a cozy weekend meal, this onion pie brings a taste of Germany to your kitchen without the fuss. The recipe scales easily, so you can adjust the size to fit your pan and your appetite.
Let’s get started on creating a dish that’s as rewarding to make as it is to eat.
Ingredients for german onion pie
Sweet caramelized onions, rich cheddar, and a crisp crust—this pie brings German bakery flavors to your kitchen.
| Ingredient | Amount | Notes |
|---|---|---|
| Yellow Onions 🧅 | 6 large | Thinly sliced, yellow preferred |
| Unsalted Butter 🧈 | ¾ cup | Cold, cut into small pieces |
| All-Purpose Flour 🌾 | 1 cup | For thickening caramelized onions |
| Granulated Sugar 🍯 | ¼ cup | Brown sugar for deeper flavor |
| Sharp White Cheddar Cheese 🧀 | 1 ½ cups | Shredded, sharp flavor preferred |
| Large Eggs 🥚 | 4 whole | Room temperature for even baking |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Salt 🧂 | 1 ½ tsp | Kosher or sea salt preferred |
| Black Pepper 🌶️ | ½ tsp | Freshly ground for best flavor |
| Garlic Powder 🧄 | ½ tsp | For subtle garlic depth |
| Pie Crust 🍰 | 1 pre-made | 9-inch size, refrigerated |
| Extra-Virgin Olive Oil 🫒 | 1 tbsp | For greasing pie dish |
The onions are the heart of this pie, so don’t skimp on quality. Yellow onions work best—they caramelize beautifully. Grab a bag from Whole Foods or your local market for the freshest, firmest bulbs. If you’re feeling fancy, red onions add a subtle sweetness too. The key is patience—slow cooking transforms them into jam-like perfection. For the crust, Pillsbury Classic works in a pinch, but a homemade shortcrust or rye crust (if you’re feeling traditional) elevates everything. If you’re buying pre-made, check the expiration date—fresh is always better.
No sharp cheddar? Gruyère or Emmental add a nice depth. Short on heavy cream? Half-and-half or whole milk works, but the texture won’t be as rich. The pie crust can be swapped for a phyllo dough crust if you’re in a hurry—just brush it with melted butter for crispiness. For the onions, if you’re in a rush, sauté them in butter first to soften before caramelizing. And if you’re making this ahead, caramelize the onions a day in advance—they taste even better after resting.
This pie reheats beautifully—just 350°F for 15-20 minutes until bubbly. Store leftovers in an airtight container for 3-4 days in the fridge. Freezes well too—up to 2 months if wrapped tightly. I always make a double batch because it disappears fast. The crust stays crispy if you keep it covered with foil while reheating, then uncover for the last few minutes to get that golden finish.
Why You'll Love This Recipe
- Caramelized Onion Magic: The slow cook of those onions in butter until they’re sweet and jammy? That’s the star here—no fancy techniques, just patience (and a little elbow grease) that pays off in every bite.
- Cheese-Lover’s Dream: Sharp white cheddar melts into gooey perfection while the crust stays crisp. Honestly, the way it stretches and pulls when you cut into it? That’s the moment you’ll want seconds.
- Weeknight or Potluck: This pie reheats beautifully for lazy nights, but it’s also the showstopper at gatherings. Between us, it’s the dish people always ask for—whether it’s a family dinner or a church potluck.
- Pantry Staple Power: You’re probably already stocked for this. Onions, butter, flour, sugar, and cheese? It’s budget-friendly, uses what you have, and even leftovers taste like a hug in pie form.
Step-by-step instructions for German onion pie
Let's create this comforting pie with layers of caramelized onions and a rich custard filling.
Caramelize the Onions Slowly
In a large skillet, melt the 0.75 cup unsalted butter over medium-low heat. Add the 6 large yellow onions, sliced thinly, and sprinkle with 1 teaspoon salt and 0.25 cup granulated sugar. Stir to coat evenly.
Cover the skillet and cook for 45 minutes, stirring occasionally. The onions should soften and release moisture. After 45 minutes, uncover and increase heat to medium. Continue cooking for another 15-20 minutes, stirring frequently, until the onions are deep golden brown and the liquid has mostly evaporated. This slow process develops the sweet, caramelized flavor that makes this pie special. If the onions stick, add a splash of water and scrape up the browned bits—they're packed with flavor.
Once fully caramelized, remove the skillet from heat and stir in the 1 cup all-purpose flour. This will help thicken the onions and create a better texture for the filling. Let the mixture cool slightly while you prepare the rest of the ingredients.
Prepare the Custard Filling
In a medium bowl, whisk together the 4 whole large eggs, 0.5 cup heavy cream, 0.5 teaspoon black pepper, 0.5 teaspoon garlic powder, and the remaining 0.5 teaspoon salt. The mixture should be smooth and well combined. Set this aside.
Next, add the 1.5 cups shredded sharp white cheddar cheese to the cooled caramelized onions. Stir until the cheese melts into the onions, creating a creamy, cheesy base. This step ensures the cheese is fully incorporated and adds a rich, tangy depth to the filling.
Finally, gently fold the egg mixture into the onion-cheese combination until everything is evenly distributed. The filling should be thick but still pourable. Taste and adjust seasoning if needed—this is your last chance to balance the flavors before baking.
Assemble the Pie
Preheat your oven to 375°F. Grease a 9-inch pie dish with 1 tablespoon extra-virgin olive oil to prevent sticking. Roll out the pre-made pie crust and carefully press it into the bottom and up the sides of the dish, trimming any excess. Chill the crust in the refrigerator while you prepare the filling.
Once the crust is chilled, pour the onion filling into the pie dish, spreading it evenly. The filling should come up to about ½ inch from the top edge of the crust. If the crust is flaky and sturdy, you can leave it as is. For extra strength, you can add a second pie crust on top, crimping the edges to seal. Cut a few small slits in the top crust to allow steam to escape.
Bake the pie for 45-50 minutes, until the filling is set and the crust is golden brown. The center should still be slightly jiggly—it will firm up as it cools. If the edges brown too quickly, cover them loosely with aluminum foil to prevent burning.
Rest and Serve
Remove the pie from the oven and let it rest for 15-20 minutes before slicing. This resting time allows the filling to fully set and the juices to redistribute, ensuring each slice is creamy and delicious.
Serve warm or at room temperature. The contrast of the crispy, flaky crust with the rich, caramelized onion filling makes this pie a true comfort food. Pair it with a simple green salad or crusty bread for a complete meal. Leftovers keep well in the refrigerator for up to 3 days, though they rarely last that long!
Pro Tips For Making German Onion Pie
- Caramelize Onions Slowly: This isn’t a race—low and steady wins the flavor. Cook those onions at medium-low heat for at least 30 minutes, stirring occasionally, until they’re deep amber and breaking down into a jammy consistency. I used to rush it, and the pie just tasted like sad, undercooked onion. Patience here makes the whole dish sing.
- Grate Cheese Fresh: Pre-shredded cheese has anti-caking agents that make it clump and weep moisture in the oven. Grab a box of sharp white cheddar and grate it yourself—just before adding it to the pie. It’ll melt smoother, distribute better, and give you that perfect stretchy, gooey texture instead of a sad, greasy mess.
- Don’t Skip the Bake Time: The crust needs that final 5-10 minutes under the broiler to turn golden and crisp. Skimp here, and you’ll end up with a pale, doughy bottom that’s more sad than satisfying. Watch it like a hawk—it goes from perfect to burnt faster than you think.
- Sweat Onions in Butter: Ditch the oil—unsalted butter adds richness and helps caramelize the onions evenly. Use about 4 tablespoons for a 9-inch pie, and don’t skimp. The butter’s fat coats the onions and keeps them from sticking while building flavor. (Yes, even if you’re impatient like me.)
Make-ahead tips for this dish
Onion Prep Ahead
Caramelizing onions takes the most time, so I always do this step first—sometimes even a day ahead. Cook them until deep golden brown, then stir in the 1 cup flour to thicken.
Store in an airtight container in the fridge for up to 3 days or freeze for 2 months. When ready to assemble, just reheat gently in a skillet with 1 tbsp butter to revive their flavor. This shortcut saves hours on baking day! 🌟
Crust Assembly
Roll out your pie crust and line the dish, but don’t bake it blind. Instead, chill the assembled crust (with filling) in the fridge for 30 minutes before baking.
This prevents shrinking and makes the edges crispier. For extra stability, brush the bottom crust with egg wash before adding filling—it creates a golden, sturdy base. 🥧
Filling Prep
Mix the egg and cream filling last minute, but you can prep the cheese-onion combo ahead. Combine the 1.5 cups cheddar with the cooled caramelized onions and refrigerate.
When ready to bake, just whisk in the eggs and cream. This keeps the filling fresh and prevents curdling from sitting too long. 🧀
Baking Timeline
For a stress-free bake, preheat your oven while the pie rests. If making ahead, bake the pie 15 minutes less than directed, then cool completely. Reheat at 350°F for 20 minutes covered, then 5 minutes uncovered for a crisp top. This method ensures perfect texture every time. ⏰
Portion Control
Slice the pie into 8 wedges before storing to keep portions neat. Wrap individual slices in parchment paper and freeze for 1 month. To reheat, bake at 375°F for 10-12 minutes—no microwave needed! This makes grab-and-go lunches effortless. 🍽️
Freezer-Friendly Tips
For a fully frozen pie, bake it 10 minutes less than directed, then cool completely. Wrap tightly in foil, then plastic wrap, and freeze. Thaw overnight in the fridge before reheating. The crust stays crispy, and the filling remains creamy—just like fresh! ❄️
Nutrition facts
Frequently asked questions
Can I use red onions instead of yellow for this pie?
Yes, but the flavor will differ slightly. Red onions add a milder, sweeter note that caramelizes beautifully, though they won't develop the deep golden color of yellow onions. For a balanced result, try a mix of both—yellow for depth and red for subtle sweetness.
What's the secret to preventing a soggy crust?
Pre-bake the bottom crust for 5-7 minutes at 375°F before adding filling, or chill the assembled pie for 30 minutes before baking. Adding a sprinkle of crushed cornflakes to the bottom also absorbs excess moisture.
Can I make this pie vegetarian or vegan?
For vegetarian, use dairy-free cheese and egg substitutes like flax eggs. For fully vegan, replace eggs with ½ cup silken tofu blended with 1 tbsp cornstarch and use vegan butter/cheese. The texture will be slightly denser but still delicious.
How do I know when the onions are perfectly caramelized?
They're done when they're deep golden brown, almost jam-like, with no raw edges. The cooking time varies—50-60 minutes total—but they should release their moisture and stick slightly to the pan when stirred.
What's the best way to reheat leftovers?
Wrap slices in foil and bake at 350°F for 10-12 minutes until heated through. For microwave reheating, cover with a damp paper towel and heat for 30-45 seconds—this keeps the crust crispy.
