Spinach can be used in place of basil in pesto, but the result is a different sauce: milder, greener in a vegetal rather than peppery way, and usually looser unless you adjust the leaf-to-oil ratio and compensate for spinach's higher water content. The substitution works best as a partial swap or in a cooked or blended sauce where basil's aromatic punch is not the whole point; it works least well in a strict Genoese-style pesto meant to taste of basil.
What "Pesto" Means Here
The word pesto comes from the Italian pestare, to pound or crush, and refers to the method as much as the ingredients. Classic pesto alla genovese is a raw, uncooked sauce of basil, pine nuts, garlic, salt, olive oil, and aged hard cheese such as Parmigiano-Reggiano and pecorino. Because the classic version is uncooked and defined partly by basil's flavor, replacing all the basil changes the dish's identity, not just its color.
This is the ambiguity in the question. If "pesto" means a Genoese basil sauce, spinach is a substitution that produces a spinach pesto or a pesto di spinaci, not a basil pesto. If "pesto" means the broader family of crushed green sauces—including arugula pesto, kale pesto, or parsley-based sauces—spinach fits comfortably. Knowing which sense the cook intends resolves most of the confusion.
How Spinach Compares to Basil
Spinach (Spinacia oleracea) is a mild, slightly earthy leaf with a soft texture and high water content. Basil (Ocimum basilicum), especially sweet Genovese basil, is aromatic, faintly peppery, and sweet, with a pronounced anise-and-clove character. That aromatic profile is what most people recognize as "pesto flavor."
Spinach brings several practical differences:
Flavor: Mild and grassy; it will not supply basil's aromatic lift. Raw spinach can taste faintly metallic or oxalic to some palates. Water: Spinach holds much more water than basil. Blended raw, it releases liquid that can make pesto watery and cause it to separate. Color: Spinach gives a deep, stable green, though it can dull toward olive-brown if heated or left exposed to air. Texture: Spinach leaves are softer and break down more readily, producing a smoother, less textural sauce than hand-crushed basil. Bitterness and astringency: Spinach has a slight astringency that increases with age and with large mature leaves; baby spinach is milder.
The practical consequence: raw spinach pesto usually needs less oil than a basil recipe calls for at first, then more oil added gradually, because the leaves release water and the sauce can turn loose before it turns silky.
Partial Versus Full Substitution
A full swap—spinach for all the basil—produces a workable green sauce but a noticeably mild one. Many cooks prefer a partial substitution:
Half and half: Equal parts basil and spinach keeps the basil aroma recognizable while stretching the sauce and deepening its color. This is the safest starting point for someone who wants pesto that still tastes like pesto. Mostly spinach with a basil accent: A small handful of basil per large batch restores aromatic character without requiring much basil. Full spinach with flavor boosters: A full substitution benefits from additions that replace basil's aromatic role—extra garlic, lemon zest, a pinch of black pepper, or a small amount of a stronger herb such as parsley or arugula.
These are starting points, not rules. The right ratio depends on whether the pesto is a standalone condiment or an ingredient in a larger dish, because spinach's mildness matters less when the pesto is folded into pasta with other strong flavors.
Adjusting the Recipe
A basil pesto recipe typically calls for roughly two cups of packed basil leaves, about half a cup of olive oil, a quarter cup of pine nuts, one or two garlic cloves, and a half cup of grated hard cheese. Substituting spinach requires several adjustments.
Reduce initial oil, then add gradually. Spinach releases water when blended, so start with less oil than the basil recipe specifies—perhaps two-thirds—and add more until the sauce reaches the consistency you want. A sauce that looks loose at first may tighten as it sits.
Dry the leaves thoroughly. Wash spinach and dry it well, ideally in a salad spinner or between towels. Residual washing water is the main cause of watery spinach pesto. If using blanched spinach, squeeze it firmly.
Blanch for a more stable sauce, or use raw for freshness. Raw spinach gives a fresher, grassier flavor but a looser, faster-oxidizing sauce. Briefly blanching (about 15–30 seconds in boiling water, then shocking in ice water and squeezing dry) tames astringency, sets color, and reduces water, though it mutes the fresh flavor. Both approaches are legitimate; they produce different sauces.
Consider toasting the nuts and adjusting salt. Pine nuts, walnuts, or almonds should be toasted for depth. Because spinach is milder, the sauce may need slightly more salt or cheese to taste finished—but add these at the end, since cheese is salty.
Watch the garlic. Garlic can easily overpower a mild spinach pesto. Start with less and adjust.
Use the food processor or blender with care. Blending generates heat that can dull spinach's color and make the sauce taste cooked. Pulse in short bursts and keep the mixture cool.
A minimal illustrative ratio, not a fixed formula: about 4 packed cups of spinach to 1/3 cup olive oil, 1/4 cup toasted nuts, 1 small garlic clove, 1/2 cup grated hard cheese, salt to taste, adding oil gradually. This yields a thick sauce; thin it as needed.
Color and Storage
Spinach pesto darkens over time as cut surfaces oxidize and as chlorophyll degrades, especially when exposed to light and air. A tight layer of plastic wrap pressed onto the surface, or a thin film of olive oil on top, slows this. Refrigerated, it keeps for a few days; frozen in small portions, it holds for a few months, though texture softens. Some cooks add lemon juice both for flavor and to slow browning. These are practical measures, not guarantees.
Where Spinach Pesto Works and Where It Fails
Spinach pesto shines in dishes where a mild green sauce is welcome:
Tossed with pasta alongside roasted vegetables, where basil's aroma would compete. As a spread for sandwiches or a swirl into soups and grain bowls. In a cooked application, such as a sauce warmed gently with cream or pasta water. As a base for a green sauce where you plan to add lemon, chili, or stronger herbs.
It disappoints when basil flavor is the point:
A classic pasta alla genovese where the sauce is the star. Bruschetta or crostini where the pesto is tasted nearly alone. Dishes where basil's sweetness balances acidic tomatoes—spinach does not provide that counterpoint as effectively.
A useful distinction: spinach pesto substitutes for basil pesto as an ingredient in a dish much better than it substitutes as a condiment tasted on its own.
Safety and Handling Notes
Spinach is a common source of foodborne pathogens when eaten raw, and pesto is typically uncooked. Washing does not sterilize leaves. People at higher risk from raw produce—pregnant people, young children, older adults, and immunocompromised individuals—may prefer blanched-spinach pesto or a cooked application. This is general food-safety information, not individual medical advice; anyone with specific dietary concerns should consult a qualified health professional.
FAQ
Does spinach pesto taste like basil pesto? No. It is milder, grassier, and less aromatic. It tastes like a spinach sauce, which is pleasant but distinct.
Can I use baby spinach? Yes; baby spinach is milder and more tender, making it a good choice for raw pesto.
Why did my spinach pesto turn watery? Most likely wet leaves or too much oil added before the leaves broke down. Dry the spinach and add oil gradually.
Can I freeze it? Yes, in small portions, though texture softens and color may dull.
Should I blanch the spinach? Optional. Blanching stabilizes color and reduces astringency but mutes freshness. Raw spinach is faster and brighter-tasting.
Does spinach pesto need pine nuts? No. Walnuts, almonds, sunflower seeds, or pumpkin seeds work, and toasted nuts add depth that helps a mild sauce.
In short, spinach is a serviceable and common pesto substitute with real trade-offs: expect a milder sauce, manage the water, and consider a partial swap if you want basil's character to survive.