Pillowy potato gnocchi tossed in vibrant, herbaceous basil pesto. This quick Italian dinner tastes gourmet but comes together in just 15 minutes using store-bought gnocchi and homemade or jarred pesto.

Gnocchi with pesto is one of Italy's most beloved quick dinners — pillowy potato gnocchi tossed in the most fragrant sauce in the Italian repertoire: basil pesto (pesto alla Genovese), made from fresh basil, pine nuts, garlic, Parmigiano-Reggiano, Pecorino, and extra virgin olive oil. The dish comes together in about 15 minutes using store-bought gnocchi and either homemade or quality jarred pesto, creating a restaurant-quality result from almost no effort.
Gnocchi with pesto delivers extraordinary flavor from minimal work. The soft, pillowy gnocchi has an almost creamy texture that contrasts perfectly with the vibrant, nutty, herby pesto. It is naturally vegetarian, feels indulgent despite being relatively light, and the preparation is genuinely a matter of boiling water and tossing ingredients together.
Gnocchi with pesto is ideal for quick weeknight dinners, light spring and summer meals when fresh basil is abundant, and impromptu entertaining when you need something impressive with little notice. Serve it as a primo (first course) before a simply grilled protein, or as a complete light main course with a salad.
Do not overcook gnocchi — they are done when they float to the surface. Toss with pesto off the heat to preserve the vibrant green color. Reserve pasta water for loosening the sauce. For extra texture and flavor, pan-fry cooked gnocchi in butter until golden on one side before tossing with pesto.
The foundation of the dish. Quality store-bought gnocchi (fresh from the refrigerated section) is the best option for a quick meal. Dried shelf-stable gnocchi also works but has a slightly different, firmer texture. Homemade gnocchi is extraordinary but requires significant time.
The sauce that defines the dish. Whether homemade or store-bought, the pesto must be made from fresh basil — dried basil cannot be used. Quality pesto contains real Parmigiano-Reggiano, pine nuts, garlic, and extra virgin olive oil. Seek out Italian brands with simple, recognizable ingredients.
The nut in traditional Genovese pesto. They have a buttery, sweet quality that no other nut can replicate exactly. Toast them briefly in a dry pan before adding to pesto for deeper, nuttier flavor. Can be replaced with walnuts for a budget-friendly alternative.
Both in the pesto and as a finishing garnish, Parmesan provides salty, savory, nutty depth. Use freshly grated Parmigiano-Reggiano rather than pre-grated for the best flavor. The cheese in the pesto also helps emulsify the oil into a smooth, cohesive sauce.
Replace pine nuts with walnuts, almonds, or cashews for a more affordable pesto. Substitute half the basil with spinach or arugula for a different pesto flavor. Use vegan Parmesan and omit Pecorino for a dairy-free version. Cauliflower gnocchi can replace potato gnocchi for a lower-carb option. Add sun-dried tomato pesto instead of basil pesto for a completely different but equally quick dish. For extra protein, add cooked Italian sausage, shrimp, or pan-fried chicken alongside the gnocchi.
In a food processor or blender, combine 2 cups packed fresh basil leaves, 1/3 cup pine nuts, 3 peeled garlic cloves, 1/2 cup grated Parmesan, 1/4 teaspoon salt, and 1/4 teaspoon black pepper. Pulse until roughly chopped. With the motor running, slowly drizzle in 1/2 cup extra virgin olive oil through the feed tube until the mixture is smooth and creamy. Add 1 tablespoon lemon juice and pulse once more. Taste and adjust seasoning if needed. If using store-bought pesto, skip this step and have 3/4 cup ready.
Bring a large pot of salted water to a rolling boil. Add 1 pound of gnocchi. Fresh gnocchi cooks very quickly—it's done when the pieces float to the surface, usually 2-3 minutes. Shelf-stable gnocchi may take 3-4 minutes. Before draining, reserve 1/2 cup of the starchy pasta cooking water. Drain the gnocchi in a colander.
For extra flavor and texture, heat 2 tablespoons butter in a large skillet over medium-high heat. Add the cooked gnocchi in a single layer. Let them sit undisturbed for 2-3 minutes until golden and crispy on the bottom. Gently toss and cook for another 1-2 minutes. This step is optional but adds wonderful texture contrast.
Reduce heat to low. Add 3/4 cup pesto to the skillet with the gnocchi (or add the gnocchi to a bowl if you skipped the toasting step). Add 2-4 tablespoons of reserved pasta water, starting with 2 tablespoons. Toss gently until the gnocchi is evenly coated with the pesto. The pasta water helps thin the pesto so it coats each piece beautifully. Add more water if needed to reach desired consistency.
Transfer the gnocchi to serving plates or bowls. Top with extra grated Parmesan cheese, a few fresh basil leaves, toasted pine nuts if desired, and halved cherry tomatoes for a pop of color and freshness. Serve immediately while hot.
Techniques that separate good from great
Heat destroys chlorophyll, the compound that gives basil its vivid green color. Pesto turns from brilliant green to dull, dark olive when cooked over heat. Remove the pan from heat completely or toss in a bowl before adding the pesto. Work quickly and serve immediately.
Pesto is thick and can clump on gnocchi rather than coating evenly. A tablespoon or two of the hot, starchy pasta water added while tossing emulsifies the pesto into a loose, silky sauce that coats every piece. Add it gradually — a little goes a long way.
For a completely different texture, drop cooked gnocchi into a hot, buttered pan over medium-high heat without crowding. Cook undisturbed for 2-3 minutes until golden and slightly crispy on one side. The crispy exterior contrasts beautifully with the soft interior and adds nutty flavor to the dish.
Gnocchi cools very quickly and the pesto sauce can seize and become thick as the dish cools. Warm bowls with hot water for 1-2 minutes, dry, and plate immediately. This keeps the gnocchi at the ideal serving temperature for longer.
Different ways to make this dish your own
Stir 2-3 tablespoons of heavy cream into the pesto before tossing with gnocchi. The cream softens the pesto's sharp garlic edge and creates a richer, more coating sauce.
Skip boiling and pan-fry the gnocchi directly in 2 tablespoons of butter and 1 tablespoon of olive oil over medium-high heat until golden and crispy on all sides (about 6-8 minutes). Toss off the heat with pesto and Parmesan.
Add 1 cup of halved cherry tomatoes to the gnocchi after tossing with pesto. The burst of sweet, juicy tomatoes contrasts with the nutty pesto and pillowy gnocchi beautifully.
Plate the pesto gnocchi and top with a ball of fresh burrata torn open at the center. The creamy, milky burrata melts slightly over the warm gnocchi and creates a luxurious version of the dish.
Perfect pairings to complete the meal
Sliced ripe tomatoes, fresh mozzarella, and basil with olive oil and balsamic is the ideal Italian starter or side alongside gnocchi with pesto. The combination creates a complete, cohesive Italian meal.
The peppery bitterness of arugula dressed with fresh lemon juice, olive oil, and a shaving of Parmesan provides a bright, contrasting counterpoint to the rich, nutty pesto.
Grilled ciabatta rubbed with garlic and topped with chopped tomatoes as a starter perfectly precedes the simplicity of the gnocchi and keeps the Italian theme cohesive.
A crisp, light Italian white wine complements the herbaceous pesto without overwhelming it. Ligurian Vermentino is the most authentic pairing for a Genovese pesto dish.
Keep it fresh and plan ahead
Store leftovers in an airtight container for up to 2 days. Gnocchi absorbs the pesto and can become slightly sticky when refrigerated. The dish is best enjoyed fresh.
Not recommended for dressed gnocchi. The texture of the gnocchi deteriorates significantly when frozen and the pesto loses its vibrant color and flavor. Uncooked gnocchi can be frozen successfully — spread in a single layer, freeze until solid, then transfer to bags.
Make the pesto up to 1 week ahead and store in the refrigerator with a thin layer of olive oil on top to prevent browning. Cook the gnocchi fresh just before serving. Store pesto in the freezer (in ice cube trays) for up to 3 months.
Reheat gently in a pan over low heat with a splash of water to loosen. The pesto can become oily and the color will dull with reheating. For better results, toss cold leftovers with a fresh spoonful of pesto rather than reheating the original.
Be the first to review this recipe!
Turn what you already have in your fridge into delicious meals. Our AI-powered generator creates personalized recipes from your ingredients.
Browse more like this:
Discover more delicious recipes similar to what you're cooking
Join our newsletter and discover new favorites delivered straight to your inbox. No spam, just tasty inspiration.