This creamy pesto pasta bake has tender pasta in a cheesy pesto cream sauce with spinach, topped with golden mozzarella and mixed in one dish.

This creamy pesto pasta bake is one of my favorite easy dinners! Tender pasta gets mixed with basil pesto, heavy cream, garlic, parmesan, chili flakes, and baby spinach, then topped with a thick layer of melted mozzarella.
Everything comes together right in the baking dish, and it’s on the table in about 35 minutes.
One reader, Austen, commented: “This was delicious! I added semi-sundried tomatoes as well and it was so good. ★★★★★”
One reader, Vanessa, commented: “Very good! ★★★★★”
For more easy pasta recipes, try my baked goat cheese pasta, baked feta pasta, and spinach pasta salad.
Jump to:
Why this recipe works
- One-Dish Dinner: Everything gets mixed right in the baking dish, so there’s barely any cleanup.
- Creamy and Cheesy: Heavy cream, parmesan, and a thick layer of mozzarella make every bite rich, gooey, and comforting.
- Big Pesto Flavor: Basil pesto, fresh garlic, and a pinch of chili flakes give the sauce a bright, savory kick.
- Perfect for Leftovers: It’s the best way to use up leftover cooked pasta or that half jar of pesto in the fridge.
- Ready in 35 Minutes: Just cook the pasta, stir everything together, and bake.

Ingredients
Before starting, measure and prepare your ingredients so the process goes smoothly. Full measurements are in the recipe card below.
Cooked Pasta: Any short pasta works. I love penne because it holds onto the sauce.
Heavy Cream: Turns the pesto into a rich, creamy sauce that coats every piece of pasta.
Pesto: The star of the dish, bringing the fresh basil, nutty, garlicky flavor. Store-bought or homemade both work.
Garlic: Freshly grated garlic adds a bold, aromatic flavor. It tastes much better than pre-minced garlic from a jar.
Parmesan Cheese: Adds a salty, savory depth and helps thicken the sauce.
Chili Flakes: Add a gentle heat. Cayenne pepper works too.
Baby Spinach: Wilts into the sauce as it bakes for color and freshness. Regular spinach works too.
Salt and Black Pepper: Season the sauce and bring all the flavors together.
Mozzarella Cheese: Melts into a gooey, golden top. Shredded mozzarella melts best, but fresh mozzarella works too.
Step by Step Instructions
Cook the Pasta
1. Prep: Preheat the oven to 200°C (400°F).
2. Cook: Cook the pasta in generously salted water until al dente, then drain.

Assemble and Bake
3. Mix: In a 9x13-inch baking dish, add the pasta, pesto, garlic, parmesan, chili flakes, salt, pepper, heavy cream, and spinach. Mix with a wooden spoon until everything is well combined.

4. Top: Sprinkle the mozzarella evenly over the top.

5. Bake: Bake for 20 minutes, until the cheese is melted and lightly golden.
6. Serve: Serve on its own or with your favorite protein or salad.

Expert Tips
- Salt the Pasta Water: Salt it generously so the pasta itself is well seasoned, not just the sauce.
- Cook the Pasta Al Dente: The pasta keeps cooking in the oven, so slightly firm pasta turns out perfectly tender instead of mushy.
- Don’t Rinse the Pasta: The starch on the surface helps the creamy sauce cling to it.
- Broil for a Golden Top: For extra-browned cheese, broil for the last 2 to 3 minutes, watching it closely so it doesn’t burn.
Troubleshooting
Why is my pasta bake dry?
The pasta was overcooked, or it baked too long. Stick to al dente pasta, and stir in a splash of cream when reheating leftovers.
Why is my pasta bake watery?
The pasta wasn’t drained well, or wet spinach went in. Shake off the pasta water and pat the spinach dry before mixing.
Why does it taste bland?
The pasta water wasn’t salted enough. Taste the sauce before baking and add a pinch more salt or parmesan.

Frequently Asked Questions
Short pasta works best. I used penne, but rigatoni, fusilli, rotini, and ziti are all great.
Yes! This bake is perfect for leftover pasta. Just mix it straight into the dish with the rest of the ingredients.
Absolutely. Try my basil pesto sauce, or use your favorite store-bought pesto.
Storing
Keep the pasta bake covered in the fridge for up to 3 days.
Reheating: Warm small portions in the microwave, or reheat the whole dish in a 180°C (350°F) oven for 8 to 10 minutes, until the cheese is bubbly.
Freezing
Whole Pasta Bake: Bake it in a freezer-friendly dish, let it cool, then wrap it tightly and freeze for up to 2 months. Thaw overnight in the fridge before reheating.
Portions: Divide the cooled bake into airtight containers and freeze for up to 2 months for easy single-serving meals.
Make It Ahead Of Time
Assemble Ahead
Mix the pasta bake in the dish, top with mozzarella, cover, and refrigerate for up to 1 day. Bake straight from the fridge, adding a few extra minutes.
Cook the Pasta Early
Cook the pasta up to 2 days ahead, toss it with a drizzle of olive oil, and keep it covered in the fridge.

Substitutions
Dairy-Free: Use a dairy-free pesto, swap the heavy cream for coconut cream or oat cooking cream, and use dairy-free mozzarella and parmesan or nutritional yeast.
Gluten-Free: Use your favorite gluten-free pasta and follow the recipe as written.
Whole-Grain Pasta: Chickpea, brown rice, whole wheat, or spinach pasta all work.
Variations
Different Pesto: Try spinach, sun-dried tomato, red pepper, or parsley pesto.
Add Chicken: Mix in cooked or shredded chicken, like my cast iron chicken, before baking.
Sun-Dried Tomatoes: Stir in chopped sun-dried tomatoes for a sweet, tangy bite.
Extra Creamy: Add 50 g of cream cheese to the mix for an even creamier sauce.
Extra Spicy: Add more chili flakes or a pinch of cayenne pepper.
How to Scale This Recipe for Different Pans
The recipe as written is for a 9x13-inch baking dish. Here’s how to adjust it for other pans.
- 8x8-Inch Pan: Make half the recipe and bake 15 to 20 minutes.
- Two 9x13-Inch Pans: Double the recipe and bake both dishes for about 20 minutes, rotating them halfway through.
Equipment
- Large pot
- Colander
- 9x13-inch baking dish
- Wooden spoon
- Cheese grater
More Pasta Recipes
Looking for more pasta? Try my creamy pesto pasta, Greek pasta salad, and pink sauce pasta.
Connect With Us
Review: Leave a rating and comment below if you enjoyed this recipe. Socials: Follow on Facebook, Instagram, and Pinterest. Save: Pin this recipe to Pinterest for later.
📖 Recipe

Creamy Pesto Pasta Bake
Ingredients
- 4 cups Cooked pasta any short pasta, such as penne
- ½ cup Pesto
- 2-3 Garlic cloves freshly grated
- ⅓ cup Parmesan cheese grated
- ½ teaspoon Chili flakes
- ¾ teaspoon Kosher salt
- ⅓ teaspoon Black pepper
- 1 cup Heavy cream
- 1 cup Baby spinach
- 1 ½ cups Mozzarella cheese shredded
Instructions
- Preheat the oven to 200°C (400°F).
- Cook the pasta in generously salted water until al dente, then drain.
- In a 9x13-inch baking dish, add the pasta, pesto, garlic, parmesan, chili flakes, salt, pepper, heavy cream, and spinach. Mix with a wooden spoon until everything is well combined.
- Sprinkle the mozzarella evenly over the top.
- Bake for 20 minutes, until the cheese is melted and lightly golden.
- Serve on its own or with your favorite protein or salad.
Notes
- Cook the pasta al dente: it keeps cooking in the oven, so slightly firm pasta bakes up tender instead of mushy. Leftover cooked pasta works great too.
- Salt the pasta water generously: it seasons the pasta itself, not just the sauce.
- Don’t rinse the pasta: the starch on the surface helps the creamy sauce cling to it.
- Drain well and use dry spinach: extra water makes the bake watery.
- For a golden top: broil for the last 2 to 3 minutes, watching closely so the cheese doesn’t burn.
- Make ahead: assemble, cover, and refrigerate for up to 1 day, then bake a few minutes longer.
- Storage: refrigerate for up to 3 days or freeze for up to 2 months. Reheat in a 180°C (350°F) oven or the microwave.






Austen says
This was delicious! I added semi- sundried tomatoes as well and it was so good. Thank you 🙂
Vanessa says
Very good ! I put the heavy cream , pesto , parmsean , garlic , and cream cheese in a saucepan heated it just enough to melt cream cheese and then poured it over the pasta , and topped with spinach and cherry tomatoes before baking . Will make this again !