Spaghetti aglio e olio is a classic Italian pasta with just a few ingredients. Thinly sliced garlic is gently cooked in plenty of extra virgin olive oil, then spaghetti and starchy pasta water are tossed in to make a light, glossy sauce.
This version, based on the recipe from The Mediterranean Dish, serves up to 6 and takes about 20 minutes in total.
Spaghetti aglio e olio is a classic Italian dish of pasta tossed with garlic, olive oil and red pepper, proving that a few simple ingredients can be spectacular.
Spaghetti Aglio e Olio at a Glance
Prep takes about 5 minutes and cooking takes about 15, for a total of 20 minutes. The recipe serves up to 6, and each serving comes to about 399.8 calories with 9.8 g of protein, according to the nutrition estimate, with no stated serving size.
- Prep time: 5 minutes
- Cook time: 15 minutes
- Total time: 20 minutes
- Servings: 6
- Cuisine: Italian
Why Watch the Garlic
Garlic scorches quickly and turns bitter. Cook it only until it barely turns golden, and if it darkens too much, start over with fresh oil and garlic.
Use good-quality extra virgin olive oil, since it is the main flavor.
Ingredients for Spaghetti Aglio e Olio
- 12 ounces spaghetti
- Kosher salt, about 1 tablespoon for the pasta water
- 1/2 cup extra virgin olive oil
- 8 garlic cloves, thinly sliced
- 1/2 teaspoon red pepper flakes, optional, or more to taste
- 1/3 cup grated Parmesan, optional, or more to taste
- Chopped parsley, optional, for garnish
Notes on the Ingredients
Pasta: 12 ounces of spaghetti, cooked until just short of al dente.
Pasta water: save 1 1/2 cups before draining, then simmer until reduced by about a third.
Parmesan: 1/3 cup, optional. Omit it for a vegan version.
Choosing the Best Ingredients
Spaghetti: Cook it al dente and save some starchy pasta water.
Extra virgin olive oil: It forms the sauce, so use a flavorful oil.
Garlic: Thinly sliced garlic cooked gently until golden gives sweet, nutty flavor.
Red pepper flakes and Parmesan: Optional additions for heat and savory richness.
How to Make Spaghetti Aglio e Olio
Cook the pasta
Cook the spaghetti in a large pot of well-salted boiling water until just short of al dente, saving 1 1/2 cups of the pasta water before draining.
Cook the garlic
Around 4 minutes into the pasta cooking, gently heat the olive oil in a large pan over medium heat and cook the garlic until it barely turns golden, lowering the heat if needed.
Add the pepper flakes
Stir in the red pepper flakes for about 30 seconds if using; pull the pan off the heat if the pasta is not ready.
Reduce the pasta water
Whisk in the reserved pasta water and simmer until reduced by about a third.
Toss with the pasta
Add the drained pasta and toss to coat and finish cooking, then turn off the heat and mix in the Parmesan and parsley if using.
Rest and serve
Rest a couple of minutes so the sauce absorbs, then serve with extra Parmesan and pepper flakes if desired.
Tips for Best Results
- Start the garlic around 4 minutes into the pasta cooking.
- Pull the pan off the heat if the pasta is not ready.
- Rest a couple of minutes so the sauce absorbs.
Storage
Leftovers keep for up to 3 days in the fridge. Reheat in a pan with a splash of water.
Tips
Cook the garlic over low heat and watch closely; burnt garlic turns bitter. Toss the pasta with pasta water to create a light, glossy sauce.
Add-Ins
- Lemon zest and parsley.
- Sautéed shrimp.
- Toasted breadcrumbs.
Frequently Asked Questions
Can I make it vegan?
Yes. Omit the Parmesan.
What if the garlic burns?
Start over with fresh oil and garlic.
Is aglio e olio vegan?
Without the Parmesan, it is naturally vegan.

Spaghetti Aglio e Olio
Ingredients
- 12 ounces spaghetti
- Kosher salt, about 1 tablespoon for the pasta water
- 1/2 cup extra virgin olive oil
- 8 garlic cloves thinly sliced
- 1/2 teaspoon red pepper flakes optional, or more to taste
- 1/3 cup grated Parmesan optional, or more to taste
- Chopped parsley, optional, for garnish
Instructions
- Cook the spaghetti in a large pot of well-salted boiling water until just short of al dente, saving 1 1/2 cups of the pasta water before draining.
- Around 4 minutes into the pasta cooking, gently heat the olive oil in a large pan over medium heat and cook the garlic until it barely turns golden, lowering the heat if needed.
- Stir in the red pepper flakes for about 30 seconds if using; pull the pan off the heat if the pasta is not ready.
- Whisk in the reserved pasta water and simmer until reduced by about a third.
- Add the drained pasta and toss to coat and finish cooking, then turn off the heat and mix in the Parmesan and parsley if using.
- Rest a couple of minutes so the sauce absorbs, then serve with extra Parmesan and pepper flakes if desired.