Spaghetti and Spinach Pesto Recipe and Method
In this article
This dish produces a vibrant green, creamy sauce that clings to pasta without separating or tasting overly bitter. Using blanched spinach and reserved pasta water creates an emulsion that coats the spaghetti in a smooth, glossy layer.
Gather the Ingredients for Spinach Pesto
The ratios below ensure the pesto is balanced between the earthy flavor of the spinach and the saltiness of the cheese. Use a food processor or blender for the most consistent texture.
- 12 oz (340 g) spaghetti
- 5 oz (140 g) fresh baby spinach, packed
- 1/2 cup (50 g) grated Parmesan cheese
- 1/3 cup (80 ml) extra-virgin olive oil
- 3 cloves garlic, peeled and roughly chopped
- 2 tbsp (30 ml) fresh lemon juice
- 1/4 cup (30 g) toasted pine nuts or walnuts
- 1/2 tsp (3 g) kosher salt
- 1/4 tsp (1 g) black pepper
- 1/2 cup (120 ml) reserved pasta cooking water
Prepare the Pasta and Spinach Pesto
- Bring a large pot of salted water to a boil. Add 12 oz of spaghetti and cook according to package directions for 8 to 11 minutes, until al dente.
- While the pasta cooks, bring a small pot of water to a boil. Submerge the 5 oz of spinach in the boiling water for 30 to 60 seconds until wilted.
- Immediately remove the spinach and plunge it into a bowl of ice water for 1 minute. This stops the cooking process and preserves the bright green color.
- Squeeze the spinach firmly with your hands or a kitchen towel to remove as much excess water as possible. Excess moisture prevents the pesto from emulsifying.
- Place the squeezed spinach, garlic, toasted nuts, and Parmesan cheese in a food processor. Pulse 5 to 8 times until the ingredients are coarsely chopped.
- While the processor is running on low, slowly stream in 1/3 cup of olive oil and 2 tbsp of lemon juice. Process for 30 to 60 seconds until the mixture is smooth.
- Stir in the salt and black pepper. Taste the pesto and add more lemon juice if the flavor is too heavy or more salt if it is bland.
- Before draining the spaghetti, scoop out 1/2 cup of the starchy pasta water and set it aside.
- Drain the spaghetti and return it to the pot over low heat.
- Pour the spinach pesto over the pasta and add the reserved pasta water 1 tablespoon at a time. Toss with tongs for 1 to 2 minutes until the sauce is creamy and coats every strand.
Adjust the Texture and Flavor of the Sauce
Pesto can vary in consistency based on the water content of the spinach and the size of the nuts used. Identifying the cause of a texture issue allows for a precise correction before serving.
Fixing a Dry or Clumpy Sauce
If the pesto feels thick, grainy, or does not coat the pasta evenly, it lacks moisture or fat. Add 1 to 2 tablespoons of reserved pasta water or an extra teaspoon of olive oil. Stir vigorously over low heat; the starch in the pasta water binds the oil and the spinach solids into a cohesive sauce.
Fixing a Runny or Separated Sauce
A sauce that pools at the bottom of the bowl usually results from adding too much oil or not squeezing the blanched spinach enough. To thicken a runny sauce, stir in an additional 1 to 2 tablespoons of grated Parmesan cheese. The cheese acts as a thickening agent and helps bind the emulsion.
Fixing a Bitter or Overly Sharp Taste
Bitterness often comes from over-processing the garlic or using old spinach. If the garlic taste is too aggressive, stir in 1 teaspoon of honey or maple syrup to neutralize the sharp notes. If the sauce is too acidic from the lemon, add a small pinch of salt or a tablespoon of unsalted butter to mellow the flavor.
Swap Ingredients or Equipment for Different Results
Adjusting the components of the pesto changes the nutritional profile and the flavor intensity. Use the following ratios to maintain the correct balance of fat and solids.
Ingredient Substitutions
- Basil for Spinach: Replace the 5 oz of spinach with 3 cups of fresh basil leaves. Do not blanch basil, as it will turn brown; process it raw with the other ingredients.
- Kale for Spinach: Use 4 oz of lacinato kale. Remove the tough center ribs. Blanch the kale for 2 to 3 minutes instead of 60 seconds to soften the fibers.
- Cashews or Almonds for Pine Nuts: Use a 1:1 ratio by weight. Toast these nuts for 3 to 5 minutes in a dry pan over medium heat until fragrant to mimic the richness of pine nuts.
- Pecorino Romano for Parmesan: Use a 1:1 ratio. Pecorino is saltier than Parmesan, so reduce the added kosher salt by 1/4 tsp.
- Whole Wheat or Gluten-Free Pasta: Use a 1:1 ratio. Whole wheat pasta may require 1 to 2 extra minutes of boiling time. Gluten-free pasta often releases more starch, so you may need less reserved pasta water.
Equipment Alternatives
A food processor is the standard tool for this recipe because it handles the bulk of the spinach efficiently. If using a blender, add the olive oil first to create a vortex that pulls the spinach leaves down toward the blades.
For a traditional texture, use a mortar and pestle. Pound the garlic and nuts into a paste first, then stir in the blanched spinach and cheese. This method results in a chunky, rustic sauce rather than a smooth puree.
Store the Pesto and Cooked Pasta Safely
The ingredients in spinach pesto, particularly the garlic and oil, require specific temperature controls to prevent spoilage and foodborne illness.
Storing Unused Pesto
Store leftover pesto in an airtight glass jar in the refrigerator. Because this recipe contains garlic and oil, it must be kept refrigerated and used within 4 days. To prevent the top layer from oxidizing and turning brown, pour a thin layer of olive oil over the surface of the pesto before sealing the lid.
Freezing Pesto
Pesto can be frozen for 3 to 6 months. Spoon the pesto into ice cube trays and freeze until solid. Transfer the cubes to a freezer-safe bag. Thaw a cube in the refrigerator overnight or place it directly into a warm pan of pasta.
Storing the Combined Pasta Dish
Cooked spaghetti with pesto lasts 3 to 5 days in the refrigerator in a sealed container. When reheating, the sauce may thicken or dry out. Add 1 tablespoon of water or olive oil per serving and heat on the stove over low heat or in the microwave for 1 to 2 minutes. Ensure leftovers reach an internal temperature of 165F/74C before consuming.
Handling Perishables
Do not leave the prepared pasta or the raw pesto at room temperature for more than 2 hours. If the room temperature is above 90F/32C, the limit is 1 hour. This applies to the cheese, the blanched spinach, and the final combined dish.