Main Courses
This zucchini onion pie recipe transforms summer's freshest vegetables into a rich, creamy masterpiece with a golden crust that seals in all the savory goodness.
The secret lies in properly sautéing the onions until they're sweet and translucent, then blending zucchini into a velvety base that forms the pie's luscious filling.
After years of perfecting the balance between tender vegetables and a crispy crust, I've developed a method that delivers restaurant-quality results in your own kitchen.
The beauty of this recipe is its versatility—you can use either a traditional savory pie crust or a sweet shortbread version for a modern twist. What makes it truly special is how the zucchini's natural moisture creates that perfect creamy texture without needing heavy cream.
The onions add sweet depth that complements the earthy zucchini beautifully, while a touch of cheese (like Gruyère or sharp cheddar) ties everything together with a rich, melty finish.
When baked to golden perfection, this pie emerges with a crisp crust that contrasts beautifully against the velvety green filling. The aroma alone will have everyone gathering around your table, and each bite delivers that perfect balance of textures and flavors.
It's the kind of dish that feels indulgent yet remains light enough for summer dining. Whether you're serving it at a picnic or as a main course for dinner, this pie never disappoints.
For those who prefer variations, you can add herbs like thyme or parsley for extra freshness, or even incorporate a quiche-style addition of eggs for extra richness.
The recipe scales beautifully too—perfect for feeding a crowd or making individual portions for meal prep. Let's get started on creating this summer showstopper!
Ingredients for zucchini onion pie
Summer's freshest veggies meet golden crust perfection—this pie is pure comfort in every bite.
| Ingredient | Amount | Notes |
|---|---|---|
| Yellow Onions 🧅 | 2 large | Sliced thin for sweetness |
| Zucchini 🥒 | 3 medium | Unpeeled, grated finely |
| All-Purpose Flour 🌾 | 2 cups | For pie crust base |
| Unsalted Butter 🧈 | 1 cup | Cold, cubed for crust |
| Gruyère Cheese 🧀 | 1 ½ cups | Shredded, aged variety |
| Sharp Cheddar Cheese 🧀 | ½ cup | Shredded, sharp flavor |
| Large Eggs 🥚 | 2 whole | Room temperature |
| Heavy Cream 🥛 | ½ cup | Full-fat for richness |
| Salt 🧂 | 1 ½ tsp | Kosher preferred |
| Black Pepper 🌶️ | ½ tsp | Freshly cracked |
| Fresh Thyme Leaves 🌿 | ¼ cup | Chopped finely |
| Ice Water ❄️ | ½ cup | For dough consistency |
| Extra-Virgin Olive Oil 🫒 | 2 tbsp | For sautéing onions |
The onions are the star here—you want them sweet and translucent, not burnt. Yellow or red both work, but yellow has more natural sweetness. Slice them thinly (about 1/8-inch) so they cook down fast. For the zucchini, medium-sized is ideal—too big and they'll waterlog your filling. I grab mine from local farmers markets in summer, but grocery store zucchini works too. The key is to grate them right before mixing so they don't turn to mush. For the cheese, Gruyère gives that nutty depth, but Parmesan works in a pinch if you're in a hurry.
No Gruyère? Swiss cheese or extra-sharp cheddar both work beautifully—they just melt differently. Fresh thyme is ideal, but dried works at half the amount. The heavy cream can be swapped for Greek yogurt or sour cream if you want it lighter. For the crust, if you don't have time to make it from scratch, store-bought pie crust (like Pillsbury) cuts the work in half. Just make sure it's refrigerated until ready to use. The olive oil matters for sautéing—avoid the cheap stuff—you can taste the difference when the onions caramelize.
This pie reheats like a dream—just 10 minutes at 350°F to get that crispy crust back. Leftovers keep for 4-5 days in the fridge, but honestly, it's best the first day. For meal prep, make individual portions and freeze them—just bake straight from frozen for 15 minutes extra. The crust gets crispier when reheated, so it's perfect for picnics. If you're making ahead, assemble the pie and refrigerate it overnight—flavors meld even better.
Why You'll Love This Recipe
- No-Fuss Assembly: I swear by this recipe when I’m too tired to fuss—just slice onions, grate zucchini, and fold into a buttery crust. The dough comes together faster than takeout, and honestly, the Gruyère melts so perfectly you’d never guess it’s "healthy."
- Onion-Zucchini Magic: That caramelized onion base? Chef’s kiss. The zucchini soaks up all the richness while the Gruyère adds a nutty, melty finish—like a hug in pie form. (Yes, even on a Tuesday night.)
- Lunchbox Hero: Between us, this pie reheats beautifully—pack it for work or school lunches, and it’s still warm and gooey hours later. My kids beg for it more than their favorite sandwich, and it’s way more impressive.
- Budget Buster: Gruyère stretches far here, and onions/zucchini are cheap staples. I’ve made this for 6 people for under $12—plus, leftovers freeze like a dream. (Pro tip: slice extra zucchini, freeze it, and use later.)
Step-by-step instructions for zucchini onion pie recipe
Here's how to build layers of golden crust and velvety green filling that'll make this pie irresistible.
Sauté Onions Until Sweet and Translucent
Heat the 2 tablespoons extra-virgin olive oil in a large skillet over medium heat. Add the 2 large sliced yellow onions and cook for 8-10 minutes, stirring occasionally. You'll know they're ready when they turn golden and translucent with just a hint of caramelization.
This slow cooking draws out the natural sweetness of the onions, which balances perfectly with the earthy zucchini. If they start to brown too quickly, reduce the heat slightly. The onions should be soft enough to mash easily with a fork when done.
Grate Zucchini and Combine with Onions
While the onions cook, use a box grater to shred the 3 medium unpeeled zucchini into a large bowl. Once the onions are ready, transfer them to the bowl with the zucchini. Add the 0.25 cup chopped fresh thyme leaves, 1.5 teaspoons salt, and 0.5 teaspoon black pepper. Stir everything together thoroughly.
Let this mixture sit for 5 minutes to allow the flavors to meld. This resting time helps the zucchini release some moisture, which we'll drain later to prevent a watery filling. The thyme will infuse its aromatic essence into the vegetables, creating a fragrant base for our creamy layer.
Create the Creamy Filling Mixture
In a separate bowl, whisk together the 2 whole large eggs, 0.5 cup heavy cream, 1.5 cups shredded gruyère cheese, and 0.5 cup shredded sharp cheddar cheese until smooth. Gradually add the zucchini-onion mixture to this egg mixture, stirring constantly to combine.
Here's where the magic happens: the cheese melts slightly from the warm vegetables, creating a luxurious, creamy texture. If the mixture seems too thick, add 1-2 tablespoons of ice water to achieve a pourable consistency. The filling should coat the back of a spoon smoothly.
Prepare the Golden Crust
In a food processor, combine the 2 cups all-purpose flour, 1 cup cold cubed unsalted butter, 1 teaspoon salt, and 0.25 teaspoon black pepper. Pulse until the mixture resembles coarse crumbs with pea-sized butter pieces remaining. Gradually add the 0.5 cup ice water, pulsing until the dough just comes together.
Turn the dough onto a lightly floured surface and gently shape it into a 12-inch round. Wrap it in plastic wrap and refrigerate for 30 minutes to firm up. This chilling time prevents the crust from shrinking during baking and ensures it stays flaky and golden.
Assemble and Bake to Perfection
Preheat your oven to 375°F. Roll out the chilled dough on a floured surface to fit a 9-inch pie dish, letting the edges extend about 1 inch over the rim. Transfer the dough to the pie dish and trim the excess, leaving a ½-inch overhang. Crimp the edges decoratively and refrigerate while you prepare the filling.
Pour the creamy zucchini mixture into the prepared crust. Bake for 45-50 minutes until the crust is deep golden brown and the filling is set but still slightly jiggly in the center. The pie should smell heavenly - like fresh herbs and melted cheese. Let it cool for 15 minutes before slicing to allow the filling to set completely.
Pro Tips For Making Zucchini Onion Pie
- Sweat Onions Low and Slow: I learned this the hard way—onions caramelize best at 300°F (150°C) for 20-25 minutes, not high heat. If they brown too fast, they’ll burn before softening, and your pie filling will taste bitter instead of rich. Cover the pan halfway through if needed.
- Salt the Zucchini First: Grated zucchini releases water like a sad sponge. Toss it with 1 teaspoon of salt and let it sit in a colander for 10 minutes before mixing into the filling. This removes excess moisture so your crust doesn’t turn soggy—trust me, your pie’s texture will thank you.
- Don’t Overmix the Filling: The moment you fold in the Gruyère, stop stirring. Overworking the mixture makes the pie dense and chewy instead of light and flaky. Just combine everything until the cheese melts and the onions are evenly distributed—rough is better here.
- Use Cold Butter in the Crust: I was skeptical until I tried it: cut the cold unsalted butter into the flour with a pastry cutter (or your fingers) until the mixture looks like coarse crumbs. Cold butter creates flaky layers, while warm butter leads to a greasy, tough crust—no one wants that with a cheese-heavy filling.
Regional styles of these flavors
Italian Rustic Version
This classic Italian approach swaps the creamy filling for a rustic tomato-based sauce with zucchini and onions. Start with 1 can (28 oz) crushed San Marzano tomatoes sautéed with 3 minced garlic cloves and 1 tsp dried oregano.
Add the grated zucchini and onions, then fold in 1 cup ricotta cheese and ½ cup grated Pecorino Romano. Use a thin puff pastry crust (like Pepperidge Farm) for a lighter texture. Bake at 375°F for 35-40 minutes until bubbly. 🌿
French Tarte Flambée Style
For a thin-crust variation, create a Buckwheat Flour Crust (mix 1 cup buckwheat flour, 1 cup all-purpose flour, ½ cup cold butter, and ½ cup water). Spread the zucchini-onion mixture thinly over the crust and bake at 425°F for 20-25 minutes until the edges are crispy.
Top with crème fraîche and fresh chives before serving. This Alsatian-style tart is perfect for summer suppers! 🥖
Southern U.S. Sweet Potato Twist
Add 1 cup mashed sweet potato to the filling for a Southern-inspired version. Roast 1 medium sweet potato until tender, then mash with 1 tbsp maple syrup and ½ tsp cinnamon. Fold into the zucchini mixture before baking.
Use a biscuit-style crust (mix 1 cup self-rising flour, ¼ cup cold butter, and ⅓ cup buttermilk) for a hearty texture. Bake at 350°F for 40 minutes until golden. 🍠
Mediterranean Herb Crust
Infuse the crust with Mediterranean flavors by adding 2 tbsp finely chopped fresh rosemary and 1 tbsp dried za'atar to the dough. Roll out the crust and brush with olive oil before baking.
For the filling, stir in ¼ cup chopped sun-dried tomatoes and 2 tbsp capers to the zucchini mixture. Bake as directed, then garnish with extra-virgin olive oil and flaky sea salt before serving. 🌿
Gluten-Free Adaptation
Replace the all-purpose flour crust with a gluten-free almond flour crust. Mix 2 cups almond flour, ½ cup melted butter, 1 egg, and 2 tbsp ice water until a dough forms.
Press into a 9-inch pie dish and blind-bake at 350°F for 15 minutes before adding the filling. For the filling, use ½ cup gluten-free flour as a thickener if needed. Bake at 375°F for 50 minutes until set. ✨
Nutrition facts
Frequently asked questions
Can I make this pie without a pie crust?
For a crustless version, spread the zucchini mixture into a greased 9-inch pie dish and bake at 375°F for 35-40 minutes until set. Top with extra cheese and broil for 2-3 minutes to get a golden finish. This works especially well for meal prep or when you're short on time.
How do I prevent a soggy crust?
Prevent sogginess by pre-baking the crust for 10 minutes at 375°F before adding filling. You can also sprinkle a layer of crushed cornflakes or breadcrumbs between the crust and filling to absorb excess moisture. For extra insurance, chill the assembled pie for 30 minutes before baking.
What's the best way to reheat leftovers?
Reheat slices in a 350°F oven for 10-12 minutes until the crust is crispy again. For microwave reheating, cover with a damp paper towel and heat for 30-45 seconds on medium power. The oven method preserves the crust's texture best, while the microwave works for quick fixes.
Can I substitute other vegetables?
Yes! Swap zucchini for spinach or kale (sautéed first to remove moisture) or add 1 cup grated carrots for sweetness. For extra richness, fold in ½ cup cooked quinoa or wild rice. Just be mindful of moisture levels—drain well if using watery vegetables.
How do I make this pie ahead of time?
Assemble the pie completely and refrigerate for up to 24 hours before baking. For make-ahead freezing, bake the pie, cool completely, slice, and freeze portions in airtight containers. Reheat frozen slices from the oven at 375°F for 15-20 minutes until warmed through.
