Spinach Pasta Recipe: Garlicky Basil Pesto With Wilted Greens

Spinach Pasta Recipe: Garlicky Basil Pesto With Wilted Greens

This spinach pasta recipe transforms simple ingredients into a vibrant, restaurant-worthy dish with just 15 minutes of active prep. The secret lies in wilting fresh spinach directly in the pan—preserving its bright color and tender texture—while a garlicky basil pesto ties everything together with bold, herby depth.

I developed this method after testing countless versions that either overcooked the greens or drowned them in heavy cream.

The beauty of this dish is its balance: creamy yet light, thanks to a minimal olive oil base that carries the pesto’s intensity without weighing down the pasta.

The key steps—sautéing garlic until fragrant but never burned, wilting spinach just until tender, and tossing everything with perfectly al dente pasta—ensure each bite delivers that perfect harmony of textures and flavors. This recipe serves four and comes together faster than takeout, yet tastes like a carefully crafted meal.

What you’ll end up with is a plate of bright green pasta coated in a vibrant pesto that clings to each strand, with wilted spinach adding freshness and subtle bitterness. The aroma alone—garlic, basil, and toasted olive oil—will have everyone at the table asking for seconds.

The best part? It’s naturally vegetarian but easily adaptable with protein like grilled chicken or shrimp if you prefer.

Serve immediately with a sprinkle of extra basil and a drizzle of olive oil for that final touch of restaurant-quality presentation. Whether you’re feeding a family or treating yourself to a weeknight upgrade, this dish delivers foolproof results every time. Let’s get cooking!

👨‍🍳
Difficulty
Medium
🌿
Diet
Vegetarian
🔥
Calories
Med Cal

Ingredients for spinach pasta

Bright green spinach, aromatic basil, and perfectly al dente pasta transform into a restaurant-quality dish with these core ingredients.

Ingredient Amount Notes
Extra-Firm Tofu 🥬 14 oz Pressed for moisture removal
Garlic Cloves 🧄 4 cloves Freshly minced for aroma
Fresh Basil Leaves 🌿 2 cups Packed, stems removed
Baby Spinach 🍃 5 oz Bright green, no stems
Extra-Virgin Olive Oil 🫒 ½ cup High-quality, fruity
Pine Nuts 🥜 ¼ cup Toasted for nutty depth
Parmesan Cheese 🧀 ½ cup Freshly grated from block
Lemon Juice 🍋 1 tbsp Freshly squeezed
Diamond Crystal Kosher Salt 🧂 ½ tsp Fine grain preferred
Freshly Ground Black Pepper 🌶️ ¼ tsp Cracked peppercorns
Ditalini Pasta 🍝 12 oz Al dente texture preferred
Red Bell Pepper 🌶️ ½ whole Deseeded and diced
Shallot 🧅 1 whole Minced for sweetness

The spinach and basil drive this dish’s signature color and flavor. Trader Joe’s and Whole Foods carry the brightest baby spinach—look for leaves that are deep green and crisp. For basil, farmers markets often have fresher varieties, but the grocery store’s plastic containers work fine if the leaves are vibrant and not wilted. The Parmesan must be freshly grated from a block; pre-shredded contains anti-caking agents that prevent proper melting. Toast the pine nuts in a dry pan until golden—this enhances their nutty flavor significantly. If you’re using tofu, press it for at least 20 minutes between paper towels to remove excess moisture, ensuring it absorbs flavors properly.

No fresh basil? Dried oregano at one-third the amount works in a pinch, though it lacks the bright herbal notes. Substitute pine nuts with walnuts or pecans for a different texture, but toast them first. For the spinach, kale or Swiss chard can replace it, though the flavor profile shifts slightly. The pasta should be al dente—undercooked pasta absorbs the pesto better. If you’re adding protein, grilled shrimp or chicken pairs beautifully, but time the cooking so they finish together with the pasta. The shallot can be swapped for yellow onion, though it adds a slightly sharper bite.

Prep the pesto ingredients ahead and store them in the fridge until ready to blend—this keeps the basil fresh longer. The cooked pasta reheats beautifully, but the spinach will wilt further; it’s best served immediately. Store any leftover pesto in an airtight container with a thin layer of olive oil on top to preserve its vibrant color and freshness. This dish keeps for 2 days in the fridge, though the texture of the spinach may soften further. For a quicker meal, use frozen spinach, but thaw and drain it thoroughly before adding to the pan—it releases excess water.

❤️

Why You’ll Love This Recipe

  • The secret’s in the sizzle: minced garlic in olive oil until it’s fragrant but not burnt, then a handful of basil torn right from the stem. It’s that bright, herby punch that makes this taste like a restaurant plate, not a weeknight throw-together.
  • No-Fuss Protein Boost: I press and pan-fry the tofu ahead of time—crispy edges, no crumbling mess—and it adds serious staying power without overpowering the dish. Honestly, that first bite of warm, golden tofu with wilted spinach? My lazy Sundays just got an upgrade.
  • Garlic-Basil Magic: The secret’s in the sizzle: minced garlic in olive oil until it’s fragrant but not burnt, then a handful of basil torn right from the stem. It’s that bright, herby punch that makes this taste like a restaurant plate, not a weeknight throw-together.
  • Lunchbox Hero: Between us, this keeps beautifully for days—toss leftover tofu and spinach into wraps, or reheat with a splash of pasta water to revive the sauce. My kids actually ask for their lunch to be packed with it. (Yes, even on a Tuesday.)

Step-by-step instructions for garlicky basil pesto with wilted greens

Here’s the method for crafting a vibrant, herb-forward pasta dish with perfectly balanced flavors.

1

Prepare the Garlicky Basil Pesto and Toast the Pine Nuts

In a food processor, combine the 14 oz extra-firm tofu (pressed and drained), 2 cups fresh basil leaves, 4 cloves garlic cloves, 0.5 cup extra-virgin olive oil, 0.5 cup parmesan cheese, 1 tbsp lemon juice, 0.5 tsp diamond crystal kosher salt, and 0.25 tsp freshly ground black pepper. Pulse until the mixture reaches a smooth, vibrant green consistency—this should take about 30-45 seconds. The pesto should coat the back of a spoon with a silky, emulsified texture.

While the pesto processes, heat a dry skillet over medium heat and add the 0.25 cup pine nuts. Toast them for 3-4 minutes, stirring constantly, until they turn a rich golden brown and release their nutty aroma. Remove immediately to prevent burning—overcooked pine nuts become bitter. Transfer the toasted nuts to a small bowl and set aside for later use.

2

Cook the Pasta Al Dente and Wilt the Spinach

Bring a large pot of water to a rolling boil and salt it generously (it should taste like the sea). Add the 12 oz ditalini pasta and cook until 1 minute shy of the package’s al dente time—this ensures it finishes cooking in the sauce. Reserve 1 cup of pasta water before draining, as it will help emulsify the pesto later.

While the pasta cooks, heat 1 tablespoon extra-virgin olive oil in a large skillet over medium heat. Add the 5 oz baby spinach and 0.5 whole red bell pepper (deseeded and diced) along with the 1 whole shallot (minced). Sauté for 2-3 minutes until the spinach wilts completely and the shallot softens—you should see the spinach collapse into tender, bright green clumps. Remove from heat and set aside.

3

Combine Pasta, Pesto, and Vegetables for Perfect Balance

Return the drained pasta to the pot and add the prepared pesto. Toss vigorously with tongs, adding 2-3 tablespoons of reserved pasta water at a time until the pasta is fully coated and the sauce reaches a creamy consistency. The mixture should glisten with a vibrant green hue and cling evenly to each strand of pasta.

Fold in the wilted spinach mixture along with the toasted pine nuts. Stir gently to distribute the nuts and greens evenly throughout the pasta. Taste and adjust seasoning if needed—add a pinch more diamond crystal kosher salt or a crack of freshly ground black pepper for balance. The dish should harmonize the earthy spinach, nutty pine nuts, and bright basil-pesto flavors.

4

Serve Immediately for Maximum Freshness

Transfer the pasta to warmed serving plates and garnish with an additional sprinkle of parmesan cheese and a few fresh basil leaves for presentation. Serve while still hot, as the flavors meld best when enjoyed immediately. The pasta should have a vibrant green color from the pesto and spinach, with each bite delivering a perfect balance of creamy, garlicky, and slightly nutty notes.

This dish pairs beautifully with a crisp white wine or a simple arugula salad. The key to success lies in the freshness of the ingredients and the balance of textures—creamy pesto, tender spinach, and toasted pine nuts create a harmonious bite.

👨‍🍳

Pro Tips For Making Spinach Pasta

  • CRISP THE TOFU FIRST: Press that tofu block hard—wrap it in a towel, place a heavy pan on top for 15 minutes—so it doesn’t turn to mush when you sear it. After pressing, slice it into ½-inch cubes and pat them bone-dry with a paper towel. I learned this the hard way—soggy tofu ruins the whole dish, no matter how good the rest is.
  • SALT THE PASTA WATER LATE: Wait until the water’s actually boiling before adding salt—around 3 minutes after you start heating it. Too early, and the salt just sits at the bottom. Use about 1½ tablespoons per pound of pasta, and taste it—it should taste like the sea. Trust me, this makes a real difference in flavor.
  • WILT SPINACH IN BATCHES: Don’t dump all the baby spinach in at once—it’ll turn to sludge. Instead, add half the spinach to the pan, stir for 30 seconds, then add the rest. The heat should just soften the leaves, not cook them to oblivion. Overcrowding the pan is how you end up with a sad, watery pile.
  • SAVE THE BASIL FOR FINISHING: Tear the basil leaves by hand (no chopping!) and stir them in only at the very end—just before serving. Heat wilts basil into nothing, and you want those bright, peppery leaves to pop against the creamy sauce. I was skeptical until I tried it—now I never skip this step.

Make-ahead tips for leftovers

Pesto Prep Ahead

The basil pesto keeps beautifully for 2 days in the fridge if stored properly. Pulse all ingredients except pine nuts in a food processor, then transfer to an airtight container. Top with a thin layer of extra-virgin olive oil—about ½ teaspoon—to preserve color and freshness.

When ready to cook, simply toss with freshly cooked pasta and wilted spinach. This shortcut saves 15 minutes of prep time on busy nights. 💫

Pasta Pre-Cooking

Cook the ditalini pasta one day ahead and store it in the fridge in its cooking water. When reheating, add 1 tablespoon of olive oil to prevent sticking, then simmer for 3-4 minutes over medium heat.

The pasta absorbs flavors better when reheated this way. I like to add a splash of pasta water when combining with pesto to maintain that silky texture. ⏰

Spinach Storage Hack

Wilt the spinach fresh before serving for the best texture, but you can prep it ahead. Blanch the 5 oz baby spinach in boiling water for 30 seconds, then shock in ice water. Drain thoroughly and store in an airtight container with a paper towel to absorb moisture.

Reheat gently in a skillet with 1 tablespoon olive oil for 1-2 minutes before mixing with pasta. This keeps it vibrant for up to 24 hours in the fridge. 🥗

Full Meal Prep

For a complete make-ahead meal, assemble everything except the final toss. Cook and cool the pasta, store the pesto separately, and keep the spinach prepped as above.

When ready to serve, simply reheat the pasta with 2 tablespoons of reserved pasta water, mix in the pesto, and fold in the spinach. This method ensures the spinach stays tender and the pesto remains vibrant. Perfect for meal prep Sundays! 📅

Freezing Tips

While not ideal for spinach, you can freeze the pesto base (without nuts) for up to 3 months. Use an ice cube tray for portion control—freeze, then transfer cubes to a freezer bag.

To use, thaw overnight in the fridge, then blend with fresh olive oil and toasted pine nuts. The pasta itself freezes well for 2 months if stored in a single layer before transferring to a freezer bag. Reheat from frozen in boiling water for 5 minutes. ❄️

Protein Additions

If adding protein, cook it separately and store in the fridge or freezer. Grilled chicken breast or shrimp reheat best—simmer in a little broth for 2-3 minutes to restore moisture. Fold into the pasta just before serving to keep it warm and tender.

For a vegetarian option, pre-cook white beans and store them with the pasta for a heartier dish. 💪

Nutrition facts

Servings 4
Amount Per Serving
Calories 580kcal
% Daily Value *
Total Fat 32g41%
Saturated Fat 8g40%
Cholesterol 30mg10%
Sodium 680mg29%
Total Carbohydrate 62g23%
Dietary Fiber 8g29%
Sugars 6g
Protein 28g56%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I use frozen spinach instead of fresh?

Yes, but thaw and drain it thoroughly first to remove excess water. Use 3 oz frozen spinach (about half the fresh amount) and squeeze out all moisture with a clean kitchen towel before sautéing. This prevents a watery pasta dish and keeps the texture tender.

2

What pasta shapes work best with this recipe?

Short shapes like ditalini, penne, or farfalle work perfectly—they trap the pesto and spinach beautifully. For long shapes like spaghetti, toss with extra pesto to ensure even coating. Avoid thick shapes like rigatoni, which may not absorb the sauce as well.

3

How do I prevent the pesto from turning brown?

Store it in an airtight container with a thin layer of olive oil on top to block air. Keep it refrigerated and use within 2 days for best color. For longer storage, freeze the pesto base (without nuts) in ice cube trays—it keeps for 3 months and thaws beautifully.

4

Can I make this dish ahead of time?

Yes! Cook the pasta, store the pesto separately, and prep the spinach (blanched and drained). Reheat pasta with 2 tbsp pasta water**, mix in pesto, then fold in spinach just before serving. This keeps the greens vibrant and prevents sogginess.

5

What if I don’t have pine nuts?

Toasted walnuts or pecans work beautifully as substitutes. Use the same amount and toast until fragrant. For a nut-free version, omit them entirely—the dish still tastes delicious with just the pesto and spinach.

★★★★★4.6(12 reviews)
Brian Walker