Can You Freeze Basil Pesto With Cheese? Yes, Here's How
| ~6 min read | Pasta Sauces
Sections
Yes, you can freeze basil pesto that already contains cheese, and it freezes well for several months. The cheese does not prevent freezing or turn the pesto unsafe; it simply changes the texture slightly, because Parmesan and similar hard cheeses can become a little grainy or crumbly after thawing. Pesto is one of the more freezer-friendly sauces in a home kitchen, and having a stash on hand means a fast pasta dinner on a busy night. The key is to freeze it promptly, pack it to exclude air, and thaw it gently so the basil stays as green and fresh-tasting as possible.
Why Pesto Freezes Well in the First Place
Traditional basil pesto is an emulsion of olive oil, crushed basil, pine nuts (or another nut), garlic, salt, and hard aged cheese such as Parmigiano-Reggiano or Pecorino. None of those ingredients is harmed by cold in a way that makes the sauce unsafe. The oil solidifies in the freezer, the cheese firms up, and the basil darkens slightly, but the mixture holds together because the oil coats the leaves and limits the oxidation that turns basil black.
The cheese is actually a mild preservative in this context. Hard aged cheeses are low in moisture and high in salt, so they freeze without the watery, crumbly breakdown you get with soft fresh cheeses like ricotta or cream cheese. That is why pesto with Parmesan freezes far better than, say, a cheese sauce or a cream-based pasta sauce, which can separate and turn grainy after freezing.
What does change is texture. Parmesan that has been frozen and thawed can lose some of its silky melt and read as slightly gritty when the pesto is stirred into hot pasta. In practice this is barely noticeable once the pesto is tossed with starchy pasta water, but it is worth knowing if you plan to use the thawed pesto raw as a spread or drizzle.
How to Freeze Pesto: Step by Step
- Make the pesto fresh and chill it first. Let it sit in the refrigerator for about 30 minutes so it is cold before it goes into the freezer. Do not leave it at room temperature for hours; pesto contains garlic and fresh herbs in oil, and it should be refrigerated promptly.
- Decide whether to add the cheese now or later. You can freeze pesto with the cheese already in it, which is the simplest approach. Some cooks hold back the cheese and stir it in after thawing for a fresher cheese flavor, but this is optional and not a safety requirement.
- Portion it. Freeze in amounts you will actually use, typically half-cup or one-cup portions, since you cannot easily re-freeze thawed pesto.
- Pack tightly to exclude air. Press the pesto into ice cube trays, small rigid containers, or zip-top freezer bags, leaving a little headspace for expansion. A thin layer of olive oil poured over the top helps block oxygen and keeps the surface green.
- Label and date. Write the date and the contents on the container. Pesto keeps its best quality for about 3 to 4 months in a standard freezer at 0°F (-18°C), and remains usable longer, though the basil flavor fades.
- Freeze flat if using bags. Lay bags flat on a sheet pan until solid, then stack them; flat packs thaw faster and take up less room.
Thawing and Using Frozen Pesto
The gentlest method is to move the portion to the refrigerator overnight. If you are in a hurry, drop the frozen pesto directly into hot drained pasta and toss; the residual heat melts it. You can also set the container in a bowl of cool water, changing the water as it warms. Avoid thawing pesto on the counter at room temperature for long periods, and never microwave it on high, which can cook the basil and turn it dull and bitter.
When you toss thawed pesto with pasta, loosen it with a splash of the starchy cooking water you saved before draining. The water helps the oil and cheese re-emulsify and cling to the noodles instead of pooling at the bottom of the bowl. Add the pesto off the heat, or over very low heat, so the cheese does not clump and the basil does not scorch.
Common Problems and How to Fix Them
- Grainy texture. Caused by the cheese and oil separating during freezing. Tossing with hot pasta water and a little extra grated cheese usually smooths it out.
- Dull or dark color. Oxidation, not spoilage. A layer of oil over the surface before freezing and tight packing help; a squeeze of lemon juice in the pesto also slows browning.
- Freezer burn. Dry, pale patches from air exposure. Cut away badly burned areas; the rest is still usable.
- Watery pesto. Basil contains water, and ice crystals release it on thawing. Stir well before using, and drain off any pooled liquid if you are using the pesto as a spread rather than a sauce.
Food Safety Notes for Pesto
Pesto is a low-risk sauce, but a few rules matter. Keep it refrigerated and use it within about a week in the fridge; freeze portions you will not finish in that window. Never store pesto or any garlic-and-herb oil at room temperature, because oil infused with raw garlic or fresh herbs can support the growth of harmful bacteria. Discard pesto that smells sour, looks fuzzy, or has been left out for more than two hours (one hour if the room is above 90°F).
If you make pesto with raw egg, which is not traditional and not recommended, treat it as a raw egg dish and use pasteurized eggs, especially for anyone pregnant, elderly, very young, or immunocompromised. Standard basil pesto contains no egg, so this is rarely an issue. When reheating pasta dishes made with pesto and other cooked ingredients, bring leftovers to 165°F (74°C) and refrigerate leftovers within two hours.
Freezing Pesto vs. Other Pasta Sauces
Pesto freezes better than most cream- and egg-based sauces. A carbonara or cream sauce can break and turn grainy in the freezer, so those are best made fresh and tossed with hot pasta off the heat until the sauce thickens. Tomato-based sauces and meat sauces freeze well, but they need longer reheating and should reach 165°F (74°C). Pesto is unusual in that it can go straight from freezer to hot pasta with no cooking at all, which makes it a practical freezer staple for quick weeknight meals.
Frequently Asked Questions
Does the cheese in pesto go bad in the freezer?
No. Hard aged cheeses like Parmesan and Pecorino freeze safely and keep for months at 0°F (-18°C). The texture may become slightly grainy after thawing, but the cheese does not spoil in the freezer.
How long can you keep frozen pesto?
For best flavor and color, use it within 3 to 4 months. It stays safe longer if kept solidly frozen, but the basil flavor fades and the color dulls over time.
Can you freeze pesto in ice cube trays?
Yes, and it is a convenient way to portion it. Freeze until solid, then pop the cubes into a freezer bag. One standard cube is roughly two tablespoons, a good single-serving amount for one portion of pasta.
Should you leave the cheese out when freezing pesto?
It is optional. Freezing with the cheese is fine. Leaving it out and stirring grated cheese in after thawing gives a slightly fresher cheese flavor, but it is not necessary for safety or quality.
Can you re-freeze thawed pesto?
No. Once thawed, use it within a few days in the refrigerator and do not re-freeze it, since repeated thawing degrades quality and gives bacteria more opportunity to grow.
Can you put frozen pesto directly into hot pasta?
Yes. Drop the frozen portion into hot drained pasta and toss; the heat melts it. Loosen with a little reserved pasta water so the sauce coats the noodles evenly.