Fresh basil pesto in a glass jar, accompanied by hydroponic basil, pine nuts, and garlic.

Basil Pesto

Classic basil pesto rewards fresh leaves more than almost any other recipe - the aroma fades within hours of picking. Two cups of homegrown basil, toasted nuts, Parmesan and good olive oil are all it takes.

Quick answer: A classic basil pesto: fresh basil, toasted pine nuts, garlic, Parmesan and olive oil, blitzed in a food processor. Keeps up to a week refrigerated.

Jump to the recipe ↓

Prep: 10 min · Cook: 5 min (toasting the nuts) · Total: 15 minutes · Makes: about 1 cup (serves 4 through pasta)

Ingredients

  • 2 cups fresh basil leaves
  • ½ cup grated Parmesan cheese
  • ¼ cup pine nuts (or walnuts)
  • 3 cloves garlic, peeled
  • ½ cup extra-virgin olive oil
  • ½ tsp salt
  • ¼ tsp black pepper
  • 1 tbsp lemon juice (optional, for brightness)
LaNiTex Smart Grow Box hydroponic system for growing fresh greens and herbs indoors

Fresh basil a step from the chopping board — the Smart Grow Box grows leafy greens and herbs on your kitchen bench, with the built-in water tank and full-spectrum LED doing the daily work. You supply the seeds.

Grow your own basil →

Personally tested at home on the Sunshine Coast before listing.

Ingredient notes & easy swaps

Basil: two cups is roughly 50 g of picked leaves — a couple of good handfuls, stems out. Pick them just before you blend if you can; basil's aroma fades fast once it leaves the plant, which is why same-day leaves make a noticeably brighter pesto. Indoor-grown leaves come to the bench clean, so a quick rinse is all they need — then pat them completely dry, because water is what turns pesto thin and muddy.

Parmesan: grate it from a block. Pre-grated cheese carries anti-caking starch that can make the sauce slightly grainy.

Pine nuts: the classic, but walnuts are the wallet-friendly swap the ingredient list already allows, and cashews or almonds work the same way — toast whichever you use.

Olive oil: this is a raw sauce, so the oil's flavour comes straight through. Use one you would happily eat on bread.

Garlic: three cloves make an assertive pesto. If raw garlic sits heavily with you, two is plenty.

Method

  1. Toast the nuts: In a dry skillet over medium heat, toast the pine nuts (or walnuts) until lightly golden. Let them cool.
  2. Blend the ingredients: In a food processor, combine basil, toasted nuts, garlic, Parmesan, salt, and pepper. Pulse until finely chopped.
  3. Add olive oil: While the processor is running, slowly drizzle in the olive oil until the mixture becomes a smooth paste.
  4. Adjust seasoning: Stir in lemon juice if using, and adjust salt and pepper to taste.
  5. Store & serve: Transfer to an airtight container and refrigerate for up to a week, or freeze for longer storage.

Tips for success

  • Dry the basil thoroughly — wet leaves are the most common reason a pesto turns watery and dull.
  • Pulse, don't blend flat out. Long continuous blending heats and bruises the leaves, and the pesto darkens.
  • Take the nuts off the heat as soon as they smell toasty and look lightly golden — they keep colouring in the hot pan.
  • Taste only at the end, after the Parmesan is in: the cheese brings its own salt.
  • The lemon juice is optional, but it brightens the flavour and helps hold the green colour a little longer.

Storage and make-ahead

In an airtight jar in the fridge, this pesto keeps for up to a week — the same guidance as the recipe's final step. To slow the surface browning, press a small piece of baking paper onto the top or pour over a thin film of olive oil before sealing.

For longer storage, freeze it: spoon the pesto into an ice-cube tray, freeze solid, then transfer the cubes to a freezer bag. Use within about 3 months; the colour may darken slightly, but the flavour holds. One cube is roughly a single-serve of pasta sauce.

Flavour is best on the day it's made — the garlic gets steadily louder as the pesto sits.

Get a fresh grow guide like this every fortnight

Join the LaNiTex Hydro Garden newsletter for practical hydroponic, microgreen and mushroom growing tips for Australian homes. Subscribe to download a free hydroponics starter guide (PDF) and get 10% off your first order.

Join the newsletter →

Variations

  • Rocket pesto — the peppery cousin, made the same way: see the rocket pesto recipe.
  • Walnut pesto — swap the pine nuts one-for-one for a deeper, earthier flavour.
  • Dairy-free — leave the Parmesan out, add an extra spoon of nuts and a little more lemon and salt.
  • Pesto pasta — toss through hot pasta with a splash of the cooking water to loosen the sauce.
  • Salad dressing — let it down with lemon juice and a little more oil and it dresses leaves rather than pasta; good over a butter lettuce salad.

Basil pesto FAQ

How long does homemade basil pesto last?

Up to a week in an airtight container in the fridge, and about 3 months in the freezer. Keep the surface covered with baking paper or a film of olive oil to slow browning.

Why did my pesto turn dark?

Oxidation, usually helped along by over-blending. Basil bruises easily: pulse instead of running the processor continuously, make sure the leaves are dry, and cover the surface when storing. The optional lemon juice also slows the colour change.

Can I make basil pesto without pine nuts?

Yes — walnuts, cashews or almonds all work in the same ¼-cup quantity. Toast them the same way before blending.

Can I freeze basil pesto?

Yes, and it freezes well. Ice-cube trays give you single-serve portions; bag the frozen cubes and use them within about 3 months, dropping a cube straight into hot pasta.

Grow the basil yourself

Two cups of basil sounds like a lot until you grow it yourself. The basil growing guide covers the full indoor method, and the Smart Grow Box turns out picking-size plants on rotation. A single plant, picked a few stems at a time, regrows fast enough to keep a regular pesto habit supplied.

The full range

Find the system that fits your space

Compare the range →

Supported in Australia - every model tested before listing.

About our imagery: Some blog images are illustrative and created or enhanced with AI. Product photos reflect the actual product.