The Feast

Home cooking recipes for everyday dinners and easy entertaining

How Long Does Fresh Pesto Last? Storage Guide

· 4 min read · Dinners

Fresh pesto is a vibrant, garlicky sauce made from basil, pine nuts, Parmesan, and olive oil. It’s incredibly versatile, but because it contains fresh herbs, cheese, and no preservatives, it spoils quickly. Knowing exactly how long fresh pesto lasts—and how to store it properly—keeps it safe and flavorful for as long as possible. This guide covers fridge, freezer, and pantry timelines, plus signs of spoilage and smart storage tricks.

Ingredients

  • 2 cups fresh basil leaves, packed
  • 1/2 cup extra-virgin olive oil, plus more for covering
  • 1/3 cup pine nuts (or walnuts)
  • 1/2 cup freshly grated Parmesan cheese
  • 2–3 cloves garlic, peeled
  • 1/2 teaspoon salt, or to taste
  • Optional: 1 tablespoon lemon juice (to help preserve color)

Instructions

  1. Place the basil, pine nuts, garlic, and salt in a food processor. Pulse until coarsely chopped.
  2. With the processor running, slowly drizzle in the olive oil until the mixture forms a thick, smooth paste. Stop and scrape down the sides as needed.
  3. Add the Parmesan and pulse just until combined. Do not over-process—pesto should have a little texture.
  4. Taste and adjust salt or lemon juice if using.
  5. Transfer to a clean jar or airtight container. Pour a thin layer of olive oil (about 1/4 inch) over the top to seal out air.
  6. Refrigerate immediately or freeze for longer storage.

Tips

  • Use a clean spoon every time you scoop pesto to avoid introducing bacteria that cause spoilage.
  • Keep the surface covered with olive oil—this prevents oxidation, which turns the top dark and speeds up spoilage.
  • Freeze in ice cube trays for single-serving portions. Once frozen, pop the cubes out and store them in a freezer bag.
  • Don’t leave pesto at room temperature for more than 2 hours total (including serving time). Perishable ingredients like cheese and garlic can harbor bacteria.

Serving Suggestions

  • Toss with hot pasta (use about 1/4 cup pesto per pound of pasta) and a splash of pasta water.
  • Spread on sandwiches or wraps instead of mayonnaise.
  • Dollop over grilled chicken, fish, or roasted vegetables.
  • Stir into scrambled eggs or omelets for a quick flavor boost.
  • Use as a pizza sauce or drizzle over caprese salad.

Variations

  • Nut-free: Replace pine nuts with sunflower seeds or pumpkin seeds.
  • Vegan: Omit Parmesan and add 1–2 tablespoons nutritional yeast for a cheesy flavor.
  • Different greens: Swap half the basil for spinach, arugula, or kale—adjust salt accordingly.
  • Herb mix: Use cilantro, mint, or parsley alone or in combination with basil.
  • Spicy: Add a pinch of red pepper flakes or a small fresh chili.

Storage and Reheating

  • Refrigerator: Fresh pesto lasts 3–5 days when kept in an airtight container with a thin layer of olive oil on top. Always check for mold or off-smells before using.
  • Freezer: Properly stored, pesto freezes well for up to 6 months. Freeze in ice cube trays or small jars, leaving 1/2 inch headroom for expansion. Thaw overnight in the fridge or at room temperature for 30 minutes.
  • Pantry: Do not store fresh pesto at room temperature. Commercially prepared, unopened jars may be stored in a cool, dark pantry until the best-by date, but once opened, refrigerate and use within 3–5 days.
  • Reheating: Pesto is best used cold or at room temperature. If you want it warm, stir it into hot pasta or sauce just before serving—do not boil it, as the cheese can separate and the basil will lose its bright flavor.

Frequently Asked Questions

How can I tell if pesto has gone bad?

Look for visible mold (fuzzy spots, often green, white, or black), a sour or fermented smell, or a slimy texture. If any of these appear, discard the entire batch—do not just scrape off the mold, as bacteria may have spread invisibly.

Can I freeze pesto with cheese in it?

Yes, but the texture of the Parmesan may become slightly grainy after thawing. It’s still safe and tastes fine. For the smoothest result, freeze the pesto without cheese and stir in freshly grated Parmesan after thawing.

Why does my pesto turn brown in the fridge?

That’s oxidation—the basil reacts with air. Pressing plastic wrap directly onto the surface or adding a layer of olive oil minimizes exposure. A little lemon juice also helps slow browning, though it won’t prevent it entirely.

Is it safe to eat pesto past the “best by” date?

If the jar is unopened and stored properly, it may be safe for a few weeks past the date, but quality declines. Once opened, follow the 3–5 day rule regardless of the printed date.

Can I store pesto in a metal container?

No—acidic ingredients like garlic and lemon juice can react with metal, causing off-flavors and possible corrosion. Use glass, ceramic, or food-grade plastic containers.

What’s the best way to thaw frozen pesto?

Transfer the frozen pesto to the refrigerator overnight, or place the sealed container in a bowl of cold water for 30–60 minutes. Avoid microwaving, as it can cook the basil and make the sauce watery.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions