What makes basil-dill pesto work with cod

Basil-dill pesto cuts through the mild, slightly sweet flesh of cod without overwhelming it. The two herbs work differently: basil brings brightness and a peppery warmth, while dill adds an anise note that echoes the delicate flavor already in the fish. Together they create a sauce that tastes fresh and herbaceous rather than heavy, which matters because cod's texture is already tender and can turn mushy if you pair it with something rich or acidic enough to break down the protein further.

The pesto sits on top of the fish rather than cooking into it, so the herbs stay vibrant and the fish stays moist. You can make the pesto ahead and store it in the refrigerator, which means you can have dinner on the table in the time it takes to cook the cod — usually 12 to 15 minutes depending on thickness.

Key Takeaways

  • Basil-dill pesto pairs with cod because the herbs are bright enough to complement mild fish without overpowering it.
  • Make the pesto while your oven preheats, or prepare it up to two days ahead and refrigerate it in an airtight container.
  • Cook cod skin-side down in a hot pan for 3 to 4 minutes, then finish in a 400°F oven for 8 to 10 minutes depending on fillet thickness.
  • Spread the pesto on the cooked fish just before serving so the herbs stay fresh and the texture stays bright.

Ingredients and proportions

For four servings, you need one cup of loosely packed fresh basil leaves, one-half cup of fresh dill fronds (the feathery green part, not the stems), one-third cup of raw almonds or pine nuts, two cloves of garlic, the zest and juice of one lemon, one-half cup of good olive oil, and salt and pepper to taste. Some cooks add a tablespoon of grated Parmesan, but it is optional — the pesto works without it.

For the cod, plan on six ounces per person if the fillets are thick and meaty, or eight ounces if they are thinner. Ask your fishmonger to cut them from the thickest part of the fish, where the flesh is firmest and cooks evenly. Skin-on fillets hold together better than skinless ones, and the skin crisps in the pan.

Making the pesto

Pulse the nuts in a food processor until they are broken into small pieces but not yet a powder — this takes about 10 seconds. Add the garlic, lemon zest, basil, and dill, and pulse again until everything is roughly chopped and beginning to break down, another 10 to 15 seconds. Pour in the olive oil slowly while pulsing, stopping when the pesto reaches a texture you like. Some people prefer it chunky; others like it smoother. Both are right.

Stir in the lemon juice and salt and pepper by hand. Taste it. The pesto should taste bright and herbaceous, with the lemon cutting through the richness of the oil and nuts. If it tastes flat, add more lemon juice or salt. If it tastes too sharp, add a little more olive oil. The pesto will keep in a covered container in the refrigerator for up to two days, though the color will darken slightly and the herbs will lose some of their fresh snap.

Cooking the cod

Heat your oven to 400°F. Place a cast-iron or stainless steel skillet over medium-high heat for two minutes, then add a thin film of olive oil — just enough to coat the bottom. When the oil shimmers, place the cod fillets skin-side down in the pan. Do not move them. Let them sit for three to four minutes until the skin is golden and crisp and the flesh has begun to turn opaque at the edges.

Transfer the skillet to the oven and cook for eight to ten minutes, depending on how thick the fillets are. A fillet that is three-quarters of an inch thick will need about eight minutes; one that is an inch thick will need closer to ten. The fish is done when it flakes easily at the thickest point and the flesh is opaque all the way through. Do not overcook it — overcooked cod becomes dry and loses its delicate texture.

Plating and serving

Remove the skillet from the oven and let the fish rest for two minutes. Spoon a generous amount of pesto across the top of each fillet, letting some of it pool on the plate. The pesto should cover the fish but not bury it — you want to see the crisp skin and the flaky flesh underneath.

Serve the cod immediately with something to soak up the pesto and the pan juices: crusty bread, boiled potatoes, or a simple green salad dressed with lemon and oil. The pesto is rich enough that you do not need another sauce, but a wedge of lemon on the side is always welcome.

Variations and substitutions

If you cannot find fresh dill, use fresh tarragon or chervil instead — both have a subtle anise quality that works the same way. If basil is out of season or unavailable, parsley makes a solid substitute, though the pesto will taste more herbaceous and less peppery. You can also swap the almonds for walnuts or sunflower seeds if you have a nut allergy or preference.

Some cooks add a small handful of spinach or arugula to the pesto for color and a slight mineral note. Others stir in a tablespoon of capers or a teaspoon of Dijon mustard for sharpness. These changes work, but they move the pesto away from the fresh, herb-forward character that makes it pair so well with mild fish. Start with the basic version, then adjust once you know what you like.

Storage and make-ahead tips

The pesto keeps in the refrigerator for up to two days in a covered container. If you want to store it longer, freeze it in ice cube trays, then transfer the cubes to a freezer bag — frozen pesto will keep for three months. Thaw it in the refrigerator before using, and stir it well because the oil and solids may separate.

You can cook the cod ahead and serve it at room temperature with the pesto spooned on top, which makes this dish useful for a casual dinner party or a picnic. The fish will be less dramatic than when it comes straight from the oven, but it will still taste good. If you are cooking ahead, let the fish cool completely before covering it, so condensation does not make the skin soggy.

Frequently Asked Questions

Can I use frozen cod for this recipe?

Yes. Thaw it in the refrigerator overnight, then pat it dry with paper towels before cooking. Frozen cod often releases more water than fresh, so drying it well helps the skin crisp in the pan. The cooking time stays the same.

What if I do not have a cast-iron skillet?

Any oven-safe skillet works — stainless steel, carbon steel, or even a baking dish. The key is getting the pan hot enough that the skin crisps, and finishing in the oven so the flesh cooks gently. If your skillet is not oven-safe, sear the fish in a regular pan, then transfer it to a baking dish for the oven.

How do I know when the cod is done?

The flesh should be opaque all the way through and flake easily when you press it with a fork at the thickest point. If you have a meat thermometer, cod is done at 145°F. It is better to slightly undercook it than overcook it — the fish will continue to cook a little as it rests.

Can I make the pesto in a blender instead of a food processor?

Yes, but work in batches and pulse rather than blend continuously, or the herbs will turn into a paste. A blender tends to overwork the pesto faster than a food processor does, so watch it carefully.

What should I serve with this dish?

Crusty bread, boiled new potatoes, or roasted vegetables all work well. A simple green salad dressed with lemon and oil balances the richness of the pesto. You could also serve it with rice or couscous if you want something to soak up the pan juices.