Baking cod in foil is one of the easiest ways to get perfectly flaky, moist fish with almost no cleanup. The foil traps steam, which gently cooks the cod while keeping it from drying out, and you can add herbs, lemon, or vegetables right in the packet for a complete meal. This method works for fresh or thawed cod fillets, and the whole process takes about 20 minutes from start to finish.
What You'll Need
- Cod fillets (about 6 oz / 170 g each, skinless or skin-on)
- Aluminum foil (heavy-duty or double layer of regular)
- Olive oil or melted butter
- Salt and pepper
- Optional: lemon slices, fresh herbs (dill, parsley, thyme), garlic, white wine, or vegetables like asparagus or cherry tomatoes
- Baking sheet (to catch any drips)
- Instant-read thermometer (for accuracy)
Step-by-Step
- Preheat your oven to 400°F (200°C). This temperature cooks cod quickly while keeping it moist. If your fillets are very thick (over 1 inch), you can lower it to 375°F (190°C) to ensure even cooking.
- Prepare the foil packets. Tear off a piece of foil large enough to wrap each fillet with room to fold. For each fillet, use a sheet about 12x18 inches. If using regular foil, double it up to prevent tearing.
- Pat the cod dry with paper towels. This removes excess moisture, which helps the seasoning stick and prevents steaming the fish too aggressively.
- Season the cod. Place each fillet in the center of a foil sheet. Drizzle with about 1 teaspoon of olive oil or a small pat of butter. Sprinkle with salt and pepper. Add any optional aromatics: a few lemon slices, a sprig of dill or parsley, a minced garlic clove, or a splash of white wine.
- Fold the foil into a packet. Bring the two long sides of the foil together over the fish and fold them down in tight rolls. Then fold the short ends inward, creating a sealed packet. Make sure there is a little space (about 1 inch) between the fish and the foil so steam can circulate.
- Place the packets on a baking sheet. This catches any leaks and makes handling easier. Put the packets seam-side up to minimize drips.
- Bake for 12–15 minutes. The exact time depends on the thickness of your fillets. A 1-inch thick fillet typically takes 12–14 minutes. If your fillets are thinner (½ inch), check at 10 minutes. The cod is done when it flakes easily with a fork and reaches an internal temperature of 145°F (63°C) as measured with an instant-read thermometer.
- Rest the fish. Carefully open the foil packets (watch out for hot steam) and let the cod rest for 2–3 minutes. This allows the juices to redistribute, so the fish stays moist.
- Serve immediately. Transfer the cod to plates and spoon any juices from the packet over the top. Remove lemon slices and herbs before eating.
Common Mistakes
- Overcooking. Cod is lean and becomes dry and rubbery if cooked too long. Always check at the minimum time and use a thermometer.
- Using foil that is too small. If the packet is too tight, steam can’t circulate, and the fish may cook unevenly. Make sure there is room for expansion.
- Not sealing the packet properly. If steam escapes, the fish will dry out. Fold the foil tightly and double-check the seams.
- Skipping the preheat. Putting fish in a cold oven increases cooking time and can lead to uneven results. Always preheat.
- Adding too much liquid. A splash of wine or lemon juice is fine, but too much liquid will poach the fish, making it mushy.
Tips
- If your cod is frozen, thaw it in the refrigerator overnight. Do not bake from frozen with this method, as it will be unevenly cooked.
- For extra flavor, add a pat of herb butter on top of each fillet before sealing.
- If you want a browned top, open the foil packet for the last 2 minutes of baking and switch the oven to broil. Watch carefully to avoid burning.
- Use the foil packet juices as a simple sauce – they are packed with flavor.
- To make it a full meal, add sliced zucchini, bell peppers, or cherry tomatoes to the packet. They will steam along with the fish.
- Leftover cooked cod can be stored in an airtight container in the refrigerator for up to 3 days. Reheat gently in the microwave or oven, but note that the texture will be less flaky.
Troubleshooting
- Cod is still translucent in the center. If the fish is not opaque and flaky, reseal the packet and bake for another 3–5 minutes. Check again.
- Cod is dry and tough. This usually means it was overcooked. Unfortunately, you can’t undo it, but you can salvage it by flaking the fish and mixing it with a sauce, like a lemon-butter or mayonnaise-based sauce, and serving it over salad or in tacos.
- Foil packet leaked. If you see juices on the baking sheet, your foil wasn’t sealed well. For next time, use a double layer of foil and fold more tightly. The fish may still be fine, but check that it reached 145°F.
- Fish sticks to the foil. This happens if the foil was not oiled or if the fish was skin-on. To avoid, brush the foil with oil before placing the fish, or use parchment paper inside the foil.
- Uneven cooking. If one fillet is thicker than another, cut the thicker one into two pieces or place the thicker fillets on the outside of the baking sheet where heat is higher.
Frequently Asked Questions
How long does cod take to cook in foil at 400°F?
Typically 12–15 minutes for 1-inch thick fillets. Thinner fillets (½ inch) may only need 8–10 minutes. Always check for flakiness and an internal temperature of 145°F.
Can I use frozen cod without thawing?
It’s not recommended. Frozen cod will release a lot of water as it cooks, making the texture mushy, and the outside may overcook before the inside is done. Thaw in the refrigerator overnight for best results.
Should I bake cod covered or uncovered?
This recipe uses foil to cover the fish, which traps steam and keeps it moist. If you bake uncovered, you’ll need to add extra liquid or brush the fish with oil to prevent drying, and cooking time may be shorter.
Can I use parchment paper instead of foil?
Yes, parchment paper works the same way. It’s non-stick and eco-friendly, but it may not seal as tightly as foil. Just fold and crimp the edges well.
What temperature should cod be cooked to?
The USDA recommends a minimum internal temperature of 145°F (63°C) for fish. At that temperature, the flesh should be opaque and flake easily with a fork.
Can I add vegetables to the foil packet?
Absolutely. Thinly sliced vegetables like zucchini, bell peppers, or asparagus work well. Cut them small so they cook in the same time as the fish. Add them at the bottom of the packet, then place the cod on top.