Side Dishes
This baked cod with tomatoes and onions recipe transforms simple ingredients into a restaurant-quality Mediterranean dish with minimal effort. The secret lies in the perfect balance of tender white fish, caramelized onions, and sweet tomatoes all baked together in one pan until golden and fragrant.
After years of testing different techniques, I've perfected a method that ensures the cod stays moist while the vegetables develop rich, sweet flavors.
The beauty of this recipe is its simplicity—just 15 minutes of prep followed by 20 minutes in a 375°F oven. You'll need fresh cod fillets, ripe tomatoes, and yellow onions, along with a few pantry staples like olive oil, garlic, and fresh herbs.
The dish delivers restaurant-quality results without requiring any special equipment or techniques, making it ideal for both weeknight dinners and special occasions.
What you'll achieve is a dish that's elegant yet effortless: flaky cod with tender, caramelized onions and juicy tomatoes all swimming in a light, herby sauce. The aromas alone will have everyone gathered around the table, and the first bite delivers that perfect combination of textures and flavors.
This is the kind of meal that makes Mediterranean cuisine feel accessible and delicious.
Serve with crusty bread to soak up the flavorful juices or pair with a simple green salad for a complete meal. The recipe scales easily, so you can adjust the portions to feed a crowd or just two. Let's get started on creating this foolproof Mediterranean masterpiece.
Ingredients for baked cod with tomatoes and onions
Fresh cod and seasonal vegetables combine for Mediterranean bistro bites with minimal prep.
| Ingredient | Amount | Notes |
|---|---|---|
| Cod Fillets 🐟 | 4 whole | Skin-on, 6-8 oz each |
| Yellow Onions 🧅 | 2 whole | Thinly sliced, 1/4-inch thick |
| Roma Tomatoes 🍅 | 4 whole | Halved lengthwise, seeds removed |
| Extra-Virgin Olive Oil 🫒 | ¼ cup | High quality, fruity variety |
| Garlic Cloves 🧄 | 4 cloves | Minced, not pre-minced |
| Fresh Lemon Juice 🍋 | ¼ cup | Freshly squeezed |
| Fresh Parsley 🌿 | ¼ cup | Chopped, flat-leaf preferred |
| Fresh Dill 🌿 | ⅛ cup | Chopped, stems removed |
| Kosher Salt 🧂 | 1 ½ tsp | Fine grain preferred |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly ground preferred |
| Dried Oregano 🍃 | 1 tsp | Mediterranean blend preferred |
| Crusty Bread 🍞 | 1 loaf | For serving, optional |
| Green Salad Mix 🥗 | 4 cups | For serving, optional |
The cod is the star, so look for fillets with skin still attached—it adds flavor and helps prevent curling. Whole Foods and local fish markets often carry the freshest cuts, but the seafood counter at any grocery store should have suitable options. For onions, yellow or red varieties work best—they caramelize beautifully. Roma tomatoes are ideal for their meaty texture, but any ripe vine-ripened tomatoes will do. The herbs matter too—fresh parsley and dill from the grocery store's produce section should be vibrant green and free of wilting. If you can't find fresh dill, dried dill at one-third the amount works in a pinch, though fresh is preferred for that bright Mediterranean flavor.
No fresh dill? Substitute with extra parsley or basil—it won't be identical, but it keeps the herby brightness. Running short on Roma tomatoes? Cherry tomatoes or grape tomatoes are great alternatives, though they'll release more juice. The olive oil should be extra-virgin and fruity—none of that cheap cooking oil. If you're missing the oregano, Italian seasoning works, but it's less authentic. For the lemon juice, bottled lemon juice is fine in a bind, but fresh is always better. The crusty bread is optional but recommended—a baguette or ciabatta from the bakery section will soak up the juices perfectly. If you're serving this as a main dish, the salad mix is purely for garnish and balance.
This dish reheats beautifully—just pop it in a 350°F oven for 10-12 minutes until warmed through. The cod stays moist when reheated this way, unlike some fish dishes that dry out. Store leftovers in an airtight container for up to 2 days in the fridge. The flavors actually deepen overnight, making it even more delicious for lunches. If you're prepping ahead, assemble the dish up to 24 hours in advance and refrigerate uncovered on a baking sheet—this helps the onions caramelize slightly before baking, adding extra depth of flavor. The bread and salad can be prepped separately and served alongside when ready.
Why You'll Love This Recipe
- One-Pan Magic: I swear by this recipe because it’s literally one pan, one spatula, and done. No chopping boards cluttering the kitchen—just slice those onions and tomatoes while the cod bakes, and the aromas fill your whole house. (Yes, even on a Tuesday night.)
- Caramelized Crunch: That sweet, jammy burst from the Roma tomatoes and onions? It’s the star. The olive oil coaxes out their natural sugars while the garlic cloves mellow into a fragrant, buttery depth—like a Mediterranean vacation in your oven.
- Weeknight Workhorse: Dinner for two or feeding a crowd? Double the cod and tomatoes, and it’s still effortless. I’ve served it at casual dinners, potlucks, and even as a side for date nights—always a hit, never a fuss.
- Budget-Friendly Luxury: Fresh cod might sound fancy, but this recipe stretches it like a pro. The onions and tomatoes bulk it up, and the olive oil and garlic make it feel indulgent without breaking the bank. Leftovers? Reheat them with crusty bread and a squeeze of lemon—magical every time.
Step-by-step instructions for Mediterranean baked cod
This one-pan method delivers perfectly flaky cod with vibrant Mediterranean flavors in under 30 minutes.
Prepare the Cod and Vegetables
Preheat your oven to 400°F while you prepare the ingredients. Pat the 4 whole cod fillets dry with paper towels—this ensures a crispy skin. Season each fillet generously with 1.5 teaspoons kosher salt and 0.5 teaspoon ground black pepper, dividing the amounts evenly.
In a large bowl, combine the 2 whole yellow onions sliced into ¼-inch thick rounds and the 4 whole roma tomatoes halved lengthwise with seeds removed. Drizzle with 0.25 cup extra-virgin olive oil and toss gently to coat. Sprinkle with the remaining 0.5 teaspoon ground black pepper and 1 teaspoon dried oregano, mixing just until combined. Set aside while you prepare the aromatics.
Build the Flavor Base
In a small bowl, finely mince the 4 cloves garlic using a sharp knife—this ensures even distribution of flavor. Add the 0.25 cup fresh lemon juice, 0.25 cup fresh parsley, and 0.125 cup fresh dill, stirring to create a bright, herby mixture. This combination balances the richness of the cod and adds a refreshing acidity that cuts through the dish.
Spread the onion-tomato mixture evenly in a large, oven-safe skillet or baking dish. Arrange the seasoned cod fillets skin-side down on top of the vegetables, slightly overlapping if needed. Spoon the garlic-herb mixture evenly over the cod, pressing down gently to help it adhere. The lemon juice will prevent the cod from drying out during baking.
Bake to Perfect Doneness
Transfer the skillet to the preheated oven and bake for 12-15 minutes, depending on the thickness of your cod fillets. You'll know they're done when the edges turn opaque and the skin begins to crisp slightly, while the internal temperature reaches 145°F at the thickest part. A toothpick inserted into the thickest fillet should slide in easily with minimal resistance.
During the last 2 minutes of baking, watch for the tomatoes to soften and the onions to caramelize slightly. This creates a sweet, jammy sauce that clings beautifully to the flaky cod. If the tomatoes aren't quite soft enough, you can broil the dish for an additional 1-2 minutes at the end, but keep a close eye to prevent burning.
Serve with Fresh Accompaniments
Remove the skillet from the oven and let the cod rest for 3-5 minutes before serving. This resting period allows the juices to redistribute, ensuring each bite remains moist and flavorful. Use a spatula to carefully transfer the cod fillets to serving plates, spooning the tomato-onion mixture and any pan juices over the top.
Serve immediately with slices of crusty bread for dipping into the rich sauce and a side of 4 cups green salad mix dressed lightly with additional fresh lemon juice and extra-virgin olive oil. The contrast of the crisp salad and warm cod creates a perfect Mediterranean dining experience that's both elegant and effortless.
Pro Tips For Making Baked Cod With Tomatoes And Onions
- PAT THE COD DRY: Wrap the fillets in paper towels and press hard for 10 seconds—this isn’t about looks, it’s about the crust. Damp fish steams instead of searing, and you’ll end up with sad, soggy edges. (Yes, even if you’re impatient like me.)
- CHAR THE ONIONS FIRST: Slice the onions thin, then cook them in olive oil over medium-high heat until the edges turn deep gold—about 5-6 minutes. This builds flavor before the tomatoes even hit the pan. I used to skip this, and the dish always tasted flat.
- HALVE THE TOMATOES LENGTHWISE: Cutting Roma tomatoes in half and squeezing them gently over the pan releases their juices without turning the sauce into a watery mess. Skip the chopping—this keeps the texture intact and the dish from turning mushy.
- BAKE AT 400°F UNTIL FLAKY: Don’t pull the cod out when it’s just opaque—wait until it flakes easily with a fork, usually 12-15 minutes. The internal temp should hit 145°F. I learned this the hard way when my first batch fell apart like wet cardboard.
Serving suggestions for this baked cod with tomatoes and onions
Crusty Bread Pairing
Serve your baked cod with a warm, crusty baguette or ciabatta to soak up every drop of that sweet tomato-onion sauce. I like to slice the bread into thick pieces and toast them lightly in the oven for 3-4 minutes at 375°F before serving.
The crunch contrasts beautifully with the tender cod, and it's a foolproof way to turn leftovers into a satisfying meal the next day. 🍞
Bright Green Salad
A simple Mediterranean-style salad balances the richness of the cod perfectly. Toss 4 cups mixed greens (like arugula and romaine) with 2 tbsp extra-virgin olive oil, 1 tbsp fresh lemon juice, ½ tsp Dijon mustard, and a pinch of flaky sea salt.
Top with thinly sliced cucumber and cherry tomatoes for extra freshness. The acidity cuts through the dish while adding a refreshing crunch.
Lemon-Aioli Dip
Elevate your meal with a quick lemon-aioli dip made from ½ cup mayonnaise, 1 tbsp fresh lemon juice, 1 minced garlic clove, and 1 tbsp chopped parsley.
Mix everything together and serve it alongside the cod for dipping bread or spooning over the fish. The bright, garlicky flavor complements the Mediterranean profile beautifully. 🍋
Wine Pairing Perfection
For a classic pairing, reach for a crisp Vermentino or Pinot Grigio from Italy—both wines have bright acidity that mirrors the lemon and herbs in the dish. If you prefer red, a light Chianti works well, but avoid heavy, oaky wines that might overpower the delicate cod.
I like to chill my white wine slightly before serving to enhance its refreshing qualities.
Garnish Like a Pro
Before serving, sprinkle the finished dish with an extra 1 tbsp chopped fresh dill and a drizzle of high-quality extra-virgin olive oil. A few lemon zest strips add a pop of color and bright citrus notes.
For a restaurant-worthy touch, I sometimes add a pinch of flaky Maldon salt right before plating—it adds a sophisticated finish that guests will notice immediately. ✨
Nutrition facts
Frequently asked questions
Why does my cod turn rubbery when baking?
Overcooking is the most common cause. Cod reaches perfect doneness at 145°F internal temperature—any higher makes it dry and rubbery. Use an instant-read thermometer to check the thickest part of the fillet. Also, avoid preheating the cod with the vegetables; bake it directly at 400°F for 12-15 minutes max.
Can I substitute white fish for cod?
Halibut, haddock, or mahi-mahi work beautifully with this recipe. Just adjust the cooking time—thicker fillets like halibut may need 1-2 extra minutes. Stick to the same 145°F internal temp guideline, as white fish all cook similarly. Avoid flaky fish like tilapia, which overcooks faster.
How do I make the onions extra sweet and caramelized?
For deeper caramelization, slice the onions thinner (1/8-inch) and spread them in a single layer on a baking sheet. Roast them uncovered at 400°F for 15 minutes before assembling the dish. This concentrates their natural sugars. Add a pinch of sugar (1/2 tsp) to the olive oil for extra sweetness if desired.
Is this dish kid-friendly?
Yes, but with a few tweaks! Remove the dill and reduce the lemon juice to 2 tablespoons to soften flavors. Cut the cod into smaller pieces and serve with buttered noodles or mashed potatoes. Kids often prefer milder versions of Mediterranean dishes—this one becomes a crowd-pleaser with simple adjustments.
Can I make this recipe ahead of time?
Assemble the dish (cod + veggies) up to 24 hours ahead and refrigerate uncovered on a baking sheet. This partial pre-cooking enhances the onion caramelization. Bake straight from the fridge at 400°F for 15-18 minutes, adding 2-3 minutes if needed. The flavors actually improve overnight!
