Easy Appetizers

Simple appetizers, snacks and home cooking answers

Macaroni and Cheese with Pesto Recipe Easy Oven-Baked Version

· 4 min read · Mains

In this article
  1. Pesto Preparation
  2. Pasta and Cheese Sauce
  3. Assembly and Baking
  4. Serving Suggestions
  5. Common Pitfalls
  6. Refrigerated Storage
  7. Freezer Storage
  8. Food‑Safety Notes

Time: 45‑55 min total, Serves: 6‑8, Key step: toss al‑dente pasta with pesto before adding the cheese sauce and bake.

Pesto Preparation

Pesto adds a herbaceous, slightly nutty counterpoint to the richness of baked mac and cheese. Traditional basil pesto is blended with garlic, pine nuts, Parmesan, and olive oil; the ratio of oil to solids determines how easily it coats the pasta.

  • 2 cups packed fresh basil leaves (about 60 g)
  • 1/3 cup grated Parmesan cheese (30 g)
  • 2 Tbsp pine nuts (15 g)
  • 1 clove garlic, peeled
  • 1/2 cup extra‑virgin olive oil (120 ml)
  • Salt to taste (about 1/4 tsp)
  • Freshly ground black pepper, optional pinch

Pasta and Cheese Sauce

The pasta should be cooked just short of al dente because it will finish cooking in the oven. The cheese sauce combines cheddar for melt, Gruyère for depth, and a splash of milk for silkiness.

  • 340 g (12 oz) elbow macaroni or other short pasta
  • 2 Tbsp unsalted butter (28 g)
  • 2 Tbsp all‑purpose flour (16 g)
  • 2 cups whole milk (480 ml), warmed
  • 1 cup shredded sharp cheddar (115 g)
  • 1/2 cup shredded Gruyère (55 g)
  • 1/2 tsp dry mustard powder
  • Pinch of nutmeg
  • Salt and pepper to taste

Assembly and Baking

  1. Preheat a conventional oven to 375°F (190°C). Position a rack in the middle of the oven.
  2. Bring a large pot of salted water to a rolling boil. Add the macaroni and cook 6‑7 minutes, until just shy of al dente. Drain and set aside.
  3. While the pasta cooks, make the pesto. In a food processor combine basil, Parmesan, pine nuts, garlic, and salt. Pulse until finely chopped. With the processor running, drizzle in the olive oil until a smooth, glossy paste forms. Taste and add pepper if desired. Transfer to a bowl and cover; refrigerate for no more than 4 days.
  4. Make the cheese sauce. Melt butter in a medium saucepan over medium heat (about 300 °F/150 °C surface temperature). Whisk in flour and cook 1‑2 minutes, stirring constantly, until the mixture turns a light golden color – this is a roux. Gradually whisk in the warm milk, ensuring no lumps form. Continue stirring for 4‑5 minutes, until the sauce thickens and coats the back of a spoon. Reduce heat to low and stir in cheddar, Gruyère, dry mustard, nutmeg, salt, and pepper. Cook 1‑2 minutes more, just until the cheese melts completely.
  5. Combine the pasta, pesto, and cheese sauce in a 9‑by‑13‑inch (23 × 33 cm) baking dish. Toss gently to coat every piece; the pasta should be glossy but not swimming in excess sauce.
  6. Sprinkle an additional 1/4 cup grated Parmesan over the top for a crisp crust.
  7. Place the dish in the preheated oven and bake 20‑25 minutes, until the surface is golden brown and the interior is bubbling. The internal temperature should reach at least 165°F (74°C) for food‑safety compliance.
  8. Remove from the oven and let rest 5 minutes before serving. This resting period allows the sauce to set and prevents excessive spilling.

Serving Suggestions

Serve the baked macaroni and cheese with pesto alongside a simple arugula salad dressed with lemon vinaigrette; the peppery greens balance the richness. Grilled chicken breast or roasted salmon add protein without competing flavors. A crisp white wine such as Sauvignon Blanc or a lightly chilled sparkling water with a slice of lemon complements the dish.

Common Pitfalls

Over‑cooked Pasta

If the pasta is boiled until fully tender, it will become mushy after the bake. The result is a gummy texture that cannot be rescued by additional sauce.

Runny Top

Insufficient baking time leaves the cheese sauce loose, causing the dish to slide when cut. Extending the bake by 5 minutes or increasing the oven temperature to 400°F (205°C) for the final 2 minutes creates a firm crust.

Bitterness from Pesto

Adding raw garlic or over‑blending the basil can release chlorophyll compounds that taste bitter. Use fresh garlic, blend briefly, and taste before adding salt.

Refrigerated Storage

Cool the leftovers to room temperature within 2 hours, then transfer to an airtight container. Store in the refrigerator for 3‑4 days. Reheat individual portions in a microwave or oven, ensuring the internal temperature reaches 165°F (74°C) before serving.

Freezer Storage

For longer keeping, portion the baked dish into freezer‑safe containers, leaving a 1‑cm headspace for expansion. Freeze for up to 2 months. Thaw overnight in the refrigerator, then reheat in a 350°F (175°C) oven for 20‑25 minutes, or microwave to 165°F (74°C). Do not refreeze after thawing.

Food‑Safety Notes

Both the cheese sauce and pesto contain dairy, which can support bacterial growth if left too long at ambient temperature. Do not let the dish sit out more than 2 hours (1 hour above 90°F/32°C). Raw garlic in the pesto should be refrigerated and used within 4 days to avoid botulism risk.