You’ve been composting perfectly good dinner. Let’s fix that.

Let’s do an inventory of your garden’s “trash.” Carrot tops: compost. Radish greens: compost. The beet greens you thinned out last weekend: compost. Turnip greens that came along for the ride with the roots you actually wanted: compost.

Meanwhile, at the grocery store, a tiny jar of basil pesto costs real money, and you are standing in the produce aisle like the greens growing in your own backyard don’t exist.

Here’s the manifesto, short and sweet: those tops are not waste. They are pesto that hasn’t happened yet. You’re already growing the ingredients — you’re just throwing them at the compost pile instead of the food processor. Pesto is the rescue plan.

And because this is a kitchen guide on this website, we’re going to talk about safety before we talk about flavor. Not after. Not in a footnote. First.

The Safety Talk Comes First (Yes, Really)

If you’ve read our water-bath canning guide, you already know the villain of this story: Clostridium botulinum (klos-TRID-ee-um bot-choo-LINE-um), the soil-dwelling bacterium whose spores produce one of the most potent natural toxins known. Quick recap of its favorite conditions:

  • Low oxygen — like the inside of a sealed jar
  • Low acid — pH above 4.6
  • Room temperature
  • Moisture and food

Now look at a jar of homemade pesto: low-acid greens, garlic, nuts, and oil, sealed up with no air. That’s not a condiment. From the bacterium’s perspective, that is a luxury condo with room service. The National Center for Home Food Preservation (NCHFP) says it plainly: herbs and oils are both low-acid, and together they can support the growth of C. botulinum.

So here are the load-bearing rules. Everything fun in this guide stands on top of them:

  1. NEVER water-bath can homemade pesto. Not with extra lemon juice. Not with “just a little longer” processing time. Not because your neighbor does it. There are no home canning recommendations for pesto — that’s not our opinion, that’s the NCHFP. The lemon juice in the formula below is there for flavor, and it is nowhere near enough to move the safety math. Love grandma. Don’t follow her untested pesto-canning recipe.
  2. Refrigerate fresh pesto and eat it within 3 days. The NCHFP’s guidance for fresh pesto: refrigerate, no more than 3 days. The fridge slows the bad guys down; it does not kill them. Three days is the line.
  3. For long-term storage, freeze it. Pesto freezes beautifully — this is the official answer to “how do I keep my pesto.” Freeze it the day you make it, thaw it in the fridge when you need it.
  4. Wash and dry your greens thoroughly. Those spores live in soil, and your greens grew in soil. Wash well, dry completely before blending.
  5. Respect the garlic-in-oil rule. Raw garlic sitting in oil at room temperature is the textbook botulism example — it’s literally the one the food-safety people use when they teach this. Your pesto contains both. That’s exactly why rules 1–3 exist.

Okay. Lecture over. On to the delicious part.

Meet the Greens (Your Compost Bin’s Finest)

Pesto, at its core, is a formula, not a recipe: flavorful greens + something nutty + hard cheese + garlic + olive oil + acid/salt. Basil is the classic green, but basil is just the employee of the month. Here’s the rest of the staff — greens you’re probably already growing and currently throwing away:

Carrot tops — Earthy and slightly bitter, like a green that does yoga and has opinions. They’re the reason this guide exists: nearly every gardener pulls carrots and bins the tops without a thought. Blanch them for 30 seconds in boiling water, then shock in ice water — this tames the bitterness and sets the color. After blanching, they’re the mildest pesto green here.

Radish greens — Peppery, with the same spicy attitude as the radish itself. If you like arugula, you’ll like these. They’re sturdy enough to use raw, and they make a pesto with genuine backbone — great on grilled vegetables or swirled into soup. (If your radishes bolted in the Florida heat, the greens were the consolation prize all along.)

Beet greens — Sweet and earthy, the mildest of the bunch after blanched carrot tops. Treat them like chard: give them the same 30-second blanch if you want a smoother flavor. Fair warning: they will stain your cutting board, your hands, and your conscience if you ever compost them again. The pink-tinged pesto they make is gorgeous.

Turnip greens — The bold one. Raw, they’re peppery and assertive — the Southern-cooking legend of this list. Blanch them to round off the edges, or use them raw if you like your pesto with a little swagger. Pair with toasted walnuts and don’t apologize.

The pattern: the tougher or more bitter the green, the more it benefits from a 30-second blanch. Blanching mellows bitter compounds, softens fibrous leaves, and keeps the color vivid. It’s not a requirement for every green — it’s a dial you turn to taste.

The Master Formula

Memorize this and you’ll never need a pesto recipe again:

  • 2 cups packed greens (any of the above, or a mix)
  • 1/3 cup nuts or seeds
  • 1/3 cup grated hard cheese (Parmesan and its friends)
  • 1–2 cloves garlic
  • 1/3 to 1/2 cup good olive oil
  • Lemon juice and salt to taste

A few notes from the lab (the kitchen — the kitchen is the lab):

On the greens: Pack them into the measuring cup like you’re stuffing a suitcase. A “cup” of loosely piled leaves is mostly air. Mix and match — half carrot tops, half radish greens is a genuinely great combination, the mild and the peppery covering for each other.

On the nuts: Pine nuts are traditional and expensive. Walnuts, sunflower seeds, and pumpkin seeds are the budget-friendly understudies that honestly steal the show. Sunflower seeds are the move if you’re cooking for someone with a tree-nut allergy — and they grow beautifully in Florida gardens, which means you can grow your pesto’s crunch too. Toast them in a dry skillet until fragrant; it takes five minutes and doubles the flavor.

On the cheese: A hard, salty, aged cheese — Parmesan is the classic. Pecorino works if you want more attitude. This is doing two jobs: flavor and that savory depth that makes pesto taste like pesto instead of blended salad.

On the garlic: Start with one clove. Raw garlic is loud, and you can always add more. Remember the garlic-in-oil rule from the safety section — this is why fresh pesto is a 3-day food and everything else goes in the freezer.

On the oil: This is not the place for the bargain jug. A fruity olive oil carries the whole thing. And when you’re packing pesto for the freezer, a thin cap of oil poured over the top of each container is your anti-browning insurance policy — oxygen is what turns pesto brown and sad, and oil is the bouncer at the door.

On the lemon: A squeeze brightens everything and slows browning a little. But say it with me: lemon juice is for flavor, not for safety. It does not make this canning-safe. Nothing in this guide makes pesto canning-safe. Freezer. That’s the answer.

The Method (Five Minutes, One Food Processor)

  1. Prep the greens. Wash thoroughly, dry completely (a salad spinner earns its keep here). Blanch the tougher greens — carrot tops, beet greens, turnip greens — 30 seconds in boiling water, then straight into ice water. Squeeze out as much water as you can; excess water is the enemy of good pesto texture.
  2. Toast the nuts or seeds. Dry skillet, medium heat, shake until fragrant. Let them cool a minute.
  3. Blend the solids first. Greens, toasted nuts, garlic, and a big pinch of salt into the food processor. Pulse until it’s a coarse paste — you’re building texture, not making a smoothie.
  4. Add the cheese. Pulse it in. (If this batch is headed for the freezer, skip the cheese — see below.)
  5. Stream in the oil. With the processor running, pour in the olive oil slowly. Watch it come together into something glossy and green and magnificent.
  6. Finish with lemon and salt. Taste. Adjust. Taste again. This step is technically optional and spiritually mandatory.

Freezing Like You Mean It

Your freezer is the only long-term preservation method for pesto, and honestly it’s a great one. Two pro moves:

1. Freeze it in portions. Ice cube trays are the classic: spoon the pesto in, cap each cube with a thin layer of olive oil, freeze solid, then pop the cubes into a labeled freezer bag. Each cube is roughly one serving’s worth of “make Tuesday night better.” Small freezer jars work too — leave ½ inch of headspace for expansion.

2. Freeze it WITHOUT the cheese, and add the cheese fresh. Hard cheese can turn grainy in the freezer, and cheese is the easiest part to stir in after thawing. So: blend greens, nuts, garlic, and oil, freeze that, and pulse in freshly grated Parmesan when you thaw. The difference in texture is real. Thaw cubes in the fridge (not on the counter — remember who’s waiting for room temperature), stir in the cheese, and proceed to put it on everything.

What about the refrigerator version — the jar you’re eating this week? Keep it cold, keep the surface covered (a thin oil layer or press plastic wrap right onto the surface to block air), and honor the 3-day line.

When in Doubt, Toss the Pesto

The canning guide has a version of this section, and it applies here too: you cannot see, smell, or taste botulinum toxin. It is odorless and tasteless. So “it smells fine” is not a safety test.

The rules are simple enough to fit on a sticky note:

  • Fridge pesto older than 3 days? Out.
  • Pesto that sat on the counter for hours? Out.
  • Anything that looks, smells, or tastes off? Out — and don’t taste-test your way to a verdict.
  • A jar of pesto is not worth a hospital visit. This is the cheapest insurance policy you’ll ever buy: it costs one jar.

Close the Loop

And here’s the part that makes this a Living Root guide and not a cooking blog: the stems you trimmed, the leaves that were too tough, the bits that didn’t make the cut — those go to the compost (or better, the worm bin). They feed the microbes, the microbes feed the soil, the soil grows next season’s carrots, and next season’s carrot tops become next season’s pesto.

You were going to compost the whole harvest’s tops anyway. Now you’re just taking the delicious detour first.

Further reading: the NCHFP’s guide to freezing pesto (the authority behind the 3-day rule and the “no home canning recommendations” verdict), and our own Water-Bath Canning Without Fear for the full botulism science.

🪱 Your Soil Needs This

Reading about healthy soil is great. Growing in it is better. Our small-batch, traceable worm castings are the shortcut your garden deserves.

Shop Worm Castings Subscribe & Save

Every bag comes with a lot certificate. Know what's in your soil.