Golden on top, custardy in the middle, and packed with zucchini that tastes clean instead of watery, this zucchini pie earns its place on the table fast. The ricotta turns what could have been a loose vegetable bake into something sliceable and soft, almost like a savory custard, while the parmesan and sun-dried tomatoes keep every bite from drifting into bland territory. It’s the kind of dish that looks simple at first glance and then gets a second look when the first wedge comes out intact.
The part that matters most is the zucchini. It has to be squeezed aggressively, not just patted dry, or the filling will go slack in the oven and the center won’t set the way it should. Grated onion and garlic melt right into the mixture, which gives the pie a built-in savory base without leaving obvious chunks behind. Ricotta adds creaminess, but it also helps the texture stay tender after baking, which is why this version feels richer than the egg-only kinds that can lean rubbery.
Below you’ll find the exact method that keeps the pie from turning soggy, plus a few smart swaps and storage notes for the days when you want to make it ahead and reheat cleanly.
The zucchini needed that extra squeeze, but once I did it, the pie baked up with a creamy center and a crisp, golden top. The sun-dried tomatoes were the best part — little bursts of flavor in every slice.
Save this zucchini pie for brunch, picnics, and any time you want a creamy, golden slice with sun-dried tomato pockets.
The Zucchini Mistake That Turns Pie Watery Instead of Set
Most zucchini pies fail for the same reason: the vegetable goes in holding too much water, and the oven can’t recover from it. Zucchini releases moisture as it bakes, so if you start with a wet pile, the filling turns loose before the eggs have a chance to set. Squeezing it hard is not a side note here. It’s the difference between a slice that stands up and one that puddles on the plate.
The other trap is overloading the filling with flour to fix moisture problems after the fact. That only gives you a denser, heavier pie. This recipe works because the ricotta, eggs, and a small amount of flour are balanced from the start, which keeps the texture creamy without losing structure. Bake it until the center is just set and the top has a deep golden color. If it still looks pale, the middle usually hasn’t finished cooking.
What Each Ingredient Is Actually Doing in This Zucchini Pie

Zucchini — This is the bulk of the pie, but it only behaves if you remove the water first. Squeeze it until it feels almost dry in your hands. Any extra moisture stays in the custard and weakens the set.
Ricotta — This is what gives the filling its soft, creamy interior. Use full-fat ricotta if you can; part-skim works, but the texture is a little leaner and less lush. If your ricotta looks very wet, drain it briefly before mixing.
Eggs — They hold everything together and give the pie its custard structure. Four eggs sound like a lot, but they’re carrying both the zucchini and the cheese. If you cut them down, the center gets fragile and won’t slice as cleanly.
Parmesan — This adds salt, depth, and a little firmness to the filling. Grate it finely so it melts into the custard instead of sitting in little grains. Pecorino can work here, but it’s sharper and saltier, so reduce any extra salt if you use it.
Sun-dried tomatoes in oil — These are the flavor pockets that keep the pie interesting. The oil-packed kind are softer and more savory than dry-packed tomatoes, which matters in a baked custard where you want tender bites, not chewy ones.
Flour and baking powder — The flour gives the filling a little body, while the baking powder helps it rise just enough to keep the texture light. You don’t want a cake, only enough lift to keep the pie from feeling dense. Measure the flour lightly so the pie doesn’t turn heavy.
How to Build the Filling So the Center Bakes Creamy, Not Loose
Dry the Zucchini First
Shred the zucchini, then squeeze it in a clean towel or a few layers of paper towels until the strands stop dripping. The pile should look smaller and feel springy rather than soggy. If you skip this, the oven has to spend its time evaporating water instead of setting the custard, and the middle stays soft for too long.
Mix the Base Before the Flour Goes In
Whisk the eggs and olive oil first, then stir in the ricotta, parmesan, zucchini, grated onion, and garlic. That order gives the ricotta a chance to break up evenly, which keeps the filling smooth. Once the mixture looks uniform, fold in the flour, baking powder, tomatoes, basil, oregano, salt, and pepper. Overmixing after the flour goes in can tighten the batter and make the finished pie feel dense.
Bake Until the Center Has Just Set
Pour the filling into a greased 9-inch pie dish and bake at 375°F until the top is deeply golden and the center no longer sloshes when you nudge the pan. The pie should have a slight wobble in the very middle, not a wet shimmer. If the edges darken before the center sets, give it a few more minutes and cover loosely with foil for the last stretch.
Let It Rest Before Slicing
Give the pie 10 minutes on the counter before cutting into it. That short rest lets the custard finish settling so the slices hold together instead of collapsing. Fresh basil on top adds a bright finish right before serving, and it keeps the herbs from dulling in the oven.
Three Useful Ways to Change This Zucchini Pie Without Ruining It
Make It Gluten-Free
Swap the all-purpose flour for a good 1:1 gluten-free blend. You still need the flour element for structure, so don’t leave it out entirely. The texture stays close to the original, though the slice will be a touch more tender and less springy.
Make It Dairy-Free
Use a thick dairy-free ricotta-style cheese and replace the parmesan with a dairy-free hard cheese alternative or a small spoonful of nutritional yeast for savoriness. The pie won’t taste exactly the same, but you’ll still get a creamy set and a savory finish. Choose a substitute that’s thick, not runny, or the filling will loosen.
Swap the Herbs Based on What’s in the Fridge
Basil is the brightest choice, but parsley, dill, or a little chives all work. Dill pushes it toward a more brunch-y, almost frittata-like flavor, while parsley stays neutral and clean. Use fresh herbs at the end if you can; dried herbs are fine in the batter, but they won’t give the same fresh lift.
Storage and Reheating
- Refrigerator: Store for up to 4 days. The texture tightens a little as it chills, but the flavor holds well.
- Freezer: It freezes, but the custard softens on thawing and the zucchini can release a little extra moisture. Freeze slices tightly wrapped, then thaw overnight in the fridge for best results.
- Reheating: Warm slices in a 325°F oven until heated through, about 10 to 15 minutes. The mistake is blasting it in the microwave, which makes the eggs weep and the crustless edges go rubbery before the center is hot.
Answers to the Questions Worth Asking

Zucchini Pie
Ingredients
Equipment
Method
- Preheat the oven to 375°F and grease a 9-inch pie dish.
- Squeeze all moisture from the shredded zucchini aggressively so the pie bakes up set instead of watery.
- Whisk the eggs and olive oil, then mix in the ricotta, parmesan, zucchini, onion, and garlic until evenly combined.
- Fold in the flour, baking powder, sun-dried tomatoes, basil, oregano, salt, and pepper just until the batter looks uniform with no dry spots.
- Pour the mixture into the greased pie dish, then bake for 35–40 minutes at 375°F until deeply golden and set in the center.
- Cool for 10 minutes, then top with extra fresh basil before slicing.