Skip to main content

Creamy Pesto Pasta with Caramelized Onions

| ~6 min read | Pasta Sauces

Sections
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

Creamy pesto pasta with caramelized onions takes two humble ingredients — jarred or homemade basil pesto and slow-sweetened onions — and turns them into a glossy, deeply savory sauce that clings to every strand of pasta. The onions cook down until jammy and sweet, which balances the sharp garlic and salty Parmesan in the pesto, while a splash of cream loosens everything into a silky coating. It is a weeknight-friendly dish built on pantry staples, but the caramelizing step is what makes it taste like something you spent far longer on.

Ingredients

  • 12 oz (340 g) dried pasta — fusilli, penne, rigatoni, or tagliatelle all work well
  • 3 tbsp olive oil, plus more for drizzling
  • 2 large yellow onions (about 1 lb / 450 g total), halved and thinly sliced
  • 1/2 tsp salt, plus more for the pasta water
  • 1/4 tsp black pepper
  • 2 garlic cloves, minced
  • 1/2 cup (120 ml) heavy cream
  • 1/3 cup (80 ml) whole milk or reserved pasta water, as needed
  • 2/3 cup (160 g) basil pesto, store-bought or homemade
  • 1/2 cup (50 g) finely grated Parmesan, plus extra to serve
  • 1 tbsp unsalted butter (optional, for gloss)
  • Pinch of red pepper flakes (optional)
  • Fresh basil leaves and toasted pine nuts, to finish (optional)

Instructions

  1. Caramelize the onions. Heat the olive oil in a wide, heavy skillet over medium heat. Add the sliced onions and 1/2 tsp salt, toss to coat, and cook, stirring every few minutes, for 30 to 40 minutes until deep golden brown, soft, and jammy. If the pan dries out or the onions start to scorch, add a tablespoon of water and scrape up the browned bits. Lower the heat if they color too fast — slow is what builds sweetness.
  2. Start the pasta water. While the onions cook, bring a large pot of water to a rolling boil and salt it generously — about 1 tbsp salt per 4 quarts (4 L) of water. The water should taste lightly seasoned, like the sea.
  3. Add the garlic. When the onions are nearly done, stir in the minced garlic and red pepper flakes, if using, and cook for 1 minute until fragrant. Do not let the garlic brown or it will turn bitter.
  4. Cook the pasta to al dente. Add the pasta to the boiling water and cook according to the package directions, usually 9 to 12 minutes depending on shape, until al dente — tender with a slight bite at the center. Before draining, scoop out and reserve at least 1 cup (240 ml) of the starchy pasta water.
  5. Build the sauce. Reduce the heat under the skillet to low. Pour in the cream and milk, stir to combine with the onions, and warm gently for 2 to 3 minutes — do not let it boil hard or the cream can split. Stir in the pesto and Parmesan until smooth. If the sauce looks thick, loosen it with a splash of reserved pasta water.
  6. Combine. Drain the pasta and add it straight to the skillet. Toss over low heat for 1 to 2 minutes so the sauce coats every piece, adding pasta water a tablespoon at a time if it needs loosening. Stir in the butter, if using, for extra shine.
  7. Finish and serve. Taste and adjust salt and pepper. Twirl into warm bowls and top with extra Parmesan, fresh basil, and toasted pine nuts.

Tips

  • Patience with the onions is the whole dish. Real caramelization takes 30 to 40 minutes over medium-low heat. Turning the heat up to rush it gives you burnt edges and raw-tasting centers instead of sweetness. Stir often enough to prevent sticking but not so often that they never brown.
  • Keep the heat low once the cream goes in. Boiling cream with acidic pesto can cause it to curdle. Warm it gently and stir constantly; if it does look grainy, a splash of pasta water and vigorous stirring usually brings it back.
  • Reserve more pasta water than you think you need. The starch is what makes the sauce cling. One cup is a safe amount; unused water can be discarded.
  • Watch the salt. Pesto and Parmesan are both salty, so taste before adding more. Salt the pasta water moderately and adjust at the end.

Serving Suggestions

Serve this pasta hot in warmed bowls with a crisp green salad dressed simply with lemon and olive oil, or alongside roasted cherry tomatoes and a piece of crusty bread to mop up the sauce. A dry white wine or sparkling water with lemon works well. For a heartier meal, add grilled chicken or sautéed shrimp — cook poultry to 165°F (74°C) and shrimp to 145°F (63°C), checked with a food thermometer.

Variations

  • Vegan version: Use a dairy-free pesto, swap the cream for full-fat coconut milk or oat cream, and replace the Parmesan with a nutritional yeast or plant-based hard cheese. Skip the butter.
  • Add vegetables: Stir in blanched peas, roasted red peppers, or sautéed mushrooms with the sauce.
  • Protein boost: Fold in shredded rotisserie chicken, cooked Italian sausage (160°F / 71°C), or white beans.
  • Different pesto: Sun-dried tomato, arugula, or kale pesto all work; adjust salt since some are saltier than basil pesto.
  • Lighter sauce: Replace half the cream with reserved pasta water and finish with a little extra Parmesan for body.

Storage and Reheating

Cool leftovers within 2 hours (1 hour if the room is above 90°F / 32°C) and refrigerate in a sealed container at 40°F (4°C) or below. The pasta keeps 3 to 4 days in the fridge. It will absorb sauce and thicken as it sits, so reheat gently: add a splash of water or milk, cover, and warm over low heat on the stovetop or in the microwave, stirring every 30 seconds until steaming. Reheat leftovers to 165°F (74°C), checked with a food thermometer. To freeze, portion into containers and freeze at 0°F (-18°C) for up to 2 months; thaw overnight in the fridge (never on the counter) and reheat as above. Cream sauces can separate slightly after freezing — stir well and add a little fresh cream or pasta water to smooth them out.

Frequently Asked Questions

Can I make this with store-bought pesto?

Yes, and it works very well. Choose a refrigerated pesto with basil near the top of the ingredient list for the best flavor. Jarred pesto tends to be saltier, so reduce or skip the added salt and taste before seasoning.

Why did my cream sauce curdle?

Usually because the heat was too high or the cream was cold when it hit a hot pan. Add cream to a pan over low heat, stir constantly, and avoid a hard boil. If it does split, whisk in a tablespoon of pasta water and keep stirring over low heat.

Can I caramelize the onions ahead of time?

Absolutely. Cook them up to 3 days in advance, cool, and refrigerate in a sealed container. Reheat in the skillet before adding the garlic and cream. This makes the dish a genuine 20-minute meal on the night.

What pasta shape is best?

Short shapes with ridges or twists — fusilli, penne, rigatoni, farfalle — hold the thick sauce best. Long ribbons like tagliatelle or fettuccine also work if you toss them thoroughly so the sauce coats each strand.

Is the pasta supposed to be saucy or dry?

Saucy but not soupy. The sauce should coat the pasta and pool slightly at the bottom of the bowl. If it looks tight, add pasta water; if it looks watery, cook it down for a minute over low heat while tossing.

Can I use half-and-half instead of cream?

Yes, though half-and-half has less fat and is more prone to curdling. Keep the heat low and stir constantly. Whole milk alone will give a thinner sauce, so add an extra tablespoon of butter or Parmesan for richness.

Similar articles