Spaghetti Aglio e Olio

This post may contain affiliate links. Read my full disclosure policy.

This spaghetti aglio e olio recipe turns a handful of pantry staples into a silky, garlicky pasta that’s ready in just 30 minutes.

Spaghetti aglio e olio in skillet

Spaghetti aglio e olio, or spaghetti with garlic and oil, is a wonderfully simple dish that hails from Naples, Italy. Often called “midnight pasta” or spaghettata di mezzanotte, it’s a late-night favorite among chefs and home cooks because it’s quick, comforting, and comes together with just a handful of pantry staples. Add an arugula salad, and dinner’s done!

The recipe couldn’t be easier: cook the spaghetti, sauté thinly sliced garlic in olive oil until golden and fragrant, then toss it all together with red pepper flakes, parsley, a splash of pasta water, and a generous sprinkle of freshly grated cheese. It’s the epitome of Italian cooking—straightforward yet incredibly satisfying—and belongs in any weeknight (or midnight!) pasta rotation.

“This is a wonderful, quick recipe! It was super easy to throw together and paired perfectly with Jenn’s grilled chicken.”

Lilee

What You’ll Need To Make Spaghetti Aglio e Olio

Spaghetti Aglio e Olio ingredients
  • Salt: Seasons both the pasta cooking water and the finished sauce, ensuring the spaghetti is flavorful from the inside out.
  • Spaghetti: The classic pasta for aglio e olio. While spaghetti is traditional and absorbs the sauce nicely, you can use any pasta you like, though the cooking time may vary.
  • Extra-Virgin Olive Oil: Forms the base of the sauce, so this is a good place to use an olive oil you really like. It gently cooks the garlic while giving the finished pasta richness and flavor.
  • Garlic: The defining flavor of aglio e olio. Thin slices cook gently in the olive oil until lightly golden, infusing the oil with plenty of garlicky flavor without becoming harsh or bitter.
  • Crushed Red Pepper Flakes: Add a gentle kick of heat that balances the richness of the olive oil and cheese. Pass extra at the table for anyone who likes more heat.
  • Fresh Italian Parsley: Adds a fresh, herby flavor and a little color.
  • Parmigiano Reggiano or Pecorino Romano: Adds salty, savory flavor and, when stirred in with the starchy pasta water, helps create a creamy sauce that clings to the spaghetti. Pecorino is sharper and saltier, while Parmigiano is a bit milder and nuttier. (Traditional aglio e olio is often made without cheese, but I like adding some—it gives the sauce a little more body and savory flavor, and helps it cling beautifully to the spaghetti.)
  • Jump to the printable recipe for precise measurements

How To Make Spaghetti Aglio e Olio

Step 1: Cook the pasta. Cook the spaghetti until al dente. Don’t forget to reserve plenty of pasta water before draining. An easy trick is to put a measuring cup or heatproof mug right in the colander while the pasta cooks—you’ll have to move it before you can drain the pasta, so it’s a pretty foolproof reminder.

cooked spaghetti in large colander with measuring cup holding pasta cooking liquid to the right of colander

Step 2: Cook the garlic. Gently cook the sliced garlic in the olive oil until lightly golden, lowering the heat as soon as it starts to sizzle. Garlic can go from golden to burnt quickly, so keep a close eye on it and stir often. Evenly sliced garlic helps here, too, since the pieces will cook at about the same rate. 

large skillet with olive oil and golden cooked garlic slices

Step 3: Add the red pepper flakes and pasta water. Take the pan off the heat, stir in the red pepper flakes, then add some of the reserved pasta water. Besides forming the base of the sauce, the water immediately brings down the temperature of the oil and stops the garlic from continuing to cook.

adding pasta cooking liquid into large skillet with olive oil, sliced garlic, and red pepper flakes

Step 4: Add the pasta. Add the drained spaghetti, salt, and more of the reserved pasta water to the pan. Don’t worry if there seems to be a fair amount of liquid at this point; some will be absorbed by the pasta, and the rest will help form the sauce.

pouring 3/4 cup pasta cooking liquid into skillet with spaghetti

Step 5: Finish the sauce. Toss the pasta over medium-high heat until the sauce starts to come together, adding more pasta water if things look dry, then stir in the parsley and cheese. The sauce may look a little loose at first, but keep tossing—the starchy pasta water helps the olive oil and cheese come together into a silky sauce that coats the spaghetti.

large skillet with tongs mixing all the ingredients together

Step 6: Serve. Serve the pasta right away with extra cheese at the table. If it needs to sit for a few minutes, transfer it to a serving bowl rather than leaving it in the skillet, where the cheese can start to stick as it cools.

spaghetti aglio e olio in large white serving bowl with fork

Easy Protein Pairings

Spaghetti aglio e olio makes an easy meal all on its own, but it also plays nicely with all sorts of proteins. If you’d like to incorporate it, here are a few favorites to round out the meal:

More Easy Italian Pasta Recipes You’ll Love

Print

Spaghetti Aglio e Olio

spaghetti aglio e olio in serving bowl with fork; bowl has a mauve napkin to the left and small bowl with red pepper flakes above
Quick, comforting, and made mostly from pantry staples, this classic Italian pasta is perfect for those nights when you need dinner in a hurry.
Servings: 4
Prep Time: 10 minutes
Cook Time: 20 minutes
Total Time: 30 minutes

Ingredients 

  • 1 tablespoon + ¾ teaspoon salt, divided
  • 1 lb (16 oz) dried spaghetti
  • ½ cup extra-virgin olive oil
  • cup thinly sliced garlic, from about 8 cloves
  • ½ teaspoon crushed red pepper flakes, plus more for serving
  • cup fresh Italian parsley, finely chopped
  • ¾ cup freshly grated Parmigiano Reggiano or Pecorino Romano cheese, plus more for serving

Instructions

  • Cook the spaghetti: Bring a large pot of water and 1 tablespoon of the salt to a boil. Add the spaghetti and cook, stirring occasionally, until it is al dente, 10 to 12 minutes. Before draining, reserve 1½ cups of the pasta cooking water. Then, drain the spaghetti.
  • Prepare the sauce: In a cold skillet large enough to hold the pasta (a 12-inch sauté pan is ideal), combine the olive oil and garlic. Cook over medium heat until the garlic begins to sizzle. Then, immediately reduce the heat to medium-low and continue cooking, stirring frequently, until the garlic turns lightly golden, 3 to 4 minutes. Be careful not to let the garlic burn. Remove the skillet from the heat and stir in the red pepper flakes. Add about ½ cup of the reserved pasta water to the skillet to stop the garlic from cooking further.
  • Add the drained pasta to the skillet with the garlic oil, along with ¾ cup of the reserved cooking water and the remaining ¾ teaspoon of salt. Cook over medium-high heat, stirring constantly, until the pasta absorbs some of the sauce, 1 to 2 minutes. Add the remaining reserved cooking water if the pasta seems dry.
  • Right before serving, add the chopped parsley and grated cheese to the pasta. Stir until the pasta is well coated and the sauce becomes creamy. Serve immediately, passing additional cheese at the table. Note that if the pasta sits too long in the pan after adding the cheese, the heat may cause the cheese to congeal and stick to the pan. While this isn't a major issue, to prevent it, serve the pasta right away, or transfer it to a serving bowl if there might be a delay before serving.

Nutrition Information

Per serving (4 servings)Calories: 788kcalCarbohydrates: 90gProtein: 26gFat: 36gSaturated Fat: 8gCholesterol: 19mgSodium: 430mgFiber: 4gSugar: 3g

This website is written and produced for informational purposes only. I am not a certified nutritionist and the nutritional data on this site has not been evaluated or approved by a nutritionist or the Food and Drug Administration. Nutritional information is offered as a courtesy and should not be construed as a guarantee. The data is calculated through an online nutritional calculator, Edamam.com. Although I do my best to provide accurate nutritional information, these figures should be considered estimates only. Varying factors such as product types or brands purchased, natural fluctuations in fresh produce, and the way ingredients are processed change the effective nutritional information in any given recipe. Furthermore, different online calculators provide different results depending on their own nutrition fact sources and algorithms. To obtain the most accurate nutritional information in a given recipe, you should calculate the nutritional information with the actual ingredients used in your recipe, using your preferred nutrition calculator.

5 from 5 votes

Add a Comment

Rate the recipe: 5 stars means you loved it, 1 star means you really disliked it




This site uses Akismet to reduce spam. Learn how your comment data is processed.

7 Comments

  • 5 stars
    Incredible. A must make. I served with roasted cherry tomatoes (balsamic & fresh basil) and grilled chicken on the side.

    • — Aleah on December 30, 2024
    • Reply
  • 5 stars
    Perfect quick meal and delicious! I did drizzle a bit more olive oil on top when serving to add a bit more richness.

  • Hi Jenn!

    You know first and foremost I am a huge fan of your recipes, and Once Upon A Chef is my “go to” website.

    This recipe I was a little disappointed in as it was bland. I think it’s because I had to cut back on the garlic a little bit because it gives me an upset stomach.

    Now I have a ton of leftover spaghetti!

    Are there any ingredients you could recommend to “vamp” up the recipe?

    I don’t know if I simply add extra red chili flakes and/or olive oil or butter.

    It definitely needs a “kick” and any recommendations you can give would be greatly appreciated.

    I am still one of your biggest fans!

    Thank you so much and enjoy your holiday weekend!

    • Hi Stacey, Thank you so much for your kind words and for being such a loyal fan! For your leftover spaghetti, you can definitely add a bit of extra red chili flakes for heat, or try some lemon zest and juice for a fresh, bright kick. Slow-roasted cherry tomatoes would make it a whole new dish. More cheese will boost the flavor too. You might also try sautéing the pasta with a little butter or flavored olive oil for richness. Hope that helps, and happy cooking!

  • 5 stars
    This is a wonderful, quick recipe! It was super easy to throw together and paired perfectly with Jenn’s grilled chicken. This will definitely be in our rotation.

  • 5 stars
    This recipe was simple but delicious. I will definitely be making it again.

  • 5 stars
    Just like my mom used to make! I served the pasta with roasted vegetables from our CSA. DELICIOUS! Thank you Jenn for providing a recipe to serve up a wonderful memory.