• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Urban Farmie
  • Home
  • About
  • Recipes
  • Resources
    • Gardening
    • Substitutes
  • Subscribe
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
menu icon
go to homepage
subscribe
search icon
Homepage link
  • Home
  • About
  • Recipes
  • Resources
    • Gardening
    • Substitutes
  • Subscribe
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • ×

    Home » Resources

    Published: August 7, 2022 | Last Modified: August 7, 2022 by Shruthi Baskaran-Makanju | This post may contain affiliate links. 💬 - No Comments

    How long does pesto last in the fridge?

    Shares12Facebook1Pin11

    Do you have a pesto jar in your fridge that you're not sure how much longer it will last? Or maybe you've made a big batch and don't know what to do with the leftovers. Learn more about pesto’s shelf life along with tips on how to extend the shelf life of pesto!

    Close up image of pesto with text overlay of post title on top.

    Jump to:
    • How long does pesto last? 
    • How long does pesto last in the fridge?
    • How long does pesto last in the freezer?
    • Things that affect the shelf life of pesto
    • How can you tell if pesto has gone bad? 
    • Tips to extend shelf life of pesto 
    • How to freeze pesto? 
    • Botulism
    • FAQs
    • My favorite pesto recipes
    • 💬 Comments

    This post contains helpful tips and tricks! If you're in a rush, please use the "Jump to Recipe" link!

    This post might contain affiliate links. If you click on those and make a purchase, I earn a small commission at no extra cost to you. As an Amazon Associate I earn from qualifying purchases.

    How long does pesto last? 

    Pesto (especially homemade basil pesto) is one of those magical ingredients that can make just about anything taste delicious. But, like all other sauces and dips, has a short shelf life. It typically comes in four forms:

    • Store bought, refrigerated: this is typically sold in the refrigerated section of your grocery store.
    • Store bought, canned: this is unrefrigerated and typically found in the pasta and sauces section of the grocery store.
    • Store bought, powdered: this is a powder packet that is also unrefrigerated and found in the pasta and sauces section of the grocery store.
    • Homemade pesto that you can make at home (e.g., like my traditional basil pesto, nut-free, vegan kale pesto, pea shoot pesto or even broccoli pesto)

    How long does fresh pesto last?
    Pesto that is available in cans (in the store) generally tend to have a lengthier shelf life and may be kept for months before being consumed. Comparatively, refrigerated, prepared pesto tends to stay fresh for a shorter period of time, and homemade pesto has the shortest lifespan of all varieties.

    After that, the flavors will start to deteriorate and it will lose its bright green color. To understand more about the nuances of how long pesto lasts, and learn how to make it last even longer, read the rest of the post! Feel free to use the table of contents above to skip to the section you want.

    How long does pesto last in the fridge?

    Pesto will typically last longer in the fridge, regardless of the type. The National Center for Home Food Preservation suggests it should be made fresh and stored in the fridge for no more than 3 days. However, it may be frozen for longer term storage.

    However, the actual shelf life in the fridge will depend on its form.

    Type of PestoOpenedUnopened
    Store bought, refrigerated 7 to 14 days 1-3 weeks 
    Store bought, canned5 to 7 days 4-6 weeks 
    Store bought, powdered7-14 days 6 weeks (pantry) 
    Homemade< 3 days NA

    How long does pesto last in the freezer?

    To maximize shelf life of pesto, it's best to freeze it. This can prolong the shelf life to a couple of months versus a couple of weeks for most forms.

    Type of PestoOpenedUnopened
    Store bought, refrigerated 3-4 months 6-8 months 
    Store bought, canned3-4 months 6-8 months 
    Store bought, powdered3-4 months 6-8 months 
    Homemade3-4 months NA

    Things that affect the shelf life of pesto

    There are just two main things you need to be aware of:

    • The ingredients used
    • The container it's stored in

    Ingredients

    There are three ingredients that might affect the shelf life of pesto:

    • Nuts: All nuts contain oils, which can go rancid. The higher the percentage of oil, the faster it will go rancid. When you use nuts, you are combining two ingredients that have a shorter shelf life.
    • Basil (or other herbs): Like nuts, herbs easily decay, because they are mostly made up of water. Since it's mostly made of herbs, depending on the freshness and quality of herbs, the pesto can be more likely to spoil.
    • Oil: Oil is the other key ingredient with high potential to go rancid.

    As a result, choosing the freshest ingredients is the best way to prolong the life of the pesto.

    Ingredients for making basil pesto, labeled on a table - basil, olive oil, salt, pepper, parmesan and garlic (not pictured)

    Container

    The container used to store pesto really does affect it's shelf life. If you're looking to store it in your fridge, be sure to use an airtight container or plastic freezer bags. A container that is not airtight will cause it to oxidize and turn brown.

    If you're looking to store your pesto in the freezer, be sure to use freezer-safe containers. A container that is not freezer-safe will cause the pesto to lose its flavor.

    How can you tell if pesto has gone bad? 

    As much as we might try, occasionally, I've made pesto, only to have it spoil a few days later. It's such a shame when that happens! However, it's easy to tell if it's gone bad based on four indicators: mold growth, color, smell, and taste.

    Mold growth

    Mold growth is the most obvious sign that your pesto has gone bad. If you see mold growing on the surface, it's best to discard the container right away.

    Color

    You can tell that pesto has gone bad if it changes color from green to brown or black. Once you notice it's changed its color from green to brown then it's time to say goodbye to your condiment.

    Smell 

    Another thing that's a surefire way to tell it's has gone bad is the smell. If it's gone bad, then it will have a sour, almost chemical smell. This is because the olive oil and nuts have gone rancid. So, give it a good sniff, before you decide to use it to avoid any problems. If it doesn't smell good, then don't use it.

    Taste 

    If pesto tastes sour and a bit harsh (or watery and bland), then it's time to throw it away. If you're not sure whether it's still good, taste a small amount first and then decide. When in doubt, always better to be safe!

    Tips to extend shelf life of pesto 

    Pesto is versatile, but it can be expensive to buy in the store. And even more painful if it goes bad after you've made lots of delicious plans with it. By learning a few tricks, you can extend the shelf life, making it last for weeks instead of days.

    Unrefrigerated pesto 

    If you have unrefrigerated pesto (i.e., if you bought it in a can at a store) at home, it will last longest if kept in a cool, room temperature, dry area. Once opened, seal the container tightly to keep out high moisture content and oxygen. You can also always throw it in the fridge to be sure.

    Because it's an oil-based sauce, it will spoil and go rancid after a while if exposed to air. So if you see it start get exposed to air, you can top the jar with some high quality olive oil to cut off contact with air.

    Good news is that store-bought pesto will come with instructions on the label. Be sure to follow these instructions for optimal freshness!

    Refrigerated or homemade pesto

    Pesto will last the longest in the fridge, but it needs to be stored properly to prevent spoilage. Always store it in the fridge, even if it hasn't been opened yet. Once you have opened the jar, be sure to seal the container tightly and top it off with oil to prevent exposure to air and spoilage.

    How to freeze pesto? 

    Freezing homemade or commercial pesto helps extend its shelf life even further. To do this:

    • Pack it into small freezer-safe plastic containers or heavy-duty freezer bags, leaving some headspace for expansion (approximately ½-inch headspace).
    • You can also freeze it in ice cube trays and then transfer the cubes to a freezer-safe bag or sealed container once they're frozen.
    • You should put a  label on the freezer-safe bag with the name and use date so you can keep track of how long it's been in the freezer. 

    When frozen, pesto lasts somewhere between six months (homemade) to eight months (store-bought).

    Botulism

    Pesto is a low acid food (because both fresh basil and oil are low acid foods), which means there is a risk of botulism if it's not stored properly. Botulism is a serious foodborne illness that can cause paralysis and even death. Botulism causing bacteria typically grow in low-acid foods that are stored improperly.

    Causes 

    Botulism is a serious and potentially fatal form of food poisoning. It is caused by the c. botulinum carrier, which is found in soil and contaminated food. The bacteria produce a toxin that can cause paralysis of the muscles, including the respiratory muscles.

    Botulism can occur in two forms: food-borne and wound. Food-borne botulism is the more common form and occurs when contaminated food is eaten. Wound botulism occurs when the bacteria enter an open wound and produce the toxin.

    Symptoms 

    Symptoms can take up to 18-36 hours to appear, and they include:

    • Nausea
    • Stomach pain
    • Diarrhea
    • Weakening of the muscles
    • Dry mouth
    • Blurred Vision
    • Double Vision
    • Drooping eyelids
    • Slurred speech
    • Difficulty in swallowing, moving eyes, and breathing

    If you have the symptoms of botulism, seek medical attention immediately.

    FAQs

    Does pesto go bad? 

    Unfortunately, yes. Since it's made from fresh and perishable ingredients such as basil, Parmesan cheese, olive oil, and pine nuts, it will only last for a short period of time in the fridge. But with proper storage, pesto can last in the fridge for up to two weeks.

    Can old pesto make you sick? 

    The short answer is yes. While pesto can last a really long time in the fridge when properly stored, it all depends on how you store it. So, if pesto doesn't look, smell or taste like it should or has mold growth, toss it.

    Does adding lemon juice to pesto increase shelf life? 

    Adding lemon juice to pesto does indeed increase its shelf life! Lemons are high in acidity, and this helps to preserve the pesto by preventing the growth of bacteria. So if you're looking to extend the life of your pesto, a little squeeze of lemon juice is a good way to do it. With the addition of lemon juice, you can expect your pesto to last for up to two weeks. But if you're looking to keep it fresh for even longer, you can always freeze it.

    My favorite pesto recipes

    To start with, you might want to check out a few types I have on the blog:

    • Close up of basil pesto in a bowl
      Basil Pesto (and variations!)
    • Close up of broccoli pesto in a bowl
      Broccoli Pesto
    • Quick and delicious creamy vegan kale pesto with cashews
      Kale Pesto Sauce (Vegan with Nut Free Options)
    • Close up of pea shoot pesto
      Pea Shoot Pesto

    Then, use it up in some delicious and versatile recipes:

    Pesto Salad Dressing (Vinaigrette, Creamy Versions!)
    Close up shot of two jars with pesto vinaigrette and creamy dressing side by side.
    This simple basil pesto salad dressing can be made as a vinaigrette or as a creamy version! Super simple to make, and can brighten any dish - whether it's a salad or pasta!
    Get Pesto Salad Dressing Recipe
    Tortellini Pasta Salad with Pesto Vinaigrette
    Close up of white bowl with tortellini salad, pesto jar in the background.
    This quick and easy tortellini pasta salad recipe is the perfect summertime side. Made with <10 simple ingredients, it comes together in just 20 minutes!
    Get Tortellini Pasta Salad Recipe
    Trenette al Pesto
    Close up of bowl of finished pasta with a blue-white striped napkin underneath.
    Originally from the Liguria region, this Trenette al Pesto is a delicious and quick pasta with basil pesto, potatoes and green beans. Hearty and comforting!
    Get Trenette al Pesto Recipe
    Broccoli Pesto Pasta
    Close up of plate of finished pasta
    Delicious, 30 minute broccoli pesto pasta with toasted lemon zest, roasted broccoli, and cherry tomatoes. Serve with whipped ricotta for an easy weeknight dinner!
    Get Broccoli Pesto Pasta Recipe
    « Lemon Curd Cookies (Thumbprint!)
    75 Vegetarian Mains for Thanksgiving! »

    Download your seasonal eating guide!

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Recipe Rating




    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Primary Sidebar

    Shruthi Baskaran - Recipe Developer, Food Photographer, and Blogger at Urban Farmie

    I am Shruthi, the recipe developer, photographer and blogger behind Urban Farmie. I have two graduate degrees from Stanford, one focused on food systems. And I hope to bring you everything you need for healthy-ish, comforting, nourishing vegetarian cooking.

    Read more →

    Recipe Key

    Dairy free
    Gluten free
    Nut free
    Vegan
    Vegetarian

    Spring Favorites

    • Overhead close up of strawberry shortcake cookies
      Strawberry Shortcake Cookies
    • Close up of pickled onions on a fork
      Sweet and Spicy Pickled Onions
    • Close up of mango avocado salad
      Mango Avocado Salad
    • Close up of bowl of pasta with garnishes on the side
      Spring Pasta with Peas and Oyster Mushrooms
    year-round produce guide
    Shruthi Baskaran - Recipe Developer, Food Photographer, and Blogger at Urban Farmie

    I am Shruthi, the recipe developer, photographer and blogger behind Urban Farmie. I have two graduate degrees from Stanford, one focused on food systems. And I hope to bring you everything you need for healthy-ish, comforting, nourishing vegetarian cooking.

    Read more →

    Recipe Key

    Dairy free
    Gluten free
    Nut free
    Vegan
    Vegetarian

    Spring Favorites

    • Overhead close up of strawberry shortcake cookies
      Strawberry Shortcake Cookies
    • Close up of pickled onions on a fork
      Sweet and Spicy Pickled Onions
    • Close up of mango avocado salad
      Mango Avocado Salad
    • Close up of bowl of pasta with garnishes on the side
      Spring Pasta with Peas and Oyster Mushrooms
    year-round produce guide

    Delicious Vegan / Vegetarian Brunch Recipes

    Square image of French toast with title

    Vegetarian & Vegan Air Fryer Breakfast Recipes

    Close up of croissant French toast bake slices on white plate, with berries and maple syrup on top

    Croissant French Toast Bake

    Close up of French Toast Sticks with berries on top on a white plate, with maple syrup on the side. More berries in background.

    Frozen French Toast Sticks in Air Fryer

    More Brunch Recipes

    Easy Vegetarian Weeknight Dinners

    Close up of cacio e pepe in a white bowl with a fork on the side.

    Authentic Bucatini Cacio e Pepe (3 Ingredients Only!)

    Overhead view of a pot with creamy sun-dried tomato pasta topped with red pepper flakes, basil, and two slices of lemon.

    Creamy Sun Dried Tomato Pasta

    Overhead view of a plate full of one pot lemon ricotta pasta topped with basil and rocket leaves and a fork on the side. 

    One Pot Lemon Ricotta Pasta

    More Weeknight Dinners

    Fun Appetizers

    Overhead view of the spinach artichoke dip in a white bowl.

    Instant Pot Spinach Artichoke Dip

    Overhead view closeup of green beans on white plate.

    Din Tai Fung Green Beans (Smothered in Garlic!)

    Close up square shot of avocado deviled egg on lilac plate.

    Avocado Deviled Eggs

    More Appetizer Recipes

    Get Every Recipe To Your Inbox!

    As Seen On

    Footer

    Urban Farmie

    Urban Farmie

    Seasonal, global, vegetarian recipes and the stories behind them. Inspired by life and travels to 60+ countries. Always authentic, never boring.

    • Facebook
    • Instagram
    • Pinterest
    • YouTube

    Popular Posts

    Authentic Bucatini Cacio e Pepe (3 Ingredients Only!)

    Strawberry Shortcake Cookies

    Nigerian Jollof Rice

    Cast Iron Skillet Cornbread (or Quiche!)

    Chana Masala

    Healthy Samosas

    Back To Top

    Copyright Black Bicycle LLC. © 2023
    Privacy Policy | Cookie Policy | Disclosure Policy | Website Accessibility Statement