Bacalhau à Gomes de Sá: Portuguese Salt Cod Casserole Recipe
This article contains affiliate links. We may receive compensation if you make a purchase using one of these links at no additional cost to you. See our Disclaimers and Terms of Use for more information.

Bacalhau à Gomes de Sá, a casserole of caramelized onions, potatoes and salt cod (i.e., bacalhau), is one of our favorite Portuguese dishes. It’s a simple construction of sweet onion, earthy potatoes and funky salt cod that works in a comfort food kind of way.
It’s a dish we’re always happy to see on prato do dia blackboard menus in Lisbon and Porto. Literally translating to daily plate, a prato do dia is a daily special offered by restaurants all over Portugal. Sometimes the dish features fresh fish, other times it’s a stew like cozido à portuguesa or octopus on Fridays. And, of course, dishes made with bacalhau.
🍽️ This Recipe at a Glance
- Main Ingredients: Salt cod, potatoes and onions
- Toppings: Hard-boiled eggs, black olives and parsley
- Soaking Time: 2 to 4 days, changing the water at least 3 to 4 times
- Cooking Time: About 1 hour
- Oven: 450°F/230°C for 8 to 10 minutes
- Servings: 4
- Flavor: Sweet onions, earthy potatoes and funky cod
- Origin: Porto, late 19th century
- Best For: Weekend dinners (start soaking midweek)

Bacalhau à Gomes de Sá is named after its creator, José Luís Gomes de Sá Júnior, a salt cod merchant who worked on Porto’s riverfront in the late 1800s. Legend has it that he sold the recipe to his friend João, a cook at the now-closed Restaurante Lisbonense. We can’t vouch for every detail, but we’re fairly certain that Gomes de Sá liked potatoes and onions as much as we do.
Regardless of the dish’s origin story, there’s no debate that the rustic casserole is central to the Portuguese cooking canon. Now it’s part of our culinary repertoire too. It’s a great dish to serve at Portuguese Christmas Eve dinners and Easter meals as well as on random Sundays.
Ingredients

The list of ingredients in this bacalhau à Gomes de Sá recipe is simple. Here’s everything you need:
Ingredient quantities are detailed in the printable recipe card below.
How to Soak Salt Cod

Salt cod is a food product with a learning curve. It’s a process to understand how to soak and desalinate the preserved fish. Portuguese people often soak bacalhau for 36 hours, changing the water three to four times. It’s important to remember that soaking bacalhau isn’t just about desalinization. It’s also about rehydration.
We soak our bacalhau in the refrigerator for at least two days, optimally for three to four days and up to a week maximum. (There’s enough salt in the fish to repel bacteria for a long time.) This duration gives the fish time to increase in size and become both plump and tender. Also, we change the water at least three to four times during the soaking process so that the fish isn’t bracingly salty.
Pro Tip
Change the water once a day if you choose to soak your bacalhau for longer than three days.
How To Make Bacalhau à Gomes de Sá

This bacalhau à Gomes de Sá recipe is relatively simple and only takes an hour once you pre-soak the salt cod.
Start by cooking the onions in the olive oil with a pinch of salt and pepper over a medium-low fire, stirring frequently. While the onions cook, boil the peeled potato slices in salted water with the bay leaf, white peppercorns and garlic until the potato slices are just tender in the center. You don’t want them to be mushy. At the same time, preheat your oven to 450°F/230°C.
boil the peeled potato slices in salted water with the bay leaf, white peppercorns and garlic.

Next, move the salt cod, bay leaf, white peppercorns and garlic clove to a small pot and cook for four to five minutes in water just under boiling. Don’t let the water boil. You’re essentially poaching the fish.
Pro Tip
After a couple of tests, we’ve found that the salt cod is best if it’s just cooked for a few minutes at moderate, slightly below boiling temperature. If it’s overcooked, bacalhau can become tough and bitter.
Once the fish is cooked, remove it from the heat and separate the meat from the bones and skin. (You can discard the bones and skin.) Be careful not to over-mix the salt cod as the goal here is large flakes.

The onions take about 35 to 45 minutes to turn golden, tender and slightly caramelized. Add the garlic in the last three minutes of cooking and cook it until fragrant. You don’t want the garlic to get too brown and burn.

Build the casserole level by level. Start by layering half of the onions, followed by the potatoes, salt cod and, finally, the other half of the onions.
Cook the casserole in the oven for eight to ten minutes or until the top of the dish just starts to brown.
Remove the casserole from the oven. Top with hard-boiled eggs, black olives and chopped parsley in an artistic pattern.

Serve and enjoy!

Bacalhau à Gomes de Sá Recipe
Ingredients
- 1 pound bacalhau loin
- 1 pound red or Yukon gold potatoes (peeled and sliced into about 1/3-inch rounds)
- 2 large onions (sliced about ¼-inch thin, about 1 ¼ pounds after slicing)
- 4 cloves garlic (3 minced, 1 whole and peeled)
- ½ cup olive oil
- 1 bay leaf
- 1 tablespoon parsley (chopped for garnish)
- 3 eggs (hard boiled; halved or sliced)
- 10 white peppercorns (whole)
- 8 black olives (pitted for garnish)
- 2 tablespoons salt (for boiling the potatoes)
- salt (to taste)
- pepper (to taste)
Equipment
Instructions
- Preheat your oven to 450°F/230°C.
- Heat the olive oil in a sauté or frying pan over a medium-low fire and add the onions. Cook the onions, stirring frequently, until they’re golden. (Cook the potatoes and cod while the onions are caramelizing. If the eggs aren't already boiled, you can boil them too.) Add the chopped garlic in the last three minutes of cooking the onions. Cook the garlic until just fragrant. The onions should be done in about 35 to 45 minutes. Once the onions are cooked, remove them from the heat and set aside for the casserole assembly.
- While the onions cook, bring water to a boil with the salt, bay leaf, white peppercorns and whole garlic clove in a 4-quart saucepan. Add the potatoes and boil for about 8 to 10 minutes until just tender. Remove the potatoes with a slotted spoon.
- Place water in a 2-quart saucepan and add the salt cod, the same bay leaf, the white peppercorns and the same garlic clove. Place over a medium fire and cook for four to five minutes at just under a boil until the cod is flaky.
- Remove the cod from the water and separate the flesh from the bones and skin. Discard the bones and skin. Set the flaked salt cod aside.
- Build the casserole in an ovenproof round or rectangular baking dish. Layer half of the onions first, followed by the potatoes, salt cod and then the remaining onions. Add a small dash of salt and pepper to taste.
- Place in the oven and cook for about 8 to 10 minutes until it's lightly caramelized on top.
- Remove the baking dish from the oven. Garnish with black olives, the hard-boiled eggs and chopped parsley.
Notes
Nutrition
💡 Frequently Asked Questions
Bacalhau à Gomes de Sá is a Portuguese casserole made with flaked salt cod, sliced potatoes and onions cooked slowly in olive oil. It’s baked briefly, then topped with hard-boiled eggs, black olives and parsley.
The dish is named after José Luís Gomes de Sá Júnior, a Porto salt cod merchant who lived from 1851 to 1926. He sold the recipe to his friend João, a cook at the now-closed Restaurante Lisbonense in Porto.
Our recipe calls for salt cod loin, potatoes, onions, garlic, olive oil, hard-boiled eggs, black olives, parsley, a bay leaf, white peppercorns, salt and pepper. Quantities are in the recipe card.
We soak our bacalhau in the refrigerator for at least two days and ideally three to four, changing the water at least three to four times. The soak removes salt and also plumps up the fish.
The original recipe involves soaking flaked cod in hot milk for an hour or two before assembly. We skip the milk and poach the cod in water with garlic, bay leaf and white peppercorns. You can soak your cod in milk if you want softer, richer cod.
Both Portuguese dishes combine salt cod, onions and potatoes. Bacalhau à Gomes de Sá layers boiled potato slices and flaked cod in a baked casserole. Bacalhau à Brás combines shredded cod with fried matchstick potatoes and soft scrambled eggs in a pan.
Portugalia Marketplace in Fall River, Massachusetts sells salt cod loins. Since unsoaked loins keep for months, you can stock up for multiple bacalhau recipes.
🇵🇹 More Portuguese Recipes
📍 Pin This Recipe


⚙️ Disclosures
Article Updates
We update our articles regularly. Some updates are major, while others are minor link changes and spelling corrections. Let us know if you see anything that needs to be updated in this article.
Funding
We purchased the ingredients and tools used to create this recipe.











