Skip to content
Portuguese kitchenBaked fish dish

Bacalhau à Gomes de Sá with potatoes, onion and egg

Make Porto’s Bacalhau à Gomes de Sá with milk-softened salt cod, potatoes, olive oil, onion, boiled egg, parsley and black olives.

Bacalhau à Gomes de Sá with milk-softened cod flakes, potato slices, golden onion, boiled egg, parsley and black olivesBacalhau à Gomes de Sá
4 servingsservings
25mpreparation
50mcooking
Mediumdifficulty

Bacalhau à Gomes de Sá: Porto’s cod and potato bake

Tender flakes of salt cod rest in hot milk before being layered with potatoes, onion and olive oil, then finished with boiled egg, parsley and black olives.

Bacalhau à Gomes de Sá is one of Porto’s named preparations of Portugal’s salt cod. It is associated with José Luís Gomes de Sá Júnior, a cod merchant born in Porto in 1851. The Codfish History Interpretation Centre identifies the dish with the Porto region and records a version for four people. Its defining method is practical and measured: desalted cod is flaked, softened in hot milk, and later combined with olive oil, garlic and onion. Potatoes make the dish substantial, while boiled egg, parsley and black olives finish it. The familiar name is retained because the recipe belongs to a specific Portuguese preparation rather than a generic cod casserole.

The hot-milk infusion is the distinctive step. After the cod has been desalted and briefly scalded, remove its skin and bones and separate it into broad flakes. Cover the fish with hot milk and let it rest. The milk softens the flakes and gives them a tender, mild texture before they meet the olive oil and onion. Sources vary on the length of this infusion: the interpretation centre gives a range from one and a half to three hours, while Porto Travel describes roughly an hour and a half to two hours. This practical version uses 90 minutes, the short end of the documented range, and counts it as passive time.

Salt cod needs advance handling. Buy pieces that have already been desalted, or follow the package instructions for soaking and changing the water; that long desalting is not included in the recipe’s 165 minutes. The fish should be ready to cook before the first step begins. A brief scald in boiling water loosens the flakes and makes it easier to remove remaining skin and bones. Work carefully through the flesh with your fingers, since a small pin bone can be difficult to see once the fish is layered with potatoes. Keep the cod in large flakes instead of shredding it finely; the layered dish should retain visible pieces.

The potato layer provides a soft, steady base for the fish. Boil floury potatoes in their skins until a knife enters the center easily, then cool them enough to peel and slice. Similar-sized potatoes finish at about the same time, and leaving the skins on during boiling helps them hold their shape. Slice them evenly so they form a neat layer without turning to mash. The oven time is short, so the potatoes need to be fully tender before assembly. If they are still firm in the middle, the final bake will not cook them through without overworking the cod.

Onion and garlic are cooked slowly in olive oil until soft and just lightly golden. The dish uses a generous amount of oil because it coats the potato and cod layers and carries the aromatic flavor through the bake. Keep the heat moderate; dark, browned garlic can taste bitter, and deeply browned onion would overpower the mild fish. Season the onions lightly, but taste the cod before adding salt. Salt cod can retain some salinity even after desalting, and black olives add more. Pepper is best used gently so it supports rather than masks the fish.

The ovenproof dish is assembled in layers rather than stirred together. Spread some onion and oil across the bottom, add potato and cod, then spoon the rest of the onion mixture over the top. Keep the flakes intact and let the oil reach the gaps between the layers. The traditional preparation is brief in a hot oven; the potatoes and cod are already cooked, so baking mainly heats the assembled dish and lets the flavors settle together. A shallow earthenware dish is suitable, but another ovenproof dish of similar capacity works if the ingredients fit without being packed too tightly.

Boiled egg, parsley and black olives are the finishing elements. Slice the eggs only after they are cool enough to handle so the whites stay neat and the yolks do not crumble. Scatter the parsley just before serving; its fresh herbal note contrasts with the soft, savory cod and oil. Whole small black olives can be placed around the dish, while larger olives are easier to serve when halved or pitted. Some versions arrange the egg before the oven, while others use it as a garnish. Adding it at the end keeps the slices visible and prevents the yolk from drying in the hot oven.

The 165-minute total includes 90 minutes of passive milk infusion. The active preparation and cooking can be organized around that wait: boil the potatoes and eggs while the cod rests, then soften the onion and assemble the dish. The recipe assumes the cod has already been desalted; that work can take much longer and varies with the thickness of the fish and the manufacturer’s guidance. Do not count it as part of the listed time or leave partially desalted fish at room temperature. Once cooked, serve the dish hot from its ovenproof dish, with the egg, olives and parsley distributed across the top.

For leftovers, transfer the cod and potatoes to shallow covered containers and refrigerate within two hours. Reheat only the portion needed until steaming hot throughout; the potatoes may soften further and the cod will be less delicate than when first baked. Do not leave the dish at room temperature while serving for an extended period. The short final bake is intentional: prolonged cooking can dry the fish and break the potato slices. These steps preserve the recipe’s Porto identity while making the timing and doneness cues clear for a home kitchen.

Ingredients, measured with care

Recipe card

Bacalhau à Gomes de Sá

servings4 servings
preparation: 25 mincooking: 50 mintotal time: 2 hr 45 min

Cod and potatoes

Aromatics

To finish

Cod infusion

Seasoning

Equipment

Method

20 min

Scald and flake the cod

Place the ready-desalted cod in a saucepan and cover it with freshly boiled water. Cover the pan and let it stand for 20 minutes. Drain, remove any skin and bones, and break the fish into broad, tender flakes.

90 min

Soften the cod in hot milk

Put the cod flakes in a deep bowl. Heat the milk until steaming, pour it over the fish, cover and leave for 90 minutes. This resting time softens the flakes; it is passive time, not active preparation. Drain the cod before assembling the bake.

20 min

Boil the potatoes and eggs

While the cod rests, boil the potatoes in their skins until a knife slips through the centers, about 20 minutes depending on size. In a separate pan, boil the eggs until firm, about 9 minutes. Drain and cool them enough to handle; peel the potatoes and eggs, then slice both.

15 min

Soften the onion and garlic

Warm the olive oil in a large skillet over medium-low heat. Add the sliced onion and garlic. Cook gently, stirring, until the onion is soft and just lightly golden, about 15 minutes. Season lightly with pepper; add salt only after tasting the cod.

10 min

Layer the cod and potatoes

Heat the oven to 220°C / 425°F. Spread a little of the onion and oil in an ovenproof dish. Add alternating layers of potato slices and cod flakes, spooning the remaining onion and oil over them. Keep the flakes intact and do not stir the dish into a stew.

10 min

Bake briefly and garnish

Bake for about 10 minutes, until the dish is hot throughout and the top is lightly golden. Remove from the oven. Scatter with chopped parsley and garnish with sliced boiled eggs and black olives. Serve hot from the baking dish.

Tips for success

01

Start with desalted cod

The package desalting directions require extra advance time that is not included in this recipe.

02

Keep the cod in broad flakes

Large pieces remain distinct through the milk infusion and brief oven bake.

03

Boil the potatoes until fully tender

The short oven stage heats the layers; it will not cook firm potato centers.

04

Taste before salting

Desalted cod and black olives may already contribute enough salt.

05

Bake only until hot

The cod is already cooked; a short bake helps avoid drying it out.

Recipe variations

The Porto source describes a longer hot-milk infusion of 90 minutes to 3 hours; this version uses the short end of that range to keep the planned total at 165 minutes.

Some recipes add the boiled eggs before baking; this version uses them as a garnish so their slices remain distinct.

A clay or earthenware dish suits the source preparation. Use another ovenproof dish of similar capacity if needed; the dish identity stays the same.

Common questions while cooking

ProblemWhat to do
The cod tastes too salty.It may need more desalting before cooking. Follow the product directions and taste before adding salt.
The potato slices break apart.Boil the potatoes only until tender, let them cool enough to handle, and slice them gently.
The fish is dry after baking.The oven stage is brief because the cod is already cooked. Remove the dish once it is hot throughout.

Substitutions

Original ingredientPractical substituteWhat changes
Earthenware baking dishA similar-capacity ovenproof ceramic dishThe dish material changes, but the layered bake method remains the same.

Storing and reheating Bacalhau à Gomes de Sá

The cod and potatoes are most delicate when freshly baked; refrigerate any leftovers promptly.

Refrigerate within two hours

Transfer leftovers to shallow covered containers and refrigerate within 2 hours.

Reheat only the portion needed

Reheat until steaming hot throughout; the potatoes may soften and the cod will be less delicate.

Avoid a long second bake

Extended heating can dry the fish and break the potato slices.

Frequently asked questions

Where does Bacalhau à Gomes de Sá come from?

It is associated with Porto and named for José Luís Gomes de Sá Júnior, a cod merchant born in the city in 1851.

Why is the cod rested in hot milk?

The milk softens the cod flakes before they are layered with potatoes, olive oil, garlic and onion. This recipe uses a 90-minute infusion.

Does the recipe time include desalting the cod?

No. Begin with cod that has already been desalted and is ready to cook; desalting time depends on the product and is not included.

Can I use a different oven dish?

Yes. Use an ovenproof dish of similar capacity. Keep the ingredients layered and avoid stirring them into a stew.