How to Freeze Pesto: Ice Cube Trays, Storage and Thawing
8 min read · by Grace Lin · Last updated: November 11, 2026
Learning how to freeze pesto is simple: spoon it into ice cube trays, top each portion with a little olive oil, freeze until solid, then move the cubes into a labeled freezer bag.
Small cubes let you use only the amount a recipe needs. Frozen cubes can go straight into hot food, and this guide covers storage, thawing and the mistakes that make frozen pesto harder to use.
How to freeze pesto in ice cube trays
Spoon fresh pesto into each compartment of an ice cube tray, top it with a little olive oil, and freeze until set.

An ice cube tray is the simplest way to portion pesto, because each compartment becomes one ready-to-use cube. Filling the compartments before freezing sets the portion size in advance, so you never have to chip a portion off a frozen block. This is the core of how to freeze pesto for everyday cooking.
Tasting Table’s freezing guide, which cites The Kitchn, lists four steps for this method:
- Spoon the pesto into each compartment of an ice cube tray.
- Top each compartment with a little extra olive oil before freezing.
- Freeze the trays for a few hours, until the pesto is set.
- Remove the frozen cubes and store them in a clearly labeled freezer bag.
Oregon State University Extension adds a detail to that routine: once the cubes are frozen, wrap each one individually in plastic wrap, then store the wrapped cubes together in a freezer container. Wrapping keeps each portion separate, so you can take out one cube at a time without thawing the rest.
No extra cheese step is part of the method. Any Parmesan is already mixed into the pesto, so the work is portioning, adding a little olive oil, freezing, and storing.

How long frozen pesto keeps in the freezer
Pesto keeps in the refrigerator for up to four days, and freezing is the option for longer storage, according to Oregon State University Extension.
If you follow how to freeze pesto as described above, Tasting Table’s freezing guide says it can be saved for months to come, though it gives no exact cutoff. The Oregon State publication also gives no freezer time limit for pesto, so the real storage window depends on your freezer and the date on your label.
Label each bag or container with the date you froze it, so you can use the oldest cubes first. For the refrigerator step, the same publication suggests labeling containers with the preparation date and the date four days later.
If you cannot use fresh pesto within four days, the same guidance points to the freezer rather than the refrigerator. Keep the freezer bag toward the back of the freezer, away from the door, where the temperature changes less often.
For a firm storage limit, check the guidance from your freezer’s manual or from the USDA before relying on a set number of months. If you also batch-cook pasta to go with the cubes, see whether you can freeze cooked pasta as well.
Using frozen pesto without thawing it first
Frozen cubes can go straight into hot pasta, soup or roasted potatoes, and the sauce melts as the food heats.

Once you know how to freeze pesto this way, the cubes melt into the dish while it cooks, so the sauce blends without an extra step. That makes frozen cubes a quick option on busy weeknights, when a full thaw would take planning. A dish such as trofie al pesto is built around the sauce, so one cube is a ready portion.
Penn State Extension’s article on freezing herbs gives the same advice for herbs: do not thaw them before adding them to cooked dishes. Pesto cubes follow the same logic because they are a herb-based mixture heated in a dish.
Thawing frozen pesto for cold use
For cold dishes or a spread, let the cubes melt in the fridge. The Spruce Eats, cited by Tasting Table, also describes using the microwave’s defrost setting and stirring from time to time until the pesto is thawed.
The Oregon State publication includes no thawing instructions, so the methods above come from cooking guides rather than extension advice. Check that the pesto is fully thawed before you serve it cold.
Mistakes that make frozen pesto harder to use
Skipping the olive oil layer and freezing one large block are the two mistakes that make frozen pesto harder to portion and use.
- Skipping the thin layer of olive oil that the method calls for before freezing.
- Freezing one large block instead of portioning it in tray compartments.
- Leaving the frozen cubes loose in the freezer instead of wrapping each one and storing them in a container.
- Storing cubes in a bag with no label, so the freezing date is unknown.
Oregon State University Extension also recommends airtight containers, such as small glass or plastic jars, so the strong herb aroma does not affect other foods in the freezer. Penn State Extension warns against storing herbs in oil at room temperature and advises adding oil only when the mixture will be frozen.
This tray method applies to pesto in general, including a batch from our pesto Genovese recipe. If you bought jarred pesto, check the storage note on that label first, because it may differ from the home method.
Freezing pesto in jars or flat bags
Small jars and flat freezer bags are alternatives to ice cube trays, and the best choice depends on how much pesto you cook with at once.
Penn State Extension describes a flat method for herbs mixed with oil: spread a thin layer in a zipper-lock bag, squeeze out the excess air before sealing it completely, freeze the bag flat until solid, then break off portions as needed. The article gives air-removal guidance only for this flat method.
The same article suggests mixing about one-third to one-half cup of oil with two cups of chopped herbs, then freezing the mixture in ice cube trays or small jelly jars. Those proportions are for herbs, so compare them with your own pesto recipe before you copy them.
| Container | Best for | Notes |
|---|---|---|
| Ice cube tray | Single portions for one dish | Wrap each frozen cube, then move the cubes into a labeled freezer bag |
| Small glass or plastic jar | A larger batch you plan to use together | Airtight, so the herb aroma stays contained |
| Flat zipper-lock bag | Saving space in a crowded freezer | Squeeze out the air, freeze flat, then break off portions |
Ask how many dishes you need each week, then choose the container that matches. For a whole batch, a jar keeps the pesto together, while cubes are easier for quick dinners.
Frequently Asked Questions
Can you freeze pesto?
Yes. Knowing how to freeze pesto in ice cube trays is a simple way to portion it into single servings, and each cube can then be used in hot food without thawing. Keep the wrapped cubes in a labeled freezer bag so you can take out only what a recipe needs.
Does pesto need extra cheese before freezing?
No. The method adds no cheese step, because any Parmesan is already mixed into the pesto. The freezing steps are portioning, adding a little olive oil, freezing, and then storing the cubes.
How much pesto goes in one cube?
The sources do not give a standard amount, so the answer depends on your tray. Measure one filled compartment, then count how many cubes a typical serving needs. Writing that number on the bag label saves time later.
Should you thaw frozen pesto before cooking with it?
No, for hot dishes. Frozen cubes can go straight into hot pasta, soup or roasted potatoes, where the sauce melts as the food heats. For cold use, thaw the cubes in the fridge first.
What happens if pesto stays in the freezer too long?
The sources give no exact freezer cutoff for pesto. Tasting Table says it can be saved for months to come, so check the date on your label and the guidance from your freezer manual or food safety authority, and use the oldest cubes first.
Learning how to freeze pesto well comes down to portions that match one recipe, a label with the date on every bag, and the oldest cubes used first. If you are unsure how long the pesto has been stored, check the date before you cook with it.
6 min readLearnHow to Freeze Ravioli: Tray Method, Storage and CookingUpdated Nov 13, 2026
8 min readLearnCan You Freeze Cooked Pasta? Storage Times and Reheating TipsUpdated Nov 10, 2026
10 min readLearnHow to Cook Frozen Ravioli Without ThawingUpdated Nov 10, 2026
9 min readLearnHow to Freeze Fresh Mozzarella: 3 Simple StepsUpdated Nov 11, 2026
5 min readLearnHow to Freeze Agnolotti and Cook Them From FrozenUpdated Nov 13, 2026
8 min readLearnCan You Freeze Pizza Dough? Yes, Here Is How to Do It RightUpdated Nov 6, 2026