Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Does Pesto Need to Be Refrigerated? Yes, Here’s Why

Yes, pesto needs to be refrigerated. Whether it’s a fresh store-bought tub, a jar you opened at home, or a batch you just made, pesto should be kept in the fridge at or below 40°F (4°C) to slow spoilage and prevent the growth of harmful bacteria. The only exception is unopened shelf-stable pesto sold in glass jars, which can sit in your pantry until you break the seal—after that, it goes in the refrigerator.

Why Pesto Spoils So Quickly

Pesto is a fresh sauce, not a preserved one. Its main ingredients—basil, garlic, olive oil, pine nuts, Parmesan cheese, and salt—are all perishable to varying degrees. The biggest culprits for rapid spoilage are the garlic and the cheese. Garlic is a low-acid food that can harbor Clostridium botulinum spores when stored in an oxygen-free environment (like oil), and cheese is a dairy product that grows mold and bacteria at room temperature. Basil itself is also highly perishable; it wilts and ferments quickly once chopped and mixed with moisture.

Even though pesto is covered in a layer of olive oil, that oil does not act as a preservative. In fact, oil can make things worse by creating an anaerobic environment that some pathogens love. The salt and acid (from lemon juice, if added) help a little, but not enough to keep pesto safe at room temperature for more than a couple of hours.

How Long Does Pesto Last in the Fridge?

Refrigerated pesto will stay safe and flavorful for about 5 to 7 days after opening or preparing. This applies to both homemade pesto and opened commercial pesto, regardless of whether it came from the refrigerated section or the pantry shelf. After a week, the quality drops noticeably—the bright green color fades to olive or brown, the texture becomes watery or slimy, and the taste turns sour or bitter.

If you want to keep pesto longer, freezing is the best option. Pesto freezes exceptionally well because the oil and herbs don’t suffer much from ice crystal damage. You can freeze it in ice cube trays, then transfer the cubes to a freezer bag. Frozen pesto will keep for up to 6 months without significant flavor loss. Thaw it in the fridge overnight, or toss a frozen cube directly into hot pasta—it will melt right in.

How to Tell If Pesto Has Gone Bad

Your senses are the best tools. Here’s what to look for:

  • Smell: Fresh pesto smells bright, herbal, and garlicky. If it smells sour, rancid, fermented, or like dirty socks, throw it out.
  • Color: A little browning on the surface is normal (oxidation), but if the entire sauce has turned dark brown or gray, it’s past its prime.
  • Texture: Fresh pesto is thick and spoonable. If it becomes watery, separated with slimy liquid, or develops a film, it’s spoiled.
  • Mold: Any visible mold—fuzzy spots, white or green patches—means the entire batch is contaminated. Don’t scoop it out; discard the whole container.

If you see any of these signs, do not taste-test it. Spoiled pesto can cause food poisoning, especially if the garlic or dairy has gone bad.

Refrigerated vs. Shelf-Stable Pesto: Know the Difference

Not all pesto is the same. You’ll find two types in the grocery store:

  • Fresh pesto (refrigerated section): Usually sold in plastic tubs near the fresh pasta or deli. It contains no preservatives and must stay cold from the store to your fridge. It has a short shelf life—often 7–10 days from production.
  • Shelf-stable pesto (pantry aisle): Sold in glass jars and processed with high heat or acidification to kill bacteria. Unopened, it can sit in your pantry for months or even years. However, once opened, it must be refrigerated and used within 5–7 days, just like fresh pesto.

Many people assume the jarred stuff is more durable after opening because it survived on the shelf, but that’s a misconception. The moment you open the jar, the protective seal is broken, and the contents become just as perishable as fresh pesto.

Why You Should Always Keep Pesto Covered

Exposure to air is one of the main reasons pesto goes bad quickly. Oxygen causes the basil to oxidize (turn brown) and the oils to go rancid. It also introduces airborne mold spores and bacteria. Always press a piece of plastic wrap directly onto the surface of the pesto before putting the lid on. This minimizes the air contact and keeps the top layer green. Some people pour a thin layer of olive oil over the surface for the same reason—it creates a barrier that blocks oxygen. This works, but only if you keep the container upright and don’t stir the oil back in until you’re ready to use the whole batch.

Another practical tip: use a clean, dry spoon every time you dip into the pesto. Introducing water or food particles from a used spoon can introduce bacteria and speed up spoilage.

Food Safety and the Two-Hour Rule

Food safety guidelines from agencies like the USDA recommend that perishable foods—including pesto—should not sit at room temperature for more than 2 hours (1 hour if the room is above 90°F/32°C). This is because bacteria multiply rapidly between 40°F and 140°F (4°C–60°C), the “danger zone.” If you’re serving pesto at a party, put the bowl in a larger bowl of ice to keep it cold, and return it to the fridge promptly after everyone has eaten. If you’ve left a jar of pesto out on the counter overnight by accident, do not taste it to see if it’s okay—just throw it out. The risk of food poisoning isn’t worth it.

Does Homemade Pesto Need Extra Care?

Homemade pesto is more perishable than most commercial versions because it lacks preservatives and hasn’t been pasteurized. It also often contains raw garlic, which carries a higher risk of botulism when stored improperly. The safest approach is to refrigerate homemade pesto immediately after making it, use it within 3–5 days, and freeze any leftovers. If you’re making a large batch, divide it into small containers so you only thaw what you need. Also, be aware that adding extra ingredients—like lemon juice (acid) or extra salt—can slightly extend shelf life, but not by much. Don’t rely on these additions to keep pesto safe beyond a week.

Related

Frequently Asked Questions

Can I leave pesto out overnight?

No. If pesto has been at room temperature for more than 2 hours, it should be discarded. Bacteria can grow to dangerous levels even if the pesto looks and smells fine. The risk is especially high with homemade pesto or any pesto containing dairy.

Does pesto need to be refrigerated if it’s unopened?

Only if it’s the fresh type from the refrigerated section. Unopened shelf-stable pesto in a jar can stay in the pantry. But once you open it, it must go in the fridge. Always check the label—if it says “keep refrigerated,” follow that even before opening.

How do I store leftover pesto from a restaurant?

Put it in an airtight container and refrigerate it within 2 hours of receiving it. Use it within 5 days. If you won’t use it that soon, freeze it immediately.

Can I freeze pesto in the original jar?

It’s not a good idea. Glass jars can crack in the freezer, and plastic tubs may become brittle. Transfer pesto to a freezer-safe container, leaving a little headroom for expansion, or use ice cube trays for single servings.

Why does my pesto turn brown in the fridge?

That’s oxidation—the same process that turns cut apples brown. It’s harmless but unappetizing. Pressing plastic wrap directly on the surface helps slow it down. Stirring the brown top layer back in is fine, but if the whole batch is brown and smells off, it’s spoiled.

Is it safe to eat pesto past the expiration date?

If it’s unopened and shelf-stable, you can often use it a few weeks past the date if the jar is intact and it looks normal. But once opened, ignore the date and follow the 5–7 day rule. For fresh pesto, the expiration date is a good guide, but trust your senses—if it smells or looks wrong, throw it out.

Does Pesto Need to Be Refrigerated? Yes, Here’s Why
Scroll to top