Pesto Gnocchi with Basil Parmesan

Soft potato gnocchi coated in vibrant green homemade basil pesto sauce topped with grated Parmesan Save
Soft potato gnocchi coated in vibrant green homemade basil pesto sauce topped with grated Parmesan | cookingwithmila.com

This classic Italian comfort dish combines pillowy soft potato gnocchi with a vibrant, aromatic homemade basil pesto. The fresh basil leaves, garlic, pine nuts, and Parmesan create a silky, emerald-green sauce that clings beautifully to each dumpling. Ready in just 25 minutes, this vegetarian main delivers restaurant-quality results with minimal effort. The pesto comes together in seconds in a food processor, while store-bought or fresh gnocchi cook in mere minutes.

For the best flavor, toast your pine nuts before blending into the pesto, and reserve a splash of gnocchi cooking water to create a luxuriously smooth sauce. Finish with extra grated Parmesan and fresh basil leaves for an impressive presentation that's perfect for weeknight dinners or casual entertaining.

The first time I made fresh pesto, my entire apartment smelled like an Italian herb garden. I had just moved into my first place with a real kitchen, and I remember standing by the food processor, watching the bright green sauce come together, feeling like I'd unlocked some kind of secret. Now this pesto gnocchi is my go-to when I want something that feels fancy but comes together in the time it takes to boil water.

Last summer, my sister came over for dinner exhausted from a new job, and I made this for her. She took one bite and literally went quiet for a full minute, just chewing slowly with her eyes closed. Sometimes the simplest food hits the hardest when you need it most.

Ingredients

  • 500 g potato gnocchi: Fresh potato gnocchi cooks up pillowy and tender, though shelf-stable works in a pinch. Just dont overcook or they turn gummy.
  • 50 g fresh basil leaves: Use the most fragrant basil you can find. I grow mine in windowsill pots during summer and miss it desperately in winter.
  • 2 cloves garlic: Fresh garlic gives pesto its backbone. One time I used roasted garlic instead and the sauce turned weirdly sweet, so stick to raw here.
  • 40 g pine nuts: These add buttery richness, though walnuts make a fine substitute if pine nuts are priced ridiculously at your store.
  • 60 g grated Parmesan: Good Parmesan makes all the difference. I buy a wedge and grate it myself because the pre-grated stuff never melts quite right.
  • 80 ml extra-virgin olive oil: This ties everything together. Use your best olive oil since the flavor really shines in such a simple sauce.
  • Salt and black pepper: Taste as you go. Pesto needs more salt than you think, especially if youre tossing it with bland gnocchi.
  • Juice of ½ lemon: Optional but highly recommended. That acid cuts through the rich oil and makes the whole dish sing.

Instructions

Get your water ready:
Bring a large pot of salted water to a boil while you make the pesto. I salt mine like the ocean because gnocchi itself is pretty bland.
Make the pesto base:
Combine basil, garlic, pine nuts, and Parmesan in your food processor. Pulse until coarsely chopped, scraping down the sides once to catch any stubborn basil leaves clinging to the lid.
Add the olive oil:
With the motor running, slowly stream in the olive oil until you have a smooth, vibrant green sauce. It should look silky and coat the back of a spoon beautifully.
Season to perfection:
Taste and add salt, pepper, and lemon juice if using. I always add the lemon now, but start with half and see if you think it needs more.
Cook the gnocchi:
Drop gnocchi into the boiling water and wait for them to float. This usually takes 2 to 3 minutes. Do not walk away or theyll turn into mushy disappointment.
The magic moment:
Drain the gnocchi but reserve some of that starchy cooking water. Toss the hot gnocchi with pesto in a large bowl, adding a splash of cooking water if the sauce needs help clinging to every piece.
Plate it up:
Serve immediately with extra Parmesan, fresh basil, and toasted pine nuts scattered on top. I like eating this straight from the bowl while standing at the counter.
Golden pesto gnocchi in a creamy green basil sauce garnished with fresh basil leaves and pine nuts Save
Golden pesto gnocchi in a creamy green basil sauce garnished with fresh basil leaves and pine nuts | cookingwithmila.com

This became my comfort food after a brutal breakup. I ate it for dinner three nights in a row and somehow those pillowy potato dumplings covered in bright basil sauce made everything feel manageable again.

Making Pesto Without a Food Processor

I once made this at a friends cabin where the only appliance was a blender. It worked, but I ended up having to stop and scrape down the sides constantly. A mortar and pestle gives you the most authentic texture, but honestly, you can even chop everything finely by hand and mash it together with olive oil. The flavor is still there.

Choosing the Right Gnocchi

Fresh gnocchi from the refrigerated section cooks up so much better than the shelf-stable stuff. If you can find it at an Italian market or make it yourself, do. That said, Ive made this with budget gnocchi from the regular grocery store plenty of times, and the pesto is strong enough to carry the dish regardless.

Storage and Make-Ahead Tips

Pesto keeps in the fridge for about a week, though the bright green color will fade slightly. I like making a double batch and using the extra on everything from sandwiches to roasted vegetables. Just store it in a jar with a thin layer of olive oil on top to prevent oxidation. Leftover pesto gnocchi, however, is basically a different meal—the gnocchi absorbs all the sauce and expands overnight. I actually love it this way, almost like potato salad.

  • Toast your extra pine nuts in a dry pan until golden and fragrant. That crunch on top is worth the extra two minutes.
  • If making ahead, undercook the gnocchi slightly by about 30 seconds. Theyll finish cooking when you reheat everything together.
  • Parmesan rinds can be thrown into the boiling water while gnocchi cooks for an extra subtle depth of flavor. Fish them out before draining.
Plate of fluffy Italian potato gnocchi tossed with aromatic basil pesto and extra Parmesan cheese shavings Save
Plate of fluffy Italian potato gnocchi tossed with aromatic basil pesto and extra Parmesan cheese shavings | cookingwithmila.com

Sometimes the most uncomplicated food is exactly what you need. This pesto gnocchi never lets me down.

Your Questions Answered

Prepare the pesto up to 3 days in advance and store it in an airtight container in the refrigerator with a thin layer of olive oil on top to prevent oxidation. Cook the gnocchi fresh just before serving for the best texture, as reheated gnocchi can become gummy.

Walnuts, almonds, cashews, or even sunflower seeds make excellent substitutes for pine nuts. Toast them lightly before blending to enhance their nutty flavor and match the depth that pine nuts provide to the classic sauce.

Use a large pot with plenty of salted boiling water and stir gently immediately after adding the gnocchi. Cook in batches if necessary to avoid overcrowding. Drain quickly and toss with pesto right away while they're still hot.

Freeze the prepared pesto in ice cube trays or small portions for up to 3 months. Uncooked gnocchi can be frozen according to package directions. However, it's best to cook and combine them fresh, as the texture suffers from freezing after cooking.

Store-bought pesto works perfectly for a quicker version. Look for fresh refrigerated pesto without preservatives for the closest flavor to homemade. You may want to add a squeeze of fresh lemon juice to brighten the flavor.

Substitute the Parmesan cheese with nutritional yeast, vegan Parmesan, or a combination of miso paste and cashews. Use a high-quality extra-virgin olive oil to maintain the rich, creamy texture that cheese traditionally provides.

Pesto Gnocchi with Basil Parmesan

Fluffy potato gnocchi coated in fresh, aromatic basil pesto with Parmesan and toasted pine nuts.

Prep 15m
Cook 10m
Total 25m
Servings 4
Difficulty Easy

Ingredients

Gnocchi

  • 1.1 lbs potato gnocchi, fresh or store-bought

Pesto

  • 1.8 oz fresh basil leaves
  • 2 cloves garlic, peeled
  • 1.4 oz pine nuts, plus extra for garnish
  • 2.1 oz grated Parmesan cheese
  • 1/3 cup extra-virgin olive oil
  • Salt and freshly ground black pepper to taste
  • Juice of ½ lemon, optional

Garnish

  • Extra Parmesan cheese, grated
  • Fresh basil leaves

Instructions

1
Boil the Water: Bring a large pot of salted water to a rolling boil.
2
Prepare the Pesto: Combine basil, garlic, pine nuts, and Parmesan in a food processor. Pulse until coarsely chopped. With motor running, stream in olive oil until smooth and creamy. Season with salt, pepper, and lemon juice if desired. Set aside.
3
Cook the Gnocchi: Add gnocchi to boiling water and cook according to package directions, typically 2-3 minutes until they float to surface.
4
Drain and Reserve: Drain gnocchi, reserving a small amount of cooking water.
5
Toss and Serve: Transfer hot gnocchi to a large bowl and toss with pesto. Add splash of reserved cooking water for silkier consistency if needed. Serve immediately, garnished with extra Parmesan, basil leaves, and pine nuts.
Additional Information

Equipment Needed

  • Large pot
  • Colander
  • Food processor or blender
  • Mixing bowl
  • Wooden spoon

Nutrition (Per Serving)

Calories 430
Protein 11g
Carbs 45g
Fat 22g

Allergy Information

  • Contains dairy (Parmesan cheese)
  • Contains nuts (pine nuts)
  • Contains gluten (gnocchi, unless using gluten-free variety)
Mila Russo

Passionate home cook sharing easy, flavorful recipes and practical meal tips.