This post contains affiliate links. As an Amazon Associate I earn from qualifying purchases. If you click a link and make a purchase, I may receive a small commission at no extra cost to you.
Fresh basil pesto lasts anywhere from 3 to 7 days in the fridge, depending on how you store it.
That’s the short answer, but the real question is how long does fresh basil pesto last before it turns brown, loses its bright flavor, or starts to spoil.
If you’ve ever opened a jar of homemade pesto and wondered if it’s still safe to eat, you’re in the right place.
In this post, we’ll break down exactly how long fresh basil pesto lasts in the fridge, what affects its shelf life, how to tell when it’s gone bad, and the best ways to extend its freshness.
Let’s dig into everything you need to know about keeping your basil pesto delicious and safe.
How Long Does Fresh Basil Pesto Last in the Fridge?
Fresh basil pesto lasts about 4 to 5 days in the fridge when stored properly in an airtight container.
However, how long fresh basil pesto lasts can vary based on a few key factors like the ingredients you used and how you store it.
Homemade pesto made with fresh basil, garlic, pine nuts, Parmesan, olive oil, and lemon juice typically stays good for up to a week.
Store-bought pesto, on the other hand, often lasts longer—up to 7 days after opening—because it usually contains preservatives.
But even with perfect storage, fresh basil pesto will slowly lose its vibrant green color and fresh taste over time.
Let’s look closer at what actually influences how long fresh basil pesto lasts so you can make it stay fresh for as long as possible.
1. The Ingredients Make a Big Difference
Fresh basil pesto that uses extra virgin olive oil and fresh lemon juice tends to last longer than pesto made without acid.
Lemon juice acts as a natural preservative because it lowers the pH level, making it harder for bacteria to grow.
Garlic also has mild antimicrobial properties that can help extend how long fresh basil pesto lasts.
However, if you use less oil or skip the lemon, your pesto may spoil faster—sometimes within 2 to 3 days.
The oil creates a protective barrier that keeps air away from the basil, which is crucial for preventing oxidation and browning.
2. Storage Method Determines Freshness
How long does fresh basil pesto last if you just leave it in an open bowl?
Not long at all—maybe just a day or two before it dries out on top and starts to darken.
The gold standard is to press plastic wrap directly onto the surface of the pesto before sealing the container with a lid.
This minimizes exposure to oxygen, which is what causes pesto to brown and lose its punchy flavor.
Another pro trick is to pour a thin layer of olive oil over the top of the pesto before refrigerating.
That extra oil acts as a seal, keeping air out and locking in freshness for the entire time your fresh basil pesto lasts.
3. Temperature Fluctuations Shorten Shelf Life
Your fridge should be set at or below 40°F (4°C) to keep pesto safe.
Every time you take the jar out and let it warm to room temperature, you’re promoting bacterial growth that shortens how long fresh basil pesto lasts.
Avoid leaving pesto out on the counter for more than 2 hours total per day.
Also, store pesto toward the back of the fridge where the temperature is most consistent, not in the door where it fluctuates every time you open it.
Signs Your Fresh Basil Pesto Has Gone Bad
Even if you’re within the 4 to 5-day window, you should always check for spoilage before using pesto.
Here’s how to tell if fresh basil pesto has gone bad and should be tossed.
1. Smell Test
Fresh basil pesto has a bright, herbaceous, and garlicky aroma that’s instantly recognizable.
If it smells sour, rancid, fermented, or like vinegar, that’s a clear sign bacteria have taken over.
Rancid oil also has a distinct, stale, or waxy smell that indicates the pesto is past its prime.
2. Visual Changes
Yes, pesto naturally darkens over time due to oxidation, but that’s different from actual mold.
If you see fuzzy patches in white, green, black, or pink—that’s mold, and you should throw the whole batch away.
Also, if any liquid separates into a slimy or cloudy layer, that’s a warning sign of spoilage.
3. Texture and Taste
Fresh basil pesto should be smooth, thick, and slightly oily.
If it feels slimy, watery, or overly dry and crumbly, it’s likely turning bad.
A quick taste test can confirm things—if it tastes bitter, sour, or just “off,” don’t risk it.
When in doubt, throw it out because food poisoning from spoiled pesto isn’t worth the risk.
How to Make Fresh Basil Pesto Last Longer
Want to stretch how long fresh basil pesto lasts beyond that 5-day limit?
Here are tried-and-true methods that home cooks and chefs use to maximize freshness.
1. Freeze It in Ice Cube Trays
Freezing is the best way to extend fresh basil pesto lasts for months instead of days.
Spoon pesto into ice cube trays, cover with a thin layer of olive oil, and pop them in the freezer.
Once frozen solid, transfer the cubes to a zip-top freezer bag and store for up to 6 months.
That way, you can thaw one cube at a time for pasta, sandwiches, or soups.
2. Use the Right Oil-to-Basil Ratio
A classic pesto recipe uses about 1/2 cup of olive oil for every 2 cups of packed basil leaves.
Make sure you don’t skimp on oil because it’s the main ingredient that prevents air from oxidizing the basil.
If your pesto looks too dry, add a little more oil before storing it.
3. Add Extra Lemon Juice
A bit more lemon juice not only brightens the flavor but also extends how long fresh basil pesto lasts.
Store-bought pesto often has citric acid added for just this reason.
Adding a teaspoon of fresh lemon juice to your batch can buy you an extra day or two in the fridge.
4. Blanch Your Basil First
If you’re planning to freeze pesto, blanch the basil leaves in boiling water for 15 seconds, then plunge into ice water.
Squeeze out excess water before blending.
This deactivates enzymes that cause browning, so your pesto stays bright green even after months in the freezer.
So, How Long Does Fresh Basil Pesto Last?
Fresh basil pesto lasts about 4 to 5 days in the fridge, but that timeframe depends heavily on your ingredients, storage, and handling.
If you store it with a tight seal, keep it cold, and add a protective layer of olive oil, you can confidently use it for up to a week.
For longer storage, freeze your fresh basil pesto so it can last for up to 6 months without sacrificing much flavor.
Always trust your senses—if it smells or looks off, toss it, because no meal is worth getting sick over.
Now you know exactly how long fresh basil pesto lasts and how to make every single day count.
Enjoy your bright, herby, and delicious pesto while it’s at its best.