Spaghetti Aglio e Olio
Published Nov 23, 2026
Spaghetti aglio e olio, also known as spaghetti with garlic and oil, made with olive oil, garlic, red pepper, and pasta water. An easy pantry pasta.
This post may contain affiliate links. Please read our disclosure policy.
You know those nights when you haven’t really planned dinner, and you’re looking through the kitchen trying to figure out what to make? That’s usually when I end up making spaghetti with garlic and olive oil, aka Spaghetti aglio e olio. I pretty much always have pasta, garlic, and olive oil in my pantry, and really, that’s most of what I need. I add some red pepper flakes because I like a little heat, and I let the garlic cook in the oil while the spaghetti boils. By the time the pasta is done, the sauce is pretty much ready too.

One thing I really like about Spaghetti aglio e olio is that you don’t need to make a separate sauce. I save a little of the pasta water and toss it with the spaghetti and garlic oil until everything comes together. It makes such a difference in how the oil coats the pasta instead of just sitting at the bottom of the bowl. I usually finish mine with Parmesan, parsley, and a squeeze of lemon. I especially like the lemon with all that garlic!
Recipe Testing Notes

For the past 10 years, I’ve tested every recipe before sharing it with you! These notes give you a peek into the process of developing this Spaghetti aglio e olio recipe.
I’ve let the garlic get a little too dark before, and you can taste it in the whole dish. There’s not much else in spaghetti aglio e olio to cover up that bitterness, so I actually like to pull it off the heat when it’s just starting to turn golden. The oil is still hot, and the garlic keeps cooking a little while I’m getting the pasta ready. I’ve found that I like the flavor better when I don’t let it get too brown.
And since there’s already plenty of olive oil in the pan, you’d think you could just toss in the spaghetti and be done. I’ve tried that, and it’s fine, but the pasta ends up a little too oily for me. Adding some of that starchy pasta water is what I like better. I start with a splash and keep tossing until the oil and water come together and coat the spaghetti. I don’t really measure it because some days it needs more than others. And I always serve this one right away. I’ve let it sit before, and it’s just not quite as good once everything starts cooling down.
Happy Cooking!
– Yumna
Spaghetti Aglio e Olio Ingredients

- Spaghetti: Cook it just until al dente. You can use any type of pasta you like.
- Olive oil and garlic: Use extra-virgin olive oil you like the taste of, since it makes up most of the sauce. Slice the garlic thinly and evenly so the pieces cook at the same rate.
- Red pepper flakes: Start with ¼ teaspoon in the dish and let people add more to taste at the table. If you don’t want it to be spicy, you can just skip it.
- For serving: I like to serve Spaghetti Aglio e Olio with Parmesan cheese, fresh parsley, and lemon. Finely grate the Parmesan cheese so it blends into the pasta more easily, chop the parsley, and cut the lemon into wedges, if using.
How to Make Spaghetti Aglio e Olio
These step-by-step photos walk you through how to make Spaghetti with garlic and oil. The full ingredient amounts and instructions are in the recipe card below, or you can jump straight to the → Spaghetti Aglio e Olio recipe below
1. Start the garlic

Place the olive oil, sliced garlic, and red pepper flakes in a large skillet before turning on the heat.
2. Cook until golden

Cook until the garlic smells fragrant and turns pale gold. Watch closely and stir so the slices cook evenly.
3. Add the spaghetti

Turn off the heat and transfer the cooked, drained pasta to the skillet. Toss to coat it in the garlic oil.
4. Toss with pasta water

Pour in a little reserved cooking water at a time, tossing well between additions, until the sauce looks glossy and coats the strands.
5. Add the parsley and Parm

With the skillet off the heat, sprinkle the parsley and finely grated Parmesan over the pasta.
6. Toss Spaghetti Aglio e Olio

Mix until the parsley and cheese spread throughout the spaghetti. Serve immediately with extra Parmesan and lemon wedges, if desired.
Full Spaghetti Aglio e Olio Recipe

Spaghetti Aglio e Olio Recipe
Ingredients
- 1 pound spaghetti
- ⅓ cup extra-virgin olive oil
- 8 garlic cloves thinly sliced
- ½ teaspoon crushed red pepper flakes
- ¼ cup chopped fresh parsley
- ½ cup grated Parmesan cheese plus more for serving
- Lemon wedges for serving
Instructions
- Bring a large pot of well-salted water to a boil. Cook the spaghetti until al dente. Reserve 1 cup of the pasta water, then drain.
- Meanwhile, place the olive oil, garlic, and red pepper flakes in a large skillet. Turn the heat on medium heat and cook 3–4 minutes, until fragrant and lightly golden. Watch the garlic closely so it doesn’t burn.
- Turn off the heat and add the drained spaghetti to the skillet and toss to coat. Add the reserved pasta water, a little at a time, tossing until the sauce looks glossy and coats the pasta. Add more pasta water as needed.
- Remove from heat and stir in the parsley and Parmesan. Serve immediately with extra Parmesan and lemon wedges, if desired.
Equipment
Notes
Nutrition
Nutrition information provided is an estimate. It will vary based on cooking method and specific ingredients used.
Recipe Variations
- Add spinach. Toss 3 cups of baby spinach with the hot spaghetti before adding the parsley and Parmesan. Continue tossing until the leaves wilt.
- Finish with lemon zest. Stir in 1 teaspoon of finely grated lemon zest with the parsley. Zest only the yellow skin, not the bitter white pith!
- Top with toasted breadcrumbs. Toast ½ cup panko in 1 tablespoon olive oil in a separate skillet until golden. Sprinkle over individual portions just before serving.
Recipe Tips
- Save the pasta water before draining. Set a measuring cup beside the stove as a reminder, or put it right in the colander so you don’t forget! Add the water gradually while tossing; you may not need the full cup.
- Don’t rinse the spaghetti. Rinsing washes away the surface starch that helps the sauce cling to the strands.
- Add the Parmesan off the heat. Let any vigorous bubbling settle before adding the cheese, then sprinkle it in while tossing to help prevent clumps.
Serving Ideas
- Side salad: I like serving something crunchy alongside the pasta, like my simple green salad or fresh garden salad.
- Roasted veggies: Roasted broccoli or roasted cauliflower taste great here. Serve it on the side or toss it right into the spaghetti!
- Bread: I love serving garlic cheese bread or rosemary focaccia with this pasta. Make some for the table and let everyone help themselves!

Troubleshooting
The oil needs some starchy pasta water and thorough tossing to form a sauce. Add a small splash of reserved water and keep tossing before deciding whether it needs more.
You may have browned the garlic too much. You want it to be lightly golden. Remember that it keeps cooking after you turn off the heat. If it burns before you add the pasta, start over with fresh garlic and oil.
That’s okay! Use warm water, adding a tablespoon or two at a time while tossing. It won’t have the same starch content, but it can still help loosen the pasta and distribute the oil.






