Machine Learning Engineer salary: Barcelona vs San Francisco (2026)

San Francisco pays Machine Learning Engineers 292% more than Barcelona at the mid-level band — a median of $220k vs €56k.

Estimates based on public benchmarks and modelled data. How we calculate →

Median salary gap
292%
San Francisco wins by $164k/yr at mid-level
2026 · Gross annual base

Barcelona

Median (mid-level)
€56k
Typical range (p25–p75)
€44k€70k
Senior median
€82k
Junior median
€31k

San Francisco

Higher pay
Median (mid-level)
$220k
Typical range (p25–p75)
$171k$286k
Senior median
$348k
Junior median
$123k

Barcelona vs San Francisco — the verdict

San Francisco pays Machine Learning Engineers a median of $220k per year, around 292% more than Barcelona's €56k. That's roughly $164k of additional gross base pay every year for the same role at the mid-level band.

The premium narrows once you factor in cost of living, tax, and housing. Barcelona often delivers stronger real purchasing power, especially for early-career professionals — and the local market is typically less competitive.

Use the CompVerdict offer checker below to test a specific offer against either city's market. A strong offer sits above the p75; a fair offer lands near the median; below p25 there's a clear case to negotiate.

Machine Learning Engineer salary by experience band

BandBarcelonaSan FranciscoGap
Junior€31k$123k293%
Mid-level€56k$220k292%
Senior€82k$348k326%

Medians shown. Gap is computed against the lower-paying city at each band.

Got an offer in either city?

Knowing the gap is step one. The real question is where your specific offer sits within Barcelona's or San Francisco's range. If your offer is in the bottom 30% for the role and city, there's a strong case to push back.

Use the CompVerdict tool to get your verdict instantly. No signup. You'll also get a ready-to-send negotiation script based on the local market.

Check an offer →

Frequently asked questions

Which city pays more for Machine Learning Engineers — Barcelona or San Francisco?

+

San Francisco pays more. The median Machine Learning Engineer salary in San Francisco is $220k vs €56k in Barcelona — a 292% gap at the mid-level band. Barcelona median is €56k; San Francisco median is $220k.

What's the salary gap between Barcelona and San Francisco for Machine Learning Engineers?

+

At the mid-level (3–5 years experience) band, San Francisco pays 292% more than Barcelona for Machine Learning Engineers. The absolute difference is roughly $164k per year on the median. Junior and senior bands shift the gap slightly, but the direction is consistent.

Which is better for senior Machine Learning Engineers — Barcelona or San Francisco?

+

Senior Machine Learning Engineers earn $348k median in San Francisco vs €82k in Barcelona. San Francisco maintains its lead at the senior band, often widening as total comp (equity, bonus) compounds with seniority. Barcelona can still close the gap when you adjust for cost of living.

Are Barcelona and San Francisco salaries cost-of-living adjusted?

+

No — these are gross annual base salary figures. San Francisco typically has higher living costs alongside its higher pay. To see how either salary translates into rent affordability, use SpendVerdict; for savings potential, use PathVerdict. The headline gap of 292% narrows significantly once you adjust for housing, tax, and lifestyle costs.

Salary estimates are based on public benchmarks and modelled data. They represent gross annual base salary and do not include bonuses, equity, or benefits. Read our methodology →