Time: 1 hr 30 min, Serves: 8, The key step: Layering phyllo with melted butter to ensure a crisp, flaky crust.
Spanakopita is a savory Greek pie made with layers of thin phyllo pastry filled with a mixture of spinach, feta cheese, and herbs. It has a salty, tangy flavor and a contrasting texture of crunchy pastry and soft filling, making it a suitable appetizer for holidays or a light lunch.
Phyllo and Filling Basics
The structure of this dish relies on phyllo dough, which consists of paper-thin sheets of unleavened flour dough. Unlike puff pastry, phyllo does not contain leavening agents and requires a fat source, typically melted butter or olive oil, to separate the layers during baking. Without this fat, the sheets fuse together into a dense, chewy mass rather than a shatteringly crisp crust.
The filling is centered around spinach and feta. Feta provides the necessary salt and acidity, while the spinach provides bulk and earthiness. To prevent the pastry from becoming soggy, the spinach must be thoroughly cooked and squeezed dry. Any residual moisture in the filling will steam the bottom layers of the phyllo, resulting in a “soggy bottom” that fails to crisp.
Ingredient Substitutions
If fresh spinach is unavailable, frozen chopped spinach can be used. Ensure it is fully thawed and squeezed in a clean kitchen towel until no more water escapes. For a different flavor profile, Swiss chard or kale can replace some of the spinach, though kale provides a more robust, bitter taste that may require additional seasoning.
For those avoiding feta, ricotta mixed with a pinch of salt and lemon juice can be used, though the result will be creamier and less tangy. For a dairy-free version, use a vegan feta alternative and replace the melted butter with melted coconut oil or a neutral vegetable oil. Check labels on all processed substitutes for allergens.
Ingredients
- 1 package (16 oz / 453 g) phyllo dough, thawed according to package directions
- 1 cup (225 g) unsalted butter, melted
- 1 lb (453 g) fresh spinach, chopped
- 1 medium yellow onion, finely diced
- 2 cloves garlic, minced
- 8 oz (226 g) feta cheese, crumbled
- 2 large eggs, lightly beaten
- 1/4 cup (15 g) fresh parsley, chopped
- 1/4 cup (15 g) fresh dill, chopped
- 1/2 tsp (1 g) salt
- 1/2 tsp (1 g) black pepper
- 1/4 tsp (0.5 g) ground nutmeg
Instructions
- Preheat the oven to 375°F (190°C). Grease a 9×13 inch (23×33 cm) baking pan with butter or line it with parchment paper.
- Heat 1 tablespoon (15 ml) of butter in a large skillet over medium heat. Add the diced onion and sauté for 5-7 minutes until translucent. Add the minced garlic and cook for another 1 minute until fragrant.
- Add the chopped spinach to the skillet in batches, stirring until wilted. Remove the mixture from heat and let it cool for 10 minutes.
- Place the cooked spinach in a clean kitchen towel or fine-mesh strainer. Squeeze firmly to remove as much liquid as possible. This is critical for pastry crispness.
- In a large mixing bowl, combine the squeezed spinach, sautéed onions, crumbled feta, beaten eggs, parsley, dill, salt, pepper, and nutmeg. Stir until the ingredients are evenly distributed.
- Unroll the phyllo dough. Keep the sheets covered with a damp cloth to prevent them from drying out and cracking.
- Place one sheet of phyllo in the baking pan, allowing the edges to hang slightly over the sides. Brush the sheet lightly with melted butter using a pastry brush. Repeat this process for a total of 6-8 layers, brushing each layer individually.
- Spread the spinach and feta mixture evenly over the buttered phyllo layers, smoothing the top with a spatula.
- Layer 6-8 more sheets of phyllo on top of the filling, brushing each sheet with melted butter. Fold the overhanging edges of the bottom layers over the top layers to seal the edges.
- Using a sharp knife, score the top layers of phyllo into squares or rectangles (about 2×3 inches / 5×7 cm). Scoring allows steam to escape and makes the pie easier to cut after baking.
- Bake at 375°F (190°C) for 40-45 minutes, until the top is golden brown and the filling is set. Because this is an egg-based casserole, ensure the center reaches a safe minimum internal temperature of 160°F (71°C) as per USDA FSIS guidelines, checked with a food thermometer.
- Remove from the oven and let the pie rest in the pan for 10 minutes before slicing along the scored lines.
Pastry and Filling Failures
A common failure is the “soggy bottom,” where the lower layers of phyllo remain soft and doughy. This is caused by either failing to squeeze the spinach dry or adding too much butter to the bottom layers, which fries the dough instead of crisping it. Ensure the spinach is squeezed until it feels like a dense ball of fiber.
Another issue is the phyllo cracking or shattering during assembly. This happens when the dough dries out. To prevent this, keep the unused sheets under a damp (not soaking) kitchen towel at all times. If the sheets are too dry, they will not adhere to each other, and the crust will separate into uneven shards.
Over-browning of the top before the center is cooked occurs if the oven temperature is too high. If the top is dark brown at the 25-minute mark but the center is still wobbling, cover the pan loosely with aluminum foil to protect the crust while the interior reaches the required 160°F (71°C).
Storing the Pie
Allow the spanakopita to cool completely on a wire rack to prevent condensation from softening the crust. Once cooled, cover the pan or individual slices with airtight foil or place them in a sealed container. Refrigerate within 2 hours of removing from the oven.
Cooked spanakopita keeps in the refrigerator for 3-4 days. To reheat, avoid the microwave, as this will make the phyllo rubbery. Instead, place slices on a baking sheet and heat in an oven or toaster oven at 350°F (175°C) for 5-10 minutes until the pastry is crisp again. Reheat leftovers to an internal temperature of 165°F (74°C) for food safety.
For long-term storage, you can freeze the baked pie. Wrap individual slices tightly in plastic wrap and then in aluminum foil. Store in the freezer for up to 2 months. Thaw in the refrigerator overnight before reheating in the oven.
Worked Example for Different Pan Sizes
If using a smaller 8×8 inch (20×20 cm) square pan, you will need to adjust the quantity of phyllo layers to maintain the ratio. Use about 10 layers on the bottom and 10 on top to account for the deeper filling depth. The filling quantity remains the same, but the baking time may increase by 5-10 minutes because the filling is thicker. Always use a thermometer to verify the 160°F (71°C) internal temperature.
For a larger sheet pan (13×18 inches / 33×45 cm), double the ingredients: 2 lbs (907 g) of spinach, 16 oz (453 g) of feta, and 4 eggs. Use two packages of phyllo dough to ensure you have enough sheets to cover the larger surface area. The baking time typically remains similar (40-45 minutes) because the filling is spread thinner across the pan.
Air Fryer Method
To make individual spanakopita triangles in an air fryer, cut phyllo sheets into long strips (about 4 inches / 10 cm wide). Fold the strips into triangles, filling each with a tablespoon of the spinach mixture and brushing each fold with butter. Place the triangles in the air fryer basket in a single layer, ensuring they do not overlap or overcrowd the basket.
Set the air fryer to 350°F (175°C) and cook for 8-12 minutes, flipping halfway through if the model does not have a powerful bottom heating element. Times vary by model; cook until the pastry is golden brown and the filling is set. Ensure the center of the triangles reaches the safe minimum internal temperature of 160°F (71°C).
Related
- Paul Hollywood Sourdough Bread Recipe
- All Types of Sandwiches: Fillings, Breads & Assembly Guide
- How to Prep Corn Tortillas for Enchiladas
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).