To make gnocchi with spinach, boil the potato gnocchi until they float, then toss them in a pan with wilted spinach, garlic, and a splash of pasta water, finishing with butter or olive oil. This method works best when you want a simple, weeknight-friendly dish that uses fresh spinach and either store-bought or homemade gnocchi. It is forgiving, quick, and lets the spinach add both color and a mild, earthy flavor without overpowering the potato.
What You Need Before You Start
Check your pantry and fridge for these basics. The quantities below serve 2 to 3 people as a main course, or 4 as a side.
- 1 pound (450 g) potato gnocchi (fresh or shelf-stable)
- 5 ounces (140 g) fresh spinach, roughly chopped if leaves are large
- 2 cloves garlic, thinly sliced
- 2 tablespoons (30 g) unsalted butter, or 2 tablespoons olive oil
- 1/4 cup (60 ml) pasta water, reserved from cooking the gnocchi
- Salt and black pepper to taste
- Grated Parmesan or pecorino cheese for serving (optional)
If you are using homemade gnocchi, make sure they are dusted with flour so they do not stick together. For store-bought, check the package for any specific cooking times, but the float test works for most.
How to Cook the Gnocchi So They Stay Light
The key to good gnocchi is not overcooking them. They cook quickly, and they are done when they rise to the surface.
- Bring a large pot of salted water to a rolling boil. Use about 1 tablespoon of salt per 4 cups (1 liter) of water.
- Add the gnocchi in a single layer, stirring gently once so they do not stick to the bottom.
- Cook until they float to the top, which usually takes 2 to 4 minutes for fresh gnocchi and 3 to 5 minutes for shelf-stable ones. Do not walk away; they can go from perfect to mushy in under a minute.
- Use a slotted spoon to transfer the gnocchi to a plate or directly to the pan with the spinach. Reserve about 1/2 cup (120 ml) of the pasta water before draining.
If you are making a larger batch, cook the gnocchi in two batches to avoid crowding the pot. Overcrowding lowers the water temperature and makes the gnocchi stick together.
How to Wilt the Spinach and Combine Everything
This step turns the spinach from raw leaves into a silky sauce that clings to the gnocchi. Work quickly so the gnocchi do not cool down.
- In a large skillet over medium heat, melt the butter or warm the olive oil. Add the sliced garlic and cook for 30 to 60 seconds, until fragrant but not browned. Burnt garlic tastes bitter.
- Add the spinach in handfuls. It will look like a lot, but it wilts down to a fraction of its volume. Toss with tongs for 1 to 2 minutes, until the leaves are just wilted but still bright green.
- Season with a pinch of salt and a few grinds of black pepper.
- Add the cooked gnocchi to the skillet, along with 1/4 cup (60 ml) of the reserved pasta water. Toss gently for 1 minute, letting the starchy water create a light sauce that coats each gnocchi.
- If the sauce looks dry, add another tablespoon of pasta water. If it looks too loose, let it cook for another 30 seconds.
- Turn off the heat and stir in grated cheese if using. Serve immediately.
Why the pasta water matters: it contains starch from the gnocchi, which helps the sauce cling instead of sliding off. The water also loosens the sauce so it coats without needing extra fat.
How to Tell It Worked
The dish is ready when the gnocchi are tender but still hold their shape—they should not be falling apart or gummy. The spinach should be fully wilted but still green, not gray or slimy. The sauce should lightly coat the gnocchi, not pool at the bottom of the pan.
If the gnocchi are dense and heavy, they were likely overcooked or the dough was overworked (if homemade). If they are hard in the center, they need another minute of cooking. If the sauce is watery, cook it a little longer to evaporate excess liquid.
What Goes Wrong and How to Fix It
| Symptom | Cause | Fix |
|---|---|---|
| Gnocchi fall apart in the pan | Overcooked, or the dough was too soft (if homemade) | Next time, remove them from the water as soon as they float. For homemade, add a bit more flour to the dough. |
| Spinach is watery and the sauce is thin | Spinach released moisture after wilting | Cook the spinach a little longer before adding the gnocchi, or increase the heat to evaporate the liquid. |
| Garlic tastes burnt or bitter | Garlic cooked too long or at too high heat | Start with a lower heat and add garlic only after the butter melts. If it burns, start over with fresh garlic. |
| Gnocchi stick together in the pot | Not enough water or not stirred after adding | Use a large pot and stir gently once right after adding. Do not overcrowd. |
How to Make It Your Own (Without Overcomplicating)
Once you have the basic method, you can adjust it to what you have on hand. These variations do not change the core technique.
- Add lemon: Stir in 1 teaspoon of lemon zest and a squeeze of lemon juice just before serving. It brightens the dish and cuts the richness.
- Add nuts: Toast 2 tablespoons of pine nuts or walnuts in the dry skillet for 2 minutes before adding the butter, then proceed. They add crunch.
- Make it vegetarian and vegan: Use olive oil instead of butter and skip the cheese, or use a plant-based parmesan.
- Use frozen spinach: Thaw 10 ounces (280 g) frozen spinach, squeeze out as much water as possible, and add it in step 2. Cook for 2 minutes to heat through.
- Add a protein: Stir in 1 cup of cooked white beans or shredded rotisserie chicken after the spinach wilts, just to warm through.
How to Store and Reheat Leftovers
Leftovers keep in the refrigerator for up to 3 days in an airtight container. The spinach may release a little more liquid, which is normal.
To reheat, place the gnocchi in a skillet over medium-low heat with a splash of water or broth. Cover and warm for 3 to 5 minutes, stirring occasionally, until hot throughout. Avoid the microwave if you can—it can make the gnocchi rubbery. If you do use the microwave, cover the bowl and heat in 30-second bursts, stirring in between.
You can also freeze the cooked dish for up to 2 months. Let it cool completely, transfer to a freezer-safe container, and thaw overnight in the refrigerator before reheating.
Can You Use Fresh Spinach Instead of Frozen?
Yes, fresh spinach works well and is the basis of this recipe. Use about 5 ounces (140 g) fresh spinach, which is roughly one large handful per person. If you only have frozen, thaw and squeeze it dry first, then use 10 ounces (280 g) frozen for the same amount of gnocchi.
What If You Don’t Have Pasta Water?
If you forget to reserve the water, use warm tap water or broth instead. The sauce will be slightly less silky, but it will still work. Add a teaspoon of olive oil or butter to help it emulsify.
Is It Better to Boil or Pan-Fry the Gnocchi?
Boiling is the standard method for this dish because it keeps the gnocchi soft and light. Pan-frying after boiling is an option if you want crispy edges: after boiling, drain them well, then sauté in a little butter or oil for 2 to 3 minutes until golden. For the spinach version, you can pan-fry the gnocchi first, then add the spinach and garlic to the same pan. The rest of the steps stay the same.
Related
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).