Pesto Pasta Casserole Recipe: Baked, Cheesy and Easy
| ~6 min read | Lasagna and Baked Pasta
Sections
Pesto pasta casserole is a baked pasta dish that takes everything good about a bowl of pesto pasta — the bright basil-garlic sauce, the slick of olive oil, the salty grated cheese — and turns it into a bubbling, golden-topped bake that feeds a crowd and reheats beautifully. It works because the pesto is stretched with a creamy white sauce so it doesn't dry out or turn bitter in the oven, and the pasta is par-cooked first so it finishes in the sauce rather than soaking it all up. One dish, about an hour, and no last-minute sauce-making at the stove.
Ingredients
- 450 g (1 lb) penne, rigatoni, or fusilli
- 2 tbsp salt, for the pasta water
- 240 ml (1 cup) basil pesto, store-bought or homemade
- 30 g (2 tbsp) unsalted butter
- 30 g (1/4 cup) all-purpose flour
- 600 ml (2 1/2 cups) whole milk, warmed
- 120 ml (1/2 cup) heavy cream
- 1/2 tsp salt, plus more to taste
- 1/4 tsp freshly ground black pepper
- 1/4 tsp grated nutmeg (optional)
- 200 g (2 cups) shredded low-moisture mozzarella
- 60 g (2/3 cup) finely grated Parmesan, divided
- 200 g (1 1/2 cups) cherry tomatoes, halved (optional)
- 1 tbsp olive oil, for the baking dish
- 60 g (1/2 cup) panko breadcrumbs (optional, for the topping)
Instructions
- Heat the oven to 190°C (375°F). Bring a large pot of water to a rolling boil and add the 2 tbsp salt. Add the pasta and cook 2 minutes less than the package's al dente time — it will finish cooking in the oven. Reserve 120 ml (1/2 cup) of the starchy pasta water before draining.
- While the pasta cooks, make the white sauce. Melt the butter in a medium saucepan over medium heat. Whisk in the flour and cook, whisking constantly, for 1 minute until it smells toasty but hasn't browned.
- Pour in the warm milk in a steady stream, whisking constantly to keep it lump-free. Add the cream, 1/2 tsp salt, pepper, and nutmeg if using. Simmer gently for 3–4 minutes, whisking, until the sauce coats the back of a spoon. Take it off the heat.
- Stir the pesto into the warm white sauce. Taste and adjust salt — pesto is salty, so go easy. If the sauce looks thick, loosen it with a splash of the reserved pasta water.
- Drain the pasta and return it to the pot. Pour the pesto sauce over it and toss well, along with half the mozzarella and half the Parmesan. Scatter in the cherry tomatoes if using.
- Lightly oil a 23 x 33 cm (9 x 13 inch) baking dish. Tip in the pasta and spread it level. Top with the remaining mozzarella and Parmesan. If using breadcrumbs, toss them with the olive oil and scatter over the top.
- Bake uncovered for 25–30 minutes, until the edges bubble and the top is deep golden. If the top browns before the middle is hot, tent loosely with foil. The center should register 74°C (165°F) on an instant-read thermometer.
- Rest for 10 minutes before serving — the sauce sets and the portions hold together.
Tips
- Undercook the pasta, not the sauce. Pasta cooked fully on the stove turns mushy after 25 minutes in the oven. Two minutes shy of al dente is the sweet spot.
- Warm the milk before adding it to the roux. Cold milk hitting hot flour is the most common cause of a lumpy white sauce.
- Don't skip the salt in the pasta water, but taste the finished sauce before adding more. Commercial pesto varies wildly in saltiness, and the cheese adds more.
- If you use a jarred pesto that's heavy on oil, drain a little off the top before measuring, or the bake will turn greasy.
Serving Suggestions
Serve straight from the dish with a sharply dressed green salad — lemon juice, olive oil, a pinch of salt — to cut through the richness. Garlic bread or a plain focaccia works well for mopping. A crisp dry white wine or sparkling water with lemon suits it. For a larger meal, add grilled chicken or Italian sausage on the side; if you cook poultry, it must reach 74°C (165°F) and pork or ground meat 71°C (160°F), checked with a thermometer.
Variations
- Chicken pesto bake: Fold in 300 g (2 cups) of cooked, shredded chicken. Cook it to 74°C (165°F) first; don't add raw poultry to the bake.
- Vegetable-heavy: Add 250 g (2 cups) of blanched broccoli florets, zucchini slices, or spinach squeezed dry. Sauté watery vegetables first so the casserole doesn't turn soupy.
- Ricotta layer: Dollop 250 g (1 cup) of ricotta in spoonfuls over the pasta before the mozzarella for a lasagna-like texture.
- Sun-dried tomato and olive: Swap the cherry tomatoes for 80 g (1/2 cup) chopped sun-dried tomatoes and 60 g (1/2 cup) sliced black olives.
- Gluten-free: Use gluten-free pasta cooked just to al dente and a cornstarch slurry instead of the flour roux (1 tbsp cornstarch whisked into cold milk).
Storage and Reheating
Cool leftovers within 2 hours of baking (1 hour if the room is above 32°C/90°F) and refrigerate in a covered container at 4°C (40°F) or below. It keeps 3–4 days. To reheat, cover with foil and bake at 180°C (350°F) for 20–25 minutes, or microwave individual portions with a splash of water, covered, until steaming. Reheated casseroles must reach 74°C (165°F). To freeze, portion into freezer-safe containers and freeze at -18°C (0°F) for up to 3 months; thaw overnight in the fridge — never on the counter — and reheat as above. Expect the pasta to soften slightly after freezing.
Frequently Asked Questions
Can I assemble the casserole ahead of time?
Yes. Assemble it completely, cover, and refrigerate for up to 24 hours. Add 5–10 minutes to the bake time since it starts cold. Don't freeze it unbaked with the cheese topping — the texture suffers.
Why did my casserole turn out dry?
Usually too little sauce or pasta cooked fully before baking. Use the full amount of white sauce, keep the pasta slightly underdone, and cover with foil for the first 15 minutes if your oven runs hot.
Can I use homemade pesto?
Absolutely, and it's worth it in summer. Store it covered with a thin film of olive oil in the fridge for up to a week. Don't store garlic- or herb-in-oil mixtures at room temperature — refrigerate them.
Is the egg in pesto a safety concern?
Traditional pesto contains no egg, so there's nothing raw to worry about. If you add a raw egg to your own pesto or a sauce, use pasteurized eggs, especially for anyone pregnant, elderly, or immunocompromised. Never taste raw dough or batter containing raw flour or egg.
Can I make this without a white sauce?
Yes — toss the pasta with pesto thinned by 200 ml (3/4 cup) of reserved pasta water and 100 g (1/2 cup) of ricotta or cream cheese instead. It's lighter but less creamy and browns faster, so check at 20 minutes.
How do I know the casserole is done?
The edges should bubble and the center should be hot all the way through — 74°C (165°F) on a food thermometer. Golden cheese alone isn't proof; check the middle, not just the top.