Our products
Bacalao Gratinado: 4 Recetas al Horno Irresistibles - Bacalalo

Cod Gratin: 4 Irresistible Oven Recipes

March 12, 2026Maria José Sáez Pastor⏱ 14 min de lectura

Summary: Baked gratin cod combines a juicy fillet with a golden, crispy crust that protects the fish from direct heat. In this guide, you'll find 4 complete recipes (with alioli, béchamel, vegetables, and cheese), a comparison of versions, key temperatures and cuts, the difference between gratin, confit, and roasted, and 12 frequently asked questions with detailed answers.

Why Gratin Cod

Gratin cod solves the most common problem when cooking fish in the oven: it drying out. The gratin layer, whether alioli, béchamel, or cheese, acts as a protective shield against direct heat, keeping the fish juicy and tender while the surface transforms into a golden, crispy, and intensely aromatic crust.

Furthermore, it's a very quick technique. Most versions require between 15 and 25 minutes in the oven, making them perfect dishes for weeknights when you want something tasty without too much fuss. Good quality desalted cod and a well-thought-out topping are all you need.

Gratin cod also allows you to prepare the dish in advance: assemble everything, refrigerate, and bake when guests arrive. This makes it a fantastic ally for dinner parties, as the golden crust presentation impresses without apparent effort. If you're looking for more ways to cook cod in the oven, our guide to cod with potatoes offers five complementary variations.

Which Cut to Choose for Gratin

Not all cod cuts work equally well under the broiler. The key is to look for thick fillets between 2.5 and 3.5 cm thick, as these can withstand the heat without drying out while the crust forms on top. Pieces that are too thin cook before the gratin browns, and those that are too thick require excessive time that can burn the surface.

The center cod loin is the ideal piece: it is compact, has a uniform thickness, and flakes into perfect layers when served. If you use salted cod, remember to desalt it correctly before gratinating, as excess salt would ruin any creamy topping.

Before placing the fillets in the baking dish, dry them very well with paper towels. Surface moisture prevents the topping from adhering and interferes with crust formation. A dry fillet at room temperature (take it out of the fridge 15 minutes beforehand) is the basis of a perfect gratin.

Cod Gratin with Alioli

The Mediterranean version par excellence. The alioli melts under the oven's heat and forms an absolutely irresistible garlic and olive oil crust, with that golden touch reminiscent of dishes from the Levantine coast.

Ingredients (4 servings)

  • 4 desalted cod fillets (about 200 g each)
  • 6 tablespoons homemade or good quality alioli
  • 3 tablespoons fine breadcrumbs
  • 1 tablespoon chopped fresh parsley
  • Extra virgin olive oil
  • Freshly ground black pepper

Step-by-step preparation

  1. Preheat the oven to 200 °C with top and bottom heat. Lightly grease a baking dish with olive oil.
  2. Place the cod fillets in the dish, well separated from each other. Season lightly with salt and pepper on top.
  3. Cover each fillet with a generous layer of alioli (about 1.5 tablespoons per piece), spreading it to the edges to seal the surface well.
  4. Sprinkle fine breadcrumbs and a little chopped parsley over the alioli.
  5. Bake in the upper-middle position of the oven for 15-18 minutes, until the alioli bubbles.
  6. Activate the broiler for the last 2-3 minutes to achieve the perfect golden crust. Watch constantly: the difference between golden and burnt is seconds.

Chef's tip: mix the alioli with a pinch of paprika from La Vera before spreading it. It gives a spectacular reddish color and a subtle smoky flavor that elevates the dish to another level.

Related Products from Bacalalo

Morro Extra Bacalao Desalado Limpio - 900g

Morro Extra Clean Desalted Cod - 900g

View product →

Cod Gratin with Béchamel

The creamiest and most comforting version, perfect for children and those who prefer mild flavors. The béchamel envelops the cod like a silky blanket and, when gratinéed, creates that golden, bubbly surface that no one can resist.

Ingredients (4 servings)

  • 4 desalted cod fillets
  • 30 g butter
  • 30 g wheat flour
  • 400 ml whole milk
  • 80 g grated Gruyère or Emmental cheese
  • Freshly grated nutmeg
  • Salt and white pepper

Step-by-step preparation

  1. Prepare the béchamel: melt the butter over medium heat, add the flour, and cook, stirring, for 2 minutes (the roux). Immediately add the cold milk, whisking constantly. Cook for 8-10 minutes until it thickens. Season with nutmeg, salt, and pepper.
  2. Potato base option: slice 2 medium potatoes thinly and cook them. Arrange them at the bottom of the greased dish to create a complete single dish.
  3. Place the cod fillets over the potatoes (or directly in the dish) and pour the hot béchamel over them, completely covering each piece.
  4. Sprinkle the grated cheese evenly over the béchamel.
  5. Bake at 200 °C for 20 minutes, until the cheese is golden and the béchamel bubbles at the sides.

Chef's tip: for a béchamel with more depth, infuse the milk beforehand with a bay leaf, half an onion, and a few peppercorns for 10 minutes. Strain before use.

Cod Gratin with Vegetables

The most nutritionally balanced version: a complete dish where sautéed vegetables form the base, cod provides the protein, and the tomato and Parmesan gratin seals everything with Mediterranean flavor. This recipe works well for both everyday meals and casual dinners.

Ingredients (4 servings)

  • 4 desalted cod fillets
  • 1 medium zucchini, thinly sliced
  • 1 large onion, sliced into rings
  • 1 red bell pepper, cut into strips
  • 2 ripe tomatoes, grated
  • 50 g grated Parmesan cheese
  • 3 tablespoons breadcrumbs
  • Olive oil, black olives, capers (optional)

Step-by-step preparation

  1. Sauté the vegetables: in a large pan with olive oil, cook the zucchini, onion, and bell pepper over medium-high heat for 8 minutes. They should be tender but still have some texture.
  2. Assemble the dish: spread the sautéed vegetables in the bottom of a baking dish. If desired, add black olives and capers.
  3. Place the cod fillets over the bed of vegetables.
  4. Cover with grated tomato, a generous drizzle of olive oil, and the breadcrumb-Parmesan mixture.
  5. Bake at 190 °C for 20 minutes, until the Parmesan is golden and crispy.

Chef's tip: add a few slices of confit garlic between the vegetables and the cod. They will melt during cooking and provide a subtle sweetness that contrasts with the saltiness of the cheese.

Cod Gratin with Cheese

The most indulgent and straightforward version: melted cheese over juicy cod, with no other pretensions than to enjoy that contrast between the tender flesh of the fish and the elastic, golden, and slightly toasted layer of cheese gratin. It's the dish that's most successful among cheese lovers.

Ingredients (4 servings)

  • 4 desalted cod fillets
  • 100 g grated mozzarella
  • 50 g grated Parmesan
  • 50 g grated Emmental
  • 100 ml liquid cream for cooking
  • Herbes de Provence
  • Freshly ground black pepper

Step-by-step preparation

  1. Preheat the oven to 200 °C. Grease the dish.
  2. Place the fillets in the dish and pour the liquid cream over them, which should cover the bottom (acting as a moisture cushion).
  3. Mix the three cheeses in a bowl. Cover each cod fillet with a generous layer of the mixture.
  4. Sprinkle Herbes de Provence and black pepper over the cheese.
  5. Bake for 15 minutes at 200 °C and finish with 3 minutes under the grill to melt and brown the cheese.

Chef's tip: avoid very strong cheeses like Roquefort or Cabrales, as their potency can overpower the delicate flavor of the cod. The mixture of mozzarella (melts well), Parmesan (intense flavor), and Emmental (makes strings) is the ideal combination.

Comparison of the 4 Versions

Each version has its personality and its moment. This table will help you decide which one to prepare according to the occasion, available time, and your guests' tastes.

Version Crust Base Total Time Difficulty Best for
With alioli Alioli + breadcrumbs 20 min Very easy Quick dinners, Mediterranean
With béchamel Béchamel + grated cheese 35 min Easy Children, comfort food
With vegetables Tomato + Parmesan + bread 30 min Easy One-dish meal, balanced
With cheese 3 cheeses mix + cream 20 min Very easy Cheese lovers, indulgent

Oven Temperatures and Times

Temperature control is what separates a perfect gratin from one that is burnt on the outside and raw on the inside. The general rule is simple: hot oven (190-200 °C) with top and bottom heat, and broiler only at the end. The bottom heat cooks the cod from below, while the top heat gradually forms the crust.

For fillets 2 cm thick, 15-18 minutes at 200 °C is sufficient. Thicker fillets (3-3.5 cm) need 20-22 minutes, preferably at 190 °C to allow heat to penetrate to the center without burning the surface. In both cases, the final 2-3 minutes under the broiler are what turn a good gratin into a spectacular one.

A reliable indicator that the cod is perfectly cooked: the flesh begins to flake when you press lightly with a fork, and the crust has a uniform golden color with some bubbles on the surface. If you notice the crust browning too quickly, cover the dish with aluminum foil and remove it for the last 5 minutes.

Gratin vs. Confit vs. Baked

These three oven techniques produce very different results. Understanding the differences will help you choose the most suitable one depending on the result you are looking for and the time available.

Characteristic Gratin Confit Baked (roasted)
Temperature 190-200 °C 80-90 °C 180-200 °C
Time 15-25 min 25-40 min 15-20 min
Topping Alioli, béchamel, cheese Submerged in oil No topping or light
Outer texture Golden, crispy crust Soft and silky Slightly dry
Inner texture Juicy (protected) Very juicy, gelatinous Variable, risk of dryness
Difficulty Easy Medium (temperature control) Easy
Best for Everyday, guests Signature dishes, pil pil Quick, no fuss

Gratin offers the best balance of ease, time, and results: juicier than simple roasting and much faster than confit. For recipes that use these three techniques, consult our guide to desalted cod recipes.

Keys to the perfect gratin

  • Always preheat oven: cod should enter an already hot oven so that the crust begins to form from the first minute. Putting the dish in a cold oven produces an uneven result and can dry out the fish.
  • Oven position: place the dish in the middle-upper part, closer to the grill. This way, the surface receives direct heat to brown while the oven's heat cooks the cod evenly from below.
  • Do not overcook: 15-22 minutes is the range for almost all versions. Cod cooks quickly, and every extra minute reduces juiciness. It's better to take it out a little early: the residual heat from the dish will finish cooking.
  • Fine breadcrumbs for texture: breadcrumbs add crispiness without overpowering the flavor of the topping. Japanese panko works especially well because it creates a lighter, crispier texture than traditional breadcrumbs.
  • The final grill blast: the last 2-3 minutes under the grill are what transform the dish. They brown the surface without overcooking the inside. Watch constantly: the transition between perfectly golden and burnt is a matter of seconds.
  • Brief rest: let the dish rest for 3 minutes before serving. The juices redistribute and the crust sets, making plating easier.

🛒 Products mentioned in this article

Extra Desalted Cod Cheek — 900g

Gadus morhua from Iceland

€44.90

View product →

"Discover Bacalalo" Assortment

The pack for first purchase

€19.90

View product →

View desalted cod →

⭐ 4.9/5 · Cold shipping 24-48h · Since 1990 at Mercat del Ninot

Frequently Asked Questions

What cut of cod is best for gratin?

Central loins between 2.5 and 3.5 cm thick are the ideal choice. They have a uniform thickness that allows for even cooking, and their compact structure holds up well to heat without falling apart. Avoid tails or very thin pieces, as they dry out before the crust forms properly.

Can the dish be prepared in advance?

Yes, and in fact, it's one of the great advantages of gratin. Assemble the complete dish with the cod and topping, cover it with plastic wrap, and refrigerate for up to 8 hours. Take it out of the fridge 15-20 minutes before baking to allow it to warm up slightly. It may need an additional 3-5 minutes in the oven when starting from a lower temperature.

Can frozen cod be gratinated directly?

It is not recommended. Frozen cod releases a lot of water when heated, which prevents the topping from adhering and dilutes the gratin's flavors. Thaw it completely in the refrigerator for 12-24 hours, drain it, and pat it very dry with paper towels before assembling the dish.

How much exact time does each version need in the oven?

The alioli and cheese versions are the fastest: 15-18 minutes at 200 °C plus 2-3 minutes under the grill. The vegetable version needs 20 minutes at 190 °C because the base vegetables require a bit more time. The béchamel version usually requires 20 minutes at 200 °C for the sauce to bubble and the cheese to brown well on top.

Can I gratin other fish with these recipes?

Absolutely. All these techniques work with hake, monkfish, sea bass, gilthead bream, and even salmon. Oven time may vary depending on the thickness of each fish: thinner pieces like sea bass need 3-5 minutes less, while denser monkfish may require a couple of additional minutes.

Is it necessary to desalt the cod before gratinating?

If you use desalted cod, it's ready to cook directly. If you start with salted cod, it's essential to desalt it correctly beforehand. Excess salt not only ruins the dish's flavor but also interferes with the texture of toppings like béchamel or alioli.

What garnish pairs best with gratin cod?

A fresh green salad with a lemon vinaigrette is the perfect counterpoint to balance the richness of the gratin. Roasted or boiled potatoes also work very well, especially with the alioli version. For the vegetable version, which is already a complete dish, just a good bread for dipping in the juices of the dish is enough.

Can gratin cod be reheated?

Yes, although the texture of the crust will never be exactly the same as freshly made. Reheat at 180 °C for 8-10 minutes for the surface to regain some crispiness. Avoid the microwave: it softens the crust and can dry out the cod. Another option is to briefly gratin with the grill for 3-4 minutes to revive the surface.

How many calories are in a serving of gratin cod?

It depends on the version. The lightest is the vegetable one, with approximately 320-350 kcal per serving. The alioli one is around 380-420 kcal, the béchamel one about 400-450 kcal, and the cheese one is the most caloric with 420-480 kcal. In all versions, cod protein is the main component, making them nutritious options despite the calories.

What is the difference between gratinating and gratinating with a grill?

Gratinating generally means cooking with strong heat from above to brown the surface. The grill (or broiler) is the oven's top heating element at maximum power, and it is used only at the end to give that intense heat blast that creates the crispy crust in a few minutes. Ideally, cook with top and bottom heat, and activate the grill only for the last 2-3 minutes.

Can I use fresh cod instead of salted for gratin?

You can, but the result is different. Salted cod (once desalted) has more flavor, a firmer texture, and the natural gelatin that develops during salting, which gives it a characteristic juiciness. Fresh cod is milder and more delicate, and tends to fall apart more easily. If using fresh, reduce oven time by 3-4 minutes.

How do I know when the gratin cod is done?

There are three clear signs: the crust has a uniform golden color with some bubbles, the edges of the dish show juices starting to bubble, and when you gently press the center of the loin with a fork, the meat separates into white, opaque flakes. If the meat is still translucent in the center, it needs 2-3 more minutes in the oven.


Related Guides

Perfect gratin starts with good cod. Discover our premium desalted cod loins and our premium salted cod at Bacalalo.

Salted cod

Lo que cierra una receta

Salted cod

El detalle que separa un plato de un buen plato.

Ver selección
Maria José Sáez Pastor

Maria José Sáez Pastor

Kitchen & Sea Recipes

Expert in cooking and seafood recipes. Passionate about Mediterranean cuisine, she develops and adapts traditional and creative recipes with cod, anchovies, seafood, and gourmet preserves.

Know our story →
Product listYou can see the products we have in our store.
Surtido "Pulpo & Bacalao" - envase y embalaje premium
Filetes de anchoa del Cantábrico "00" Premium - detalle del producto
Regular priceFrom 38,90 € Unit price77,80 € / kg
Rating: 4.8 out of 5
Cantabrian Anchovies "0" Gourmet Selection
Default Title
Morro Extra de Bacalao Desalado Limpio (2ud) - 500g - detalle del producto
Regular price 24,97 € Sale price25,95 € Unit price49,94 € / kg
Rating: 5.0 out of 5
Extra Clean Desalted Cod Snouts (2 units) - 500g
-4%
30gr
Caviar Beluga Iraní 000 Calidad Premium - detalle del producto
Regular priceOn Sale from 90,00 €
No reviews
Imperial Iranian Beluga Caviar 00
Up to -42%
Default Title
Lomitos de Bacalao Desalado Limpio (2ud) - 500g - detalle del producto
Regular price 21,45 € Sale price22,95 € Unit price42,90 € / kg
Rating: 5.0 out of 5
Cleaned Desalted Cod Loins (2 units) - 500g
-7%

Related articles