Main Courses
This zucchini onion pie recipe transforms summer vegetables into a savory, golden masterpiece that rivals any traditional dessert—just with a completely different flavor profile.
The secret lies in the herb-crusted layers that encase a rich, creamy filling of sautéed zucchini and caramelized onions, all bound together with eggs and melted cheese.
I developed this recipe after searching for a way to use garden-fresh zucchini before they turned to mush, and the results were so impressive that it became a staple at family gatherings.
The beauty of this dish is its versatility—whether you use a classic pie crust, a gluten-free alternative, or even a vegan cheese blend, the technique remains the same. The filling requires careful sautéing to develop deep, caramelized flavors, while the cheese topping creates that perfect golden crust.
Baking time is precise, ensuring the bottom stays crisp while the center remains tender and creamy, just like a well-made quiche but with the structure of a pie.
What you’ll end up with is a savory pie that’s rich, hearty, and packed with flavor—ideal for brunch, a light dinner, or even as an impressive appetizer for guests. The herb crust adds an aromatic touch, while the cheese topping provides a satisfying crunch.
This recipe delivers restaurant-quality results with minimal effort, making it perfect for both beginners and experienced cooks looking to elevate their savory baking skills.
The best part? Leftovers reheat beautifully, and the pie can be prepped ahead of time, allowing the flavors to meld even further. Whether you’re serving it at a potluck or enjoying a quiet meal at home, this zucchini onion pie is sure to become a new favorite.
Let’s get started on creating this savory delight!
Ingredients for zucchini onion pie
Garden-fresh zucchini and caramelized onions meet golden cheese in this savory masterpiece—no dessert needed!
| Ingredient | Amount | Notes |
|---|---|---|
| Zucchini 🥒 | 2 ½ lb | Medium-sized, grated or finely chopped |
| Yellow Onions 🧅 | 2 whole | Medium, thinly sliced |
| Unsalted Butter 🧈 | ½ cup | Cold, cubed for crust |
| All-Purpose Flour 🌾 | 1 ½ cups | For crust, plus extra for dusting |
| Fresh Dill 🌿 | ¼ cup | Chopped, for herb crust |
| Large Eggs 🥚 | 4 whole | Room temperature, beaten |
| Shredded Sharp Cheddar Cheese 🧀 | 2 cups | Freshly grated preferred |
| Gruyère Cheese 🧀 | 1 cup | Shredded, for extra flavor |
| Heavy Cream 🥛 | ½ cup | Full-fat for creaminess |
| Vegetable Stock 💧 | ½ cup | Homemade or low-sodium |
| Salt 🧂 | 1 ½ tsp | Kosher or sea salt |
| Black Pepper 🌶️ | ½ tsp | Freshly ground preferred |
| Garlic Powder 🧄 | 1 tsp | For crust seasoning |
| Fresh Thyme Leaves 🌿 | 1 tbsp | Chopped, for extra aroma |
Zucchini is the star here, so grab the freshest you can find—farmers markets or Whole Foods are my go-tos. Look for firm, bright green ones with no soft spots. The onions? Yellow or red both work, but yellow caramelizes better. For the cheese, sharp cheddar is a must—it melts perfectly and adds that tangy kick. Gruyère takes it to the next level if you want to splurge. The butter should be cold and cubed for that perfect crust texture—don't let it soften before mixing!
No fresh dill? Dried dill at one-third the amount works in a pinch, but fresh is absolutely essential for that bright flavor. Short on Gruyère? Extra cheddar plus a sprinkle of Parmesan mimics the complexity. The vegetable stock can be swapped for white wine if you're feeling fancy—just reduce it first. For the crust, if you don't have fresh thyme, dried thyme at half the amount gets you close. And if you're gluten-free, swap the all-purpose flour for a 1:1 gluten-free blend. The key is keeping everything cold until the last minute—trust me on this!
This pie is a prep-ahead dream. Assemble the crust and filling, then refrigerate for up to 24 hours before baking—flavors meld beautifully. Once baked, it reheats like a champ—350°F for 10 minutes until bubbly. Store leftovers in the fridge for 4 days or freeze for 3 months. I always make a double batch because it disappears fast. The crust stays crispy for days if you keep it covered—just slice it warm for the best experience!
Why You'll Love This Recipe
- No Fuss, One Bowl: I swear, this recipe lives in my "I can't believe it's this easy" folder. Grate the zucchini raw—no peeling, no boiling—then mix it straight into the flour and butter. The onions caramelize while you stir, and suddenly you've got a golden, flaky crust without rolling dough or waiting for pie dough to chill.
- Dill-icious Crispy Magic: That fresh dill? It’s the secret weapon here. The flour crust gets so tender it practically melts, but the dill keeps it bright and herby—like a cross between a savory quiche and a rustic tart. Honestly, the first time I bit into it, I texted my mom: "This is what I’ve been missing in my life."
- Potluck or Picnic: Between us, this is my go-to for gatherings where I don’t want to bring a casserole. Slice it into wedges, wrap in foil, and it’s ready for a picnic, potluck, or even a lazy Sunday brunch. The crust holds up better than you’d think—no soggy bottoms here.
Step-by-step instructions for zucchini onion pie
Here's the method that delivers a golden, cheesy top and tender layers every single time.
Prepare the Vegetable Filling
Preheat your oven to 375°F while you work. In a large skillet, melt 0.5 cup unsalted butter over medium heat. Add the 2 whole yellow onions, sliced thinly, and cook for 8-10 minutes until they're soft and translucent, stirring occasionally. Here's the thing—don't rush this step. You want the onions to become sweet and caramelized.
Add the 2.5 lb zucchini, grated or finely chopped, to the skillet. Stir well to combine with the onions and cook for another 5 minutes until the zucchini has softened. You'll notice the mixture will release quite a bit of liquid—this is normal. Drain any excess liquid into a measuring cup and set it aside. You should have about 0.5 cup of vegetable liquid, which we'll use later.
Create the Herb-Crusted Topping
In a food processor, combine 1.5 cups all-purpose flour, 1 tsp garlic powder, 1.5 tsp salt, 0.5 tsp black pepper, 0.25 cup fresh dill, and 1 tbsp fresh thyme leaves. Pulse until just combined—don't over-process or you'll develop gluten. Transfer the mixture to a bowl and cut in the 0.5 cup cold unsalted butter using a pastry cutter or your fingers until the mixture resembles coarse crumbs with pea-sized butter pieces.
In a separate bowl, whisk together the 4 whole large eggs and 0.5 cup heavy cream until well combined. Gradually add the egg mixture to the flour mixture, stirring just until everything comes together. The dough should hold its shape when pressed but still be soft. If it's too crumbly, add 1-2 tablespoons of vegetable stock from your earlier drainage.
Assemble the Pie in Layers
Grease a 9-inch pie dish with butter or line it with parchment paper. Spread the zucchini and onion mixture evenly in the bottom of the prepared dish. This is where it gets fun—sprinkle 2 cups shredded sharp cheddar cheese and 1 cup gruyère cheese evenly over the vegetable layer. The cheese will melt into a luscious filling when baked.
Drop spoonfuls of the herb-crusted dough mixture over the cheese layer, spacing them about 1 inch apart. The dough should cover the cheese completely but not be packed too tightly. This creates those beautiful air pockets that make the pie so satisfying. If you have any leftover dough, press it into a single layer on top to create a solid crust.
Bake to Golden Perfection
Transfer the assembled pie to the preheated oven and bake for 35-40 minutes until the crust is deep golden brown and the filling is bubbling at the edges. Here's the moment that matters: the top should be crispy and golden, not pale. If it's browning too quickly, tent the pie with aluminum foil to prevent burning while it continues to cook through.
For the final 5 minutes of baking, increase the oven temperature to 400°F to get that beautiful, crispy crust. You'll know it's done when the crust is golden and the filling is set but still creamy. Remove from the oven and let it rest for 10 minutes before slicing—this allows the filling to set properly and makes for cleaner slices.
Pro Tips For Making Zucchini Onion Pie
- Sauté Onions Low and Slow: I used to rush the onions and end up with bitter, watery mush—this pie needs sweet, caramelized depth. Cook them on medium-low for 15-20 minutes, stirring occasionally, until they’re golden and syrupy. If they darken too fast, pull them off the heat for a minute to let them cool slightly.
- Salt the Zucchini Immediately: Toss grated zucchini with a generous pinch of salt (about ½ tsp per cup) right after grating. Let it sit for 10 minutes in a colander to draw out excess moisture—this prevents a soggy crust later. (Yes, even if you’re impatient like me.)
- Use Cold Butter for Crust: Cut that unsalted butter into the flour mixture while it’s still cold, using a pastry cutter or your fingers. Warm butter creates steam, which makes the crust tough. Keep everything chilled until you’re ready to roll it out—this guarantees flaky layers.
- Skip the Crowding in the Pan: After adding the filling, resist the urge to cram it all in at once. Spread it in a single even layer—about ½-inch thick—so it cooks through evenly without a gummy center. (Your future self will thank you when you’re not scraping burnt bits off the bottom.)
Essential equipment for zucchini onion pie
Pie Dish Essentials
For this recipe, a 9-inch pie dish is ideal, but a 9x13-inch baking dish works too if you prefer a larger portion. I recommend using a ceramic or glass dish—they distribute heat evenly and prevent soggy bottoms.
If you don’t have one, a deep cast-iron skillet is a great alternative. For extra insurance against sticking, line the dish with parchment paper or lightly grease it with butter or olive oil. 🧑🍳
Crust Tools
A food processor is a game-changer for mixing the herb crust—it saves time and ensures even distribution of ingredients. If you’re making this by hand, a pastry cutter or even your fingers work, but keep the butter cold for that perfect flaky texture.
For shaping the dough, a pie crust roller helps, but a rolling pin or even a wine bottle in a pinch will do. The key is to keep the dough thin and even for even baking. ⚡
Cheese Prep Must-Haves
Freshly grated cheese makes all the difference—pre-shredded cheese contains anti-caking agents that prevent proper melting. Invest in a box grater or microplane for the best results. For the Gruyère, I recommend using a fine-hole grater to avoid large chunks.
If you’re short on time, a food processor with a grating attachment works too. Store your cheese in the fridge until ready to use to keep it firm and easy to grate. 🧀
Baking Gear
An oven thermometer is non-negotiable—home ovens can vary by 25°F or more, and precision is key here. I use a Thermoworks Thermapen for accuracy. For the final crisping step, a pie bird or aluminum foil tent helps if the crust browns too quickly.
If you don’t have one, crumpled foil works. A wire cooling rack keeps the pie elevated for even cooling, preventing a soggy bottom. 🌡️
Optional Upgrades
For a gluten-free version, swap the all-purpose flour for a 1:1 gluten-free blend like Bob’s Red Mill. A mandoline slicer speeds up onion prep, and a laser thermometer (like the Meater) lets you check the pie’s internal temp without opening the oven.
For extra flavor, a mortar and pestle can help finely chop fresh herbs like dill and thyme. These aren’t essential, but they elevate the dish to restaurant-quality. ✨
Nutrition facts
Frequently asked questions
Can I make this zucchini and onion pie without a traditional crust?
For a crustless version, simply spread the zucchini-onion filling in a greased baking dish, top with cheese, and bake at 375°F for 25-30 minutes until bubbly and golden. The herb mixture can also be used as a topping instead of a crust—just sprinkle it over the cheese before baking. This works especially well in a 9x13-inch dish for a casserole-style presentation.
How do I prevent the crust from becoming soggy?
Sogginess happens when moisture seeps through. First, ensure your zucchini is fully drained after cooking—press it gently in a clean towel. Second, bake the pie at the recommended 350°F for 35-40 minutes before increasing heat to 400°F for the final 5 minutes. Finally, avoid opening the oven door too early, as heat loss slows browning. A wire cooling rack underneath the pie dish also helps with airflow.
Can I substitute other vegetables in this recipe?
Yes! Swap zucchini for 1.5 cups grated butternut squash or 1 cup finely chopped eggplant (salt and drain first). For onions, try leeks or shallots—just reduce cooking time to 5-7 minutes to avoid overcooking. Bell peppers add color and sweetness, but reduce the total vegetable volume by 0.5 cup to maintain balance. Always sauté until tender but not mushy.
Why did my pie turn out dense instead of light and fluffy?
Dense texture usually means overmixing the dough or underbaking. For the crust, mix just until combined—overworking develops gluten. Bake until the center reaches 160°F (use an instant-read thermometer) and the top is golden brown. If the filling seems too thick, add 1-2 tablespoons of vegetable stock before assembling. Also, ensure your eggs and cream are at room temperature for proper emulsification.
How long can I store leftovers, and how do I reheat?
Store leftovers in an airtight container in the fridge for up to 4 days or freeze for 3 months. To reheat, cover with foil and warm at 350°F for 10-15 minutes until bubbly. For best texture, avoid microwaving—it makes the crust soggy. If reheating from frozen, bake at 350°F for 25-30 minutes with foil, then remove foil for the last 5 minutes to crisp the top.
