Skip to content
Allquickyrecipes Search recipes

Dinner · Part 3 of 3: Tips & recipe card

Caramelized Onion and Garlic Butter Spaghetti: 20-Minute Dinner Tips, FAQ & printable recipe

Twirled spaghetti coated in caramelized onion garlic butter sauce with parmesan and parsley
Prep
Cook
Total
Serves
4

Tips for success

For the best caramelized onions, use a wide skillet so the onions have room to spread out. Crowded onions steam instead of browning.

Stir occasionally, but not constantly — let them sit to develop color. If they stick to the pan, add a splash of water or pasta water to deglaze.

Thinly shaving the garlic is important; it melts into the sauce and becomes sweet and mellow. If you prefer a milder garlic flavor, remove the germ from each clove. And always use freshly grated Parmesan — it makes a noticeable difference in texture and flavor.

Variations

  • Add Mushrooms: Sauté 8 oz sliced cremini mushrooms with the onions during the last 5 minutes of caramelizing. They add an earthy depth that pairs beautifully with the garlic butter and Parmesan.
  • Make It Spicy: Increase the red chili flakes to 1 teaspoon, or add a pinch of cayenne with the garlic. For extra heat, drizzle with chili oil before serving.
  • Add Greens: Stir in a handful of baby spinach or arugula with the pasta water. Let it wilt into the sauce for a fresh, peppery contrast to the sweet onions.
  • Use Whole Wheat Pasta: Swap the spaghetti for whole wheat spaghetti for a nuttier flavor and more fiber. Adjust the cooking time according to the package, and add a bit more pasta water for a looser sauce.

Storage and make-ahead

Fridge
Store leftovers in an airtight container in the refrigerator for up to 3 days. Reheat with a splash of water.
Freezer
Freeze in an airtight container for up to 2 months. Thaw overnight in the refrigerator before reheating.
Reheat
Reheat gently on the stovetop with a splash of water or broth, stirring until hot and glossy.

Store leftover spaghetti in an airtight container in the refrigerator for up to 3 days.

The sauce will thicken as it cools; add a splash of water or broth when reheating to restore its silky texture. Reheat gently on the stovetop or in the microwave, stirring frequently.

You can caramelize the onions up to 3 days ahead and store them in the refrigerator.

Reheat them gently in a skillet with a little butter or olive oil before proceeding with the recipe. The garlic can be sliced a day ahead, but for best flavor, prepare it fresh.

Serving ideas

Serve this spaghetti as a satisfying main course with a simple green salad dressed in lemon and olive oil, and a slice of crusty bread to mop up any remaining sauce.

For a heartier meal, add grilled chicken or shrimp on top — the sauce pairs beautifully with any protein.

For a vegetarian dinner, this pasta is already meat-free. If you want to add vegetables, toss in sautéed mushrooms or wilted spinach along with the spaghetti. The sweet onions and garlic butter complement earthy greens and mushrooms perfectly.

Frequently asked questions

Why are the onions not caramelizing?
Caramelizing onions takes time and patience. If the heat is too high, they will burn before they soften. Keep the heat at medium-low and stir occasionally. Adding a pinch of salt helps draw out moisture. If the onions start to stick, deglaze with a splash of water or pasta water.
Can this spaghetti be made ahead?
The caramelized onions can be made up to 3 days ahead and refrigerated. The finished pasta is best served immediately, but leftovers can be stored and reheated. When reheating, add a splash of water to loosen the sauce and restore its silky texture.
What can be used instead of Parmesan?
Pecorino Romano is a good substitute with a saltier, more pungent flavor. Use slightly less and adjust salt. For a dairy-free option, use nutritional yeast or a dairy-free Parmesan alternative, though the texture will differ.
How can the sauce be made creamier?
The sauce becomes creamy through the emulsion of pasta water, butter, and Parmesan. To make it extra creamy, add a splash of heavy cream or a knob of butter at the end. Alternatively, use a bit more pasta water and toss vigorously to emulsify.
Can this recipe be doubled?
Yes, this recipe doubles easily. Use a larger skillet to ensure the onions caramelize properly. You may need to increase the cooking time slightly. Keep the ratio of pasta water to sauce consistent, and add more Parmesan to taste.
Recipe card

Caramelized Onion and Garlic Butter Spaghetti: 20-Minute Dinner

Prep 10 minCook 20 minTotal 30 minServes 4
Twirled spaghetti coated in caramelized onion garlic butter sauce with parmesan and parsley

Ingredients

  • 12 oz spaghetti
  • 3 tbsp unsalted butter
  • 2 tbsp olive oil
  • 2 large yellow onions, thinly sliced
  • 1/2 tsp kosher salt
  • 6 cloves garlic, thinly shaved
  • 1/2 tsp red chili flakes
  • 1 cup starchy pasta water
  • 1 cup freshly grated parmesan cheese
  • 1/4 cup fresh parsley, chopped

Instructions

  1. Bring a large pot of generously salted water to a boil. Add the spaghetti and cook until just shy of al dente, about 1 minute less than the package directs. Meanwhile, heat a large skillet over medium heat. Add the butter and olive oil. Once the butter foams, add the sliced onions and salt. Cook slowly, stirring occasionally, until the onions are deeply browned, sweet, and jammy, 15 to 18 minutes. Do not rush this step; low and slow is key.
  2. When the onions are caramelized, push them to one side of the skillet. Add the thinly shaved garlic and red chili flakes to the empty side. Cook for 1 to 2 minutes, stirring constantly, until the garlic is fragrant and lightly golden. Be careful not to burn the garlic; it should be aromatic, not bitter. Stir everything together to combine.
  3. Ladle 1 cup of the starchy pasta water into the skillet with the onion-garlic mixture. Stir well, scraping up any browned bits from the bottom of the pan. Let the liquid bubble and reduce for 2 to 3 minutes, until it thickens slightly and becomes glossy. This starchy water binds the sauce and gives it a silky texture that clings to the pasta.
  4. Drain the spaghetti (reserve extra pasta water) and add it directly to the skillet. Use tongs or a pasta spoon to toss the spaghetti thoroughly with the onion-garlic sauce, coating every strand. If the sauce seems too thick, add a splash of the reserved pasta water to loosen it. The pasta should be glossy and well coated, not dry.
  5. Remove the skillet from the heat. Sprinkle in the freshly grated parmesan and chopped parsley. Toss quickly and vigorously to melt the cheese into the sauce, creating a creamy, emulsified coating. The cheese should melt into the pasta water and form a silky sauce. Taste and adjust seasoning with salt if needed.
  6. Divide the spaghetti among warm bowls or plates. Twirl each portion into a neat nest using tongs or a fork. Finish with an extra sprinkle of parmesan and a few parsley leaves if desired. Serve hot, with a crisp salad or crusty bread on the side. The sauce will thicken as it sits, so serve right away for the best texture.
Contains: gluten, milk

Estimated nutrition per serving

Calories
580
Protein
18 g
Carbohydrates
82 g
Fat
20 g
Automatic estimate from the ingredient list, not laboratory-verified.
Recipe by Clara Weller (pen name) · Allquickyrecipes · https://recipes.allquickyrecipes.com/caramelized-onion-garlic-butter-spaghetti-20-minute-dinner-2/part-3