Side Dishes
Baking cod with tomatoes and onions transforms simple ingredients into a restaurant-worthy dish that requires just one pan and 30 minutes of hands-off time. The secret lies in caramelizing the vegetables first—this builds deep, sweet flavors that perfectly complement the delicate flakiness of the cod.
I developed this recipe during a particularly busy week when I needed a meal that was both elegant and effortless, and it never fails to impress.
The beauty of this method is how the vegetables and fish cook together, creating a harmonious balance of textures and flavors. The tomatoes soften into a jammy consistency while the onions develop a rich, caramelized sweetness, all of which infuse the cod with natural aromatics.
A simple herb blend of thyme and parsley ties everything together, adding freshness without overpowering the dish's natural simplicity.
What you'll end up with is perfectly flaky cod that separates easily with a fork, surrounded by tender, caramelized tomatoes and onions. The dish is bright enough to stand alone but pairs beautifully with crusty bread or a simple green salad.
The aromas alone will have everyone gathering at the table, and the clean, balanced flavors make it a go-to for both weeknight dinners and special occasions.
This recipe is designed to be foolproof—no complicated techniques, just precise timing and a few key steps that ensure success every time. Whether you're cooking for two or feeding a crowd, the method scales effortlessly while maintaining that restaurant-quality finish. Let's get started on creating this elegant, one-pan wonder.
Ingredients for baked cod with tomatoes and onions
Eleven ingredients transform into restaurant-quality baked cod with caramelized tomatoes and onions.
| Ingredient | Amount | Notes |
|---|---|---|
| Cod Fillets 🐟 | 4 pieces | Skin-on, 6-8 oz each |
| Yellow Onions 🧅 | 1 whole | Thinly sliced for caramelization |
| Roma Tomatoes 🍅 | 4 whole | Halved lengthwise, seeds removed |
| Extra-Virgin Olive Oil 🫒 | ¼ cup | High-quality, fruity variety |
| Fresh Thyme 🌿 | ¼ cup | Leaves only, finely chopped |
| Fresh Parsley 🌿 | ¼ cup | Leaves only, chopped |
| Garlic Cloves 🧄 | 4 cloves | Minced for aromatic base |
| Lemon Juice 🍋 | 2 tbsp | Freshly squeezed |
| Diamond Crystal Kosher Salt 🧂 | 1 ½ tsp | For seasoning and finishing |
| Freshly Ground Black Pepper 🌶️ | ½ tsp | Coarsely ground |
| Dry White Wine 🍷 | ¼ cup | Sauvignon Blanc preferred |
| Unsalted Butter 🧈 | 2 tbsp | Cold, cubed for finishing |
The cod fillets are the foundation of this dish—opt for skin-on pieces as they hold together better during baking. Whole Foods Market and Trader Joe's consistently carry high-quality, sustainably sourced cod, but any reputable seafood counter will suffice. Look for fillets with a vibrant color and firm texture; avoid any with a fishy odor or dry appearance. The tomatoes and onions should be fresh but not overly ripe—Roma tomatoes hold their shape best, while yellow onions caramelize more evenly than red. For the herbs, fresh is non-negotiable; dried thyme and parsley won't provide the same bright, aromatic punch. If you're short on time, pre-chopped fresh herbs from the grocery store work in a pinch, though they lack the same intensity.
No white wine? Dry vermouth or additional lemon juice will bridge the flavor gap, though the acidity will be slightly more pronounced. Substituting dried herbs requires halving the amount, but the texture will differ—Italian seasoning blends can mimic the thyme-parsley combination if needed. For a vegetarian twist, swap the cod for hearts of palm or extra-firm tofu, though the dish will lose its delicate flakiness. The olive oil is critical; avoid the cheap, heavily processed varieties—California Extra Virgin or Colavita are reliable choices. If you prefer a lower-fat option, reduce the olive oil by 1 tablespoon and add an extra splash of wine to maintain moisture.
This dish reheats beautifully—simply cover with foil and warm in a 300°F oven for 10-12 minutes. The cod and vegetables continue to meld, deepening the flavors. For optimal freshness, store leftovers in an airtight container in the refrigerator for up to 3 days, though the cod may become slightly drier after the first day. Freezing isn't recommended for the cod, as it tends to lose texture, but the caramelized vegetable mixture can be frozen separately for up to 2 months. To serve, garnish with a pat of cold butter and a sprinkle of fresh parsley—this final touch elevates the dish from good to exceptional. Pair with crusty bread to soak up the rich, tomato-infused juices.
Why You'll Love This Recipe
- One-Pan Magic: I swear by this for nights when I’m too tired to scrub pots. Slice onions, halve those Roma tomatoes, toss everything on a sheet pan with olive oil and thyme—then bake. The cod flakes apart with the slightest touch, and the onions caramelize right alongside it. No fuss, no stress, just dinner.
- Thyme for Something Special: Honestly, the flavor combo is what makes this dish. The bright acidity of the tomatoes cuts through the richness of the cod, while the onions add sweetness that builds as it bakes. A sprinkle of fresh thyme? That’s the secret—it ties everything together like a whisper of the Mediterranean. Simple, but ridiculously good.
- Weeknight to Weekend: Between us, this recipe works for everything. Too lazy to plan? It’s your go-to. Hosting a dinner party? It looks impressive but takes zero effort. Even my picky teen devours it—though he’ll pretend he doesn’t like fish. (Yes, even on a Tuesday night.)
- Budget-Friendly Leftovers: Cod’s affordable, and this recipe stretches it further than you’d think. Bake a little extra, and you’ve got lunch sorted for days. The tomatoes and onions keep well, so reheating is a breeze—just pop it back in the oven until warm. No sad, dry fish here; it stays moist and flavorful, every single time.
Step-by-step instructions for baked cod with tomatoes and onions
This method ensures perfectly flaky cod with caramelized vegetables in a single pan.
Prepare the Cod and Vegetables for Even Cooking
Pat the 4 pieces of skin-on cod fillets dry with paper towels—this prevents steam from forming and keeps the skin crispy. Season both sides generously with the 1.5 teaspoons of diamond crystal kosher salt and 0.5 teaspoon of freshly ground black pepper. I find pressing the seasoning into the flesh helps it adhere better and infuse the fish evenly.
Next, thinly slice the 1 whole yellow onion into even rounds, about ⅛-inch thick. Halve the 4 whole roma tomatoes lengthwise and remove the seeds with a spoon. The goal here is to create a uniform layer of vegetables that will caramelize without overcrowding the pan. Set aside the prepared cod and vegetables on separate plates.
Build the Flavor Base in the Pan
Heat the oven to 400°F while you prepare the pan. In a large oven-safe skillet, add the 0.25 cup of extra-virgin olive oil over medium heat. Once shimmering, add the 4 cloves of minced garlic and cook for 30 seconds until fragrant—don't let it brown or it'll turn bitter. Immediately add the sliced onions and cook for 5-6 minutes until they begin to soften and release their sweetness.
Stir in the 0.25 cup of finely chopped fresh thyme leaves and the 0.25 cup of chopped fresh parsley, mixing just until combined. The herbs will infuse the onions with their bright, aromatic qualities. Pour in the 0.25 cup of dry white wine and scrape up any browned bits from the bottom of the pan—this deglazing step captures all the concentrated flavor.
Layer and Bake for Perfect Flakiness
Arrange the halved roma tomatoes in the skillet, cut-side down, creating a single even layer. Nestle the 4 seasoned cod fillets on top of the tomatoes, skin-side up. This arrangement allows the fish to cook gently while the tomatoes release their juices, keeping the cod moist. Pour the 2 tablespoons of freshly squeezed lemon juice evenly around the fillets.
Transfer the skillet to the preheated oven and bake for 12-15 minutes. The cod is done when it flakes easily with a fork and reaches an internal temperature of 145°F. You'll know it's ready when the edges turn opaque and the skin becomes crispy—this is your signal to remove it from the oven.
Finish with Butter for Richness
Remove the skillet from the oven and transfer the cod to a serving platter. Increase the heat to medium and add the 2 tablespoons of cold, cubed unsalted butter to the pan. Tilt the skillet and spoon the melted butter over the cod, basting it generously. This final step adds a luxurious finish and ensures every bite is rich and flavorful.
Serve immediately with the caramelized tomato-onion mixture spooned alongside. The cod should separate into delicate flakes at the first touch of your fork, while the vegetables will have developed a deep caramel color and tender texture. The lemon and herbs brighten the dish, balancing the richness of the fish and butter.
Pro Tips For Making Baked Cod With Tomatoes And Onions
- Dry the Cod First: Cod sticks to pans like glue when it’s damp, and that’s how you end up with sad, steamed fish instead of crispy edges. Pat those fillets thoroughly with paper towels—even if they look dry, do it again. The extra 30 seconds now keeps them from turning into a soggy mess later.
- Slice Tomatoes Like a Pro: Roma tomatoes are stubborn—halve them lengthwise, then cut each half into three uneven pieces (thick at the stem end, thin at the blossom). This keeps them from turning to mush while baking and lets the juices pool just enough to caramelize. (Yes, I’ve burned batches where I just chopped them randomly.)
- Salt the Onions Early: Toss sliced onions with a pinch of salt right after dicing—let them sit for 10 minutes while you prep the rest. This draws out moisture so they crisp up instead of steaming in their own water. I learned this the hard way when my onions came out limp, no matter how long I baked them.
- Bake at 375°F, Not Hotter: Cod’s delicate—anything above 375°F and you’ll end up with fish that’s dry on the outside before the center is done. Use an oven thermometer to confirm, and resist the urge to crank it up. The tomatoes and onions will caramelize just fine at this temp, and the cod stays moist. (I’ve ruined three batches by ignoring this.)
Creative variations of this recipe
Mediterranean Herb Twist
Swap the thyme and parsley for 1 tbsp dried oregano and 1 tbsp fresh dill to give this dish a bright Mediterranean vibe. The oregano adds earthy depth while the dill brings a fresh, almost citrusy note that pairs beautifully with the lemon juice.
I also add ½ tsp crushed fennel seeds to the pan when sautéing the onions for an anise-like warmth that complements the cod perfectly. 🌿
Spicy Tomato Jam Base
For a richer, slightly sweet-savory profile, replace the halved tomatoes with 1 cup crushed San Marzano tomatoes (about 2-3 tomatoes) mixed with 1 tbsp tomato paste and ½ tsp smoked paprika. Simmer this mixture in the pan for 3-4 minutes before adding the onions and cod.
The result is a jammy, slightly spicy base that clings to the fish like a glaze. Finish with a sprinkle of flaky sea salt for extra depth.
Creamy White Wine Sauce
After baking, deglaze the pan with ¼ cup heavy cream instead of butter. Add a splash of the baking liquid from the pan and reduce for 2 minutes until slightly thickened. This velvety sauce adds a luxurious touch while keeping the dish light.
I like to finish it with a pinch of nutmeg and a squeeze of lemon—this variation feels especially elegant for dinner parties. 🍷
Asian-Inspired Glaze
Infuse the dish with umami by adding 1 tbsp soy sauce and 1 tsp grated fresh ginger to the pan when sautéing the onions. Replace the white wine with ¼ cup dry sherry and finish with a drizzle of 1 tbsp honey and 1 tsp sesame oil after baking.
The sweet-savory glaze pairs beautifully with the cod, creating a fusion of Mediterranean and Asian flavors that’s both unexpected and delicious.
Lemon-Caper Brightness
Boost the dish with 2 tbsp chopped capers and an extra 1 tbsp lemon zest mixed into the tomato-onion base. The briny capers add a salty punch that cuts through the richness of the cod, while the zest enhances the citrus notes.
I also add ½ tsp red pepper flakes for a subtle kick. This variation is perfect for those who love bold, briny flavors with a touch of heat. 🌶️
Vegetable-Packed Version
For a heartier dish, add 1 cup sliced mushrooms and 1 zucchini (sliced into half-moons) to the pan when sautéing the onions. The mushrooms add an earthy depth, while the zucchini softens beautifully.
This version works well as a vegetarian main course if you replace the cod with extra-firm tofu or hearts of palm. The vegetables absorb the flavors of the herbs and wine, making them just as satisfying as the fish. 🥕
Nutrition facts
Frequently asked questions
Can I use frozen cod in this recipe?
Frozen cod works, but thaw it completely in the refrigerator overnight for best results. Pat it very dry before seasoning—any moisture will prevent crispy skin. If short on time, use the quick thaw method (sealed in a bag submerged in cold water), but drain thoroughly to avoid steaming the fish during baking.
What if I don't have white wine?
Use 2 tablespoons lemon juice plus 2 tablespoons water> to mimic the acidity, or substitute with ¼ cup dry vermouth. For a non-alcoholic version, add 1 extra tablespoon lemon juice> and ½ teaspoon white vinegar. The dish will still be bright and flavorful—just slightly more tangy.
How do I know when the cod is fully cooked?
The cod is done when it reaches an internal temperature of 145°F and flakes easily with a fork. The edges will turn opaque, and the skin should crisp slightly. Overcooking by even 1-2 minutes> can make it dry—trust your thermometer for precision!
Can I make this ahead of time?
Assemble the dish up to 24 hours> ahead, refrigerate uncovered, then bake straight from the fridge (add 5 minutes> to cooking time). For leftovers, store in an airtight container for 2 days>—the cod stays moist but best eaten fresh. Reheat gently in a 300°F> oven for 10 minutes> to maintain texture.
What's the best way to serve this dish?
Pair with crusty sourdough bread> to soak up the tomato-onion juices, or serve over steamed basmati rice> for a lighter option. A simple mixed greens salad**> with a light vinaigrette balances the richness. Garnish with extra lemon wedges and fresh parsley for a restaurant-worthy finish.