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.
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.
Sometimes the most uncomplicated food is exactly what you need. This pesto gnocchi never lets me down.
Your Questions Answered
- → Can I make pesto gnocchi ahead of time?
-
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.
- → What can I use instead of pine nuts in pesto?
-
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.
- → How do I prevent gnocchi from sticking together?
-
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.
- → Is pesto gnocchi suitable for freezing?
-
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.
- → Can I use store-bought pesto instead of homemade?
-
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.
- → How do I make pesto gnocchi vegan?
-
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.