Get the best of two favorites with this shrimp pesto pasta: bright homemade basil pesto paired with succulent shrimp and perfectly cooked spaghetti. Fresh basil, parmesan, and a touch of cream make a vibrant, comforting dinner that comes together quickly.

If you browse my recipe collection you’ll notice I love combining pasta and seafood. This Pesto Shrimp Spaghetti is one of my go-to meals, joining other favorites like creamy shrimp Alfredo. In my view, pasta and seafood complement each other beautifully—especially when finished with a bright homemade pesto.
I make a lot of pesto at home and prefer it fresh—there’s nothing quite like the aroma of fresh basil and toasted pine nuts blended with parmesan. This pesto paired with shrimp and spaghetti is easy, flavorful, and great for weeknights or entertaining.
How to make
- Make the pesto – Toast pine nuts in a skillet for about a minute. Combine basil, garlic, lemon juice, pine nuts, and parmesan in a food processor or blender. With the machine running, slowly drizzle in the olive oil until the pesto is smooth. Season with salt and pepper to taste.
- Cook the shrimp – Heat butter and a little oil in a skillet over medium heat. Sauté the onion until translucent, about 3 minutes. Add the shrimp, season with salt, pepper and a pinch of chili powder, and cook about 2 minutes per side until just opaque.
- Combine and finish – Stir the pesto into the shrimp and cook for 1 minute to warm the sauce. Add heavy cream and diced tomato, cook briefly, then toss in cooked spaghetti with a splash of reserved pasta water. Stir until the pasta is well coated and adjust seasoning. Serve with extra parmesan.

What pasta is best with pesto?
Pesto pairs well with many pasta shapes. Long strands like spaghetti, linguine, or angel hair are classic choices, but short shapes such as penne, bowties, or rigatoni also work well because they hold the sauce. Pesto is versatile — try it on bread, as a dip, or mixed into grain bowls.
Is pesto healthy?
Pesto made from fresh basil, nuts, olive oil, garlic, and cheese is a nutritious condiment. It contains healthy fats from olive oil and nuts and provides vitamins from the basil. You can reduce sodium by limiting added salt and adjust oil quantities to control calories.
Top tips for perfect shrimp pesto pasta
- Swap pasta shapes – Use linguine or angel hair for a similar texture to spaghetti, or choose short pasta like penne or fusilli for a different mouthfeel.
- Add heat – For a spicier dish, stir crushed red pepper into the pesto or sprinkle it over the shrimp while cooking.
- Oil alternatives – If you prefer a different oil, avocado or sunflower oil can replace olive oil, though olive oil gives the most classic flavor.
- Serve with sides – Classic Italian sides complement this dish: crusty garlic bread, cheesy bread, monkey bread, or a fresh salad are excellent choices.
Storage
Store leftovers in an airtight container in the refrigerator for up to 4 days. Freezing is not recommended because the texture of the pasta and shrimp can change. Reheat gently in the microwave or on the stove with a splash of water or a damp paper towel to retain moisture.

Recipe details
Pesto Shrimp Spaghetti
Author: Julie Maestre
Servings: 4 | Prep: 5 mins | Cook: 15 mins
Summary: Tender shrimp and spaghetti coated in a vibrant homemade basil pesto, finished with a touch of cream and diced tomato for freshness.
Ingredients
- 1/2 lb shrimp
- 1 tbsp heavy cream
- 1 small onion, diced
- 1 small tomato, diced
- 1/2 tsp chili powder (optional)
- 1/2 lb spaghetti
- 1/4 cup reserved pasta water
- Salt and pepper to taste
Pesto
- 2 cups fresh basil leaves
- 2 garlic cloves
- 1/2 tbsp lemon juice
- 2/3 cup olive oil
- 1/4 cup pine nuts, toasted
- 1/2 cup grated parmesan cheese
- Salt and pepper to taste
Instructions
- Toast pine nuts in a small skillet over medium-high heat for about 1 minute until fragrant.
- Make the pesto: combine basil, toasted pine nuts, garlic, lemon juice, and parmesan in a food processor. With the motor running, drizzle in olive oil until smooth. Season and set aside.
- Cook spaghetti according to package directions. Reserve 1/4 cup of the pasta water before draining.
- Heat oil and butter in a large skillet over medium heat. Add the onions and cook 3 minutes until translucent.
- Add the shrimp, season with salt, pepper, and chili powder, and cook about 2 minutes per side until opaque.
- Stir the pesto into the skillet and cook 1 minute to warm. Add the heavy cream and diced tomatoes and cook 15 seconds.
- Toss the drained spaghetti into the skillet with the pasta water, mixing until the pasta is evenly coated. Adjust seasoning and serve with extra parmesan.
Nutrition (approx.)
Calories: 767 kcal | Carbs: 45 g | Protein: 36 g | Fat: 48 g
Nutrition information is an approximation.