Skip to main content

How Long Does Opened Pesto Last? Storage Guide

| ~6 min read | Pasta Sauces

Sections
  1. What Counts as Opened Pesto?
  2. How to Refrigerate Opened Pesto
  3. How Long Does Homemade Pesto Last?
  4. Freezing vs. Refrigerating Pesto
  5. How to Tell When Pesto Has Gone Bad
  6. Using Pesto with Pasta and Other Foods
  7. Storing and Reheating Pesto Pasta
  8. Frequently Asked Questions

Opened pesto usually lasts 3–4 days in the refrigerator when stored properly. A commercial jar may remain good for 5–7 days if its label gives a longer use-by period, but homemade pesto should generally be used within the same 3–4-day window unless it is frozen.

What Counts as Opened Pesto?

Pesto is a thick herb sauce made from ingredients such as basil, olive oil, garlic, cheese, and nuts. Commercial pesto comes in jars or tubs and is usually pasteurized during processing. Homemade pesto follows the same basic storage principles, but it has not been commercially heat-treated or sealed, so it generally has a shorter shelf life.

The age of the pesto before opening also matters. Check the jar’s best-by or use-by date, inspect the seal, and follow any storage instructions printed on the label. Those instructions take priority over general guidance. A jar that was already close to its date may not have a full 3–4 days remaining after opening.

Once opened, pesto must be refrigerated even if the jar looks nearly full. Some commercial pesto jars are shelf stable only before opening; after the seal is broken, refrigeration is necessary.

How to Refrigerate Opened Pesto

For the safest and best-quality storage:

  • Keep the refrigerator at 40°F (4°C) or below.
  • Transfer pesto from an opened jar to a clean, airtight container if the original packaging does not seal well.
  • Use a clean spoon or utensil each time you take pesto out. Do not dip a used spoon into the jar.
  • Label a homemade container with the date it was made.
  • Keep the pesto away from raw meat, poultry, seafood, and their juices to prevent cross-contamination.

If the container is not airtight, place plastic wrap directly against the surface of the pesto before covering it. Basil can oxidize and turn dark when exposed to air, and oil can separate from the solid ingredients. Neither separation nor a dark green color necessarily means the pesto is unsafe, but a yeasty smell, mold, an unpleasant odor, or visible spoilage means it should be discarded.

How Long Does Homemade Pesto Last?

Homemade pesto normally keeps for 3–4 days in a refrigerator kept at 40°F (4°C) or below. The ingredients matter: pesto containing fresh garlic, cheese, nuts, or other perishable ingredients is more perishable than an oil-based commercial product. Fresh basil also contains moisture, which encourages microbial growth if the pesto is left warm or repeatedly handled.

Do not rely on the color of homemade pesto to judge safety. Fresh basil can darken within hours without indicating spoilage. Smell the pesto and inspect it for mold or an unusual texture. If anything seems off, do not taste it to find out; discard it instead.

For longer storage, divide the pesto into clean freezer-safe containers or an ice-cube tray, leaving expansion room in rigid containers. Cover it and freeze at 0°F (-18°C) or below. Frozen pesto is best used within about 3 months for good flavor and texture, although properly frozen pesto may remain safe longer. Thaw it in the refrigerator, not on the counter.

Freezing vs. Refrigerating Pesto

Freezing is the best option when a batch of homemade pesto is unlikely to be used within a few days. It slows spoilage and helps preserve the pesto for pasta dishes later in the week or month. The texture may change slightly: the oil and cheese can separate or become slightly grainy after thawing.

  1. Spoon the pesto into individual freezer-safe portions or leave a larger amount in a labeled container.
  2. Press a layer of plastic wrap onto the surface if the container may not be airtight, then close the lid.
  3. Freeze at 0°F (-18°C) or below.
  4. Thaw only the portion needed in the refrigerator.
  5. Stir thoroughly and add a small amount of olive oil if the pesto has become too thick.

Do not repeatedly thaw and refreeze the same portion. Temperature changes and contamination during handling can shorten its safe storage life.

How to Tell When Pesto Has Gone Bad

Discard pesto if you notice mold, fizzing, a swollen or leaking container, or a strong fermented or yeasty odor. Fresh cheese, garlic, and herbs may also produce a noticeably sour or rotten smell. Pesto that has separated can often be stirred back together, but separation alone is not the same as spoilage.

A thin layer of oil on top is normal in many pesto recipes. If the oil smells rancid, the pesto has been stored poorly, or it also has other signs of spoilage, discard it rather than trying to mask the flavor. When in doubt, throwing away questionable pesto is safer than serving it.

Storage does not make spoiled pesto safe. Refrigeration slows the growth of microorganisms but does not sterilize food, and freezing can stop growth without killing every organism already present.

Using Pesto with Pasta and Other Foods

Pesto is commonly stirred into cooked pasta, spread under cheese on a baked dish, or used as a sauce for vegetables, meat, fish, and bread. For best flavor, stir pesto into hot pasta with a small amount of reserved pasta water. The starchy water helps emulsify the oil and creates a smoother sauce.

If you make a pasta dish with cooked meat, poultry, seafood, or stuffing, follow the applicable safe minimum internal temperature:

  • Cook whole cuts of beef, pork, veal, and lamb to 145°F (63°C), followed by a 3-minute rest.
  • Storing and Reheating Pesto Pasta

    Cooked pesto pasta is a leftover dish, so refrigerate it within 2 hours of cooking. If the room temperature is above 90°F (32°C), refrigerate it within 1 hour. Keep it at 40°F (4°C) or below and use it within 3–4 days, according to general USDA leftover guidance.

    Store the pasta in a covered container in the refrigerator. When reheating, bring the entire portion to 165°F (74°C), checking with a food thermometer. A microwave may heat unevenly, so stir the pasta and move it from the edge to the center midway through reheating. If possible, add a splash of water or stock to keep it from becoming dry.

    Plain pesto alone and pesto-pasta leftovers have different timelines. A jar of plain pesto can be kept for several days under proper refrigeration, while a cooked pasta dish also contains noodles and other ingredients that may affect its texture and keeping quality.

    Frequently Asked Questions

    How long does opened pesto last in the fridge?

    Opened pesto generally lasts 3–4 days in a refrigerator at 40°F (4°C) or below. Follow the manufacturer’s label if it specifies a different period, such as 5–7 days after opening.

    Can pesto be left out overnight?

    It should not be left at room temperature overnight. Refrigerate opened pesto within 2 hours, or within 1 hour when the surrounding temperature is above 90°F (32°C). Food that has spent longer at unsafe temperatures should be discarded.

    Why did my pesto turn dark green?

    Oxidation is a common reason fresh pesto darkens after opening. Stir it and check for mold, an unusual odor, or other signs of spoilage. Dark color by itself does not necessarily mean the pesto is unsafe.

    Can I freeze pesto instead of refrigerating it?

    Yes. Freeze pesto in airtight portions at 0°F (-18°C) or below. Thaw it in the refrigerator and stir it before using; the oil and cheese may separate slightly and the texture may become less smooth.

    How long does homemade pesto last?

    Homemade pesto usually keeps for 3–4 days when refrigerated promptly at 40°F (4°C) or below. Freezing it when you know you will not use it within that period can extend its usability.

    Does pesto need to be refrigerated after opening?

    Yes. Even if a commercial pesto jar was shelf stable before opening, it should be refrigerated after the seal is broken unless the manufacturer’s instructions state otherwise.

Similar articles