Garlic and Olive Oil Pasta (Aglio e Olio)

Updated November 2, 2026

Total time
34 min
prep 10 min · cook 24 min
Serves
4
portions as written
Safe temperature (USDA)
165°F / 74°C
check the thickest piece

Jump to recipe

Garlic and Olive Oil Pasta (Aglio e Olio)

Aglio e olio is a simple pasta dish associated with Naples, in southern Italy, made by tossing pasta with olive oil, garlic, and often red pepper and parsley. Its appeal comes from the contrast between fragrant, gently cooked garlic and starchy pasta water, which helps the oil cling to every strand; family and regional versions vary in their additions.

Ingredients

  • 12 oz (340 g) spaghetti or linguine
  • 4 qt (3.8 L) water, for cooking the pasta
  • 1 tbsp (15 g) fine sea salt, for the pasta water
  • ⅓ cup (80 ml) extra-virgin olive oil
  • 6 large garlic cloves (about 30 g), thinly sliced
  • ½ tsp (1 g) crushed red pepper flakes, or less to taste
  • ¼ cup (15 g) finely chopped flat-leaf parsley, optional
  • ½ tsp (1 g) finely ground black pepper, optional
  • ⅓ cup (30 g) finely grated Parmesan or Pecorino Romano, optional, for serving

Instructions

  1. Prepare the ingredients. Bring a large pot of water to a boil; allow about 12 minutes, depending on your stove and pot. While it heats, peel and slice the garlic thinly and chop the parsley if using. Set the oil, pepper flakes, and a heatproof measuring cup beside the stove. Thin, even garlic slices cook at a similar rate, while crushed or minced garlic can brown too quickly.
  2. Cook the pasta. Add the salt and spaghetti to the boiling water. Stir during the first minute to separate the strands, then cook according to the package directions until just shy of al dente, usually about 9 to 10 minutes for dried spaghetti. Start checking a minute before the package’s suggested time. Before draining, scoop out at least 1 cup (240 ml) of the pasta water. Drain the pasta, but do not rinse it; its surface starch helps the sauce come together.
  3. Warm the garlic in the oil. While the pasta cooks, put the olive oil and sliced garlic in a large skillet or sauté pan over low to medium-low heat. Cook gently for about 4 to 5 minutes, stirring or swirling the pan often. The garlic should become fragrant and pale gold, not dark brown. If it starts coloring rapidly, lift the pan from the heat and lower the burner. Add the red pepper flakes during the final 30 seconds so they release their flavor without scorching.
  4. Bring the sauce together. Add about ½ cup (120 ml) of reserved pasta water to the garlic oil; pour carefully because it may sputter. Add the drained pasta and toss with tongs for 1 to 2 minutes over low heat. The water and oil should turn into a glossy coating rather than sit in separate layers. Add another splash of pasta water if the strands look dry or the oil gathers at the bottom. Taste before adding any more salt.
  5. Finish and serve. Turn off the heat. Toss in the parsley and black pepper, if using. Divide the pasta among warm bowls and offer grated Parmesan or Pecorino at the table. Serve promptly, while the sauce is loose and glossy; it thickens as it sits.

Tips

  • Use gentle heat for the garlic. The oil is a flavor-carrying sauce, so the garlic should perfume it rather than become a batch of crisp, bitter chips. Thin slices are easy to monitor. If a few pieces turn deep brown, remove the pan from the heat; lowering the temperature early is better than trying to cover a burnt flavor later.
  • Save pasta water before draining. Starchy water helps bind the oil to the pasta. Add it a little at a time while tossing: the right amount depends on how much water clings to the noodles and how quickly the pan reduces it. If you forget to reserve it, use hot water, but the sauce will be less cohesive.
  • Adjust the salt and heat at the end. Salt brands vary, and cheese adds saltiness, so taste the finished pasta before seasoning further. For a milder dish, start with ¼ tsp (about 0.5 g) pepper flakes or leave them out. You can pass extra flakes at the table for people who like more heat.
  • Choose a useful substitute. Flat-leaf parsley is common but optional; finely chopped chives add a mild onion note, while dried parsley has less fresh flavor. If extra-virgin olive oil is too peppery for your taste, use a mild olive oil. Butter is not a like-for-like substitute: it makes the result richer and less distinctly olive-oil-forward.

Serving Suggestions

Serve aglio e olio as a first course or as a quick main dish, with a simple green salad and crusty bread for wiping up any garlicky oil left in the bowl. A lightly dressed salad with bitter leaves, such as arugula or radicchio, balances the richness without competing with the pasta. Keep sides uncomplicated: the defining flavor is garlic warmed in olive oil, and a heavily seasoned accompaniment can overwhelm it.

Set out grated cheese, extra parsley, and red pepper flakes separately so everyone can finish a portion to taste. The cheese is optional, and some cooks prefer the pasta without it. If serving it as a larger meal, pair it with vegetables such as roasted broccoli, sautéed greens, or grilled zucchini. Prepare those separately rather than crowding the pasta pan, which makes it easier to toss the noodles evenly in their sauce.

Variations

Use a different pasta shape: Spaghetti is a familiar choice, but linguine, bucatini, or another long dried pasta works well. Short shapes such as rigatoni are less traditional in feel but can still hold the oil and garlic. Follow the package cooking time and reserve pasta water regardless of shape.

Make it herb-forward: Add a little more chopped parsley at the end, or use a small amount of finely chopped fresh oregano. Oregano has a stronger, more resinous flavor, so start with about 1 tsp (1 g) rather than replacing the parsley cup for cup. Lemon zest is another optional, nontraditional finishing touch; a small pinch brightens the dish without changing its basic method.

Add vegetables: Toss in a handful of baby spinach after adding the pasta and let the residual heat wilt it. Cooked broccoli or thinly sliced sautéed mushrooms can also be folded in, though they make the dish more substantial and move it away from the minimalist version. Keep added vegetables cooked and fairly dry so they do not dilute the oil-and-water coating.

Change the cheese or omit it: Parmesan gives a rounded, savory finish, while Pecorino Romano is sharper and saltier. Either is an optional table addition rather than a requirement. For a dairy-free serving, leave the cheese off and finish with parsley and black pepper; the garlic, oil, chili, and pasta water still make a complete sauce.

Storage and Reheating

This pasta is at its best immediately after cooking, when the oil and pasta water form a loose coating. If you have leftovers, refrigerate them within 2 hours in a shallow, covered container. They keep for 3 to 4 days in the refrigerator. The oil may firm up when cold and the noodles will absorb some of the sauce; that change is normal.

Reheat only the portion you plan to eat in a skillet over low to medium-low heat with 1 to 2 tbsp (15 to 30 ml) water. Toss frequently until steaming hot and the leftovers reach 165°F (74°C), the USDA FSIS safe temperature for reheated leftovers; check with a food thermometer. A microwave also works: cover loosely, heat in short intervals, and stir between intervals, adding a small splash of water if needed. Avoid prolonged high heat, which can make the pasta dry and oily. Freezing is possible, but the texture of the pasta is usually softer after thawing.

Frequently Asked Questions

Is aglio e olio spicy?
It has a gentle warmth when made with the listed ½ teaspoon of red pepper flakes, but the heat is easy to adjust. Use less or omit the flakes for a mild version, or serve extra at the table. The garlic itself should taste sweet and fragrant rather than sharp or bitter when it is cooked gently.

Can I make it without parsley?
Yes. Parsley adds freshness and color, but it is optional and the pasta does not depend on it for its sauce. Leave it out, or finish with a little chopped chive. Dried parsley is also possible, though it will not provide the same fresh, bright finish.

Why does my olive oil sauce seem greasy?
The oil and pasta water may not have emulsified, or the pan may need more water and tossing. Add reserved pasta water a tablespoon or two at a time while tossing over low heat. Keep tossing until the liquid looks lightly cloudy and clings to the pasta. A very hot pan can make the water evaporate before the sauce comes together.

Can I prepare the garlic oil ahead?
For the best flavor and texture, make the garlic oil just before serving; it takes only a few minutes. Do not leave cooked garlic sitting in oil at room temperature for extended storage. If you need to work ahead, slice the garlic and parsley and refrigerate them separately in covered containers, then cook the garlic fresh when the pasta is nearly ready.

What can I use if I do not have extra-virgin olive oil?
A mild olive oil is the closest practical substitute and keeps the dish’s basic character. A neutral oil such as canola can cook the garlic, but it will lack olive oil’s distinctive flavor; if using it, a small drizzle of extra-virgin olive oil at the end can restore some of that aroma. Butter changes the style and makes the sauce richer, so use it only if that is the flavor you want.

Can I make this for one or two people?
Yes. Scale the ingredients down proportionally and use a skillet wide enough to toss the pasta. For two servings, use 6 oz (170 g) pasta, about 2½ tbsp (37 ml) oil, and 3 garlic cloves. Keep enough pasta water to adjust the sauce, since the amount needed can vary even when the recipe is scaled down.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).