Back to Blog
Salaries
Country Guides
Market Analysis

Software Engineer Salary in Spain (2026): Madrid, Barcelona & Beckham Law

Spain national median is ~€47K. Google Madrid L5 pays €140K+ TC. Beckham Law drops tax to 24% flat for relocating engineers. Full 2026 breakdown by city, level, and company.

April 22, 2026
7 min read
Tech Jobs in Europe
Salary, Tax & Savings Data
Big Tech Jobs

Spain is one of Europe's most interesting software engineer markets because of a single policy: the Beckham Law (Régimen Especial de Trabajadores Desplazados) caps income tax at 24% flat for the first 6 years of residence, for qualifying skilled migrants. Combined with Madrid's growing big-tech presence (Google, Amazon, Microsoft, Meta) and Spain's very low cost of living relative to Northern Europe, the net take-home story is surprisingly strong.

This 2026 guide covers what software engineers actually earn in Spain, the Beckham Law opportunity, and which companies drive the top of the distribution.

Explore software engineering jobs in Spain →
Related: 6 Companies Paying €100k+ in Spain (2026) →


Key Takeaways

  • National median TC: ~€47,000 — the lowest in this trilogy, but cost of living is also significantly lower.
  • Madrid senior median: €55K–€75K at traditional Spanish employers, €80K–€140K+ at US big tech (Google, Amazon, Meta Madrid).
  • Google Madrid L5: €140K+ TC — at the top of the Spanish distribution.
  • Beckham Law: flat 24% tax on employment income up to €600K for the first 6 years.
  • Barcelona senior: €55K–€80K typical; fewer big-tech employers than Madrid.
  • Low cost of living: Madrid/Barcelona rents €1,000–€1,700/month for central 1-bed — well below Amsterdam/Dublin.

The National Numbers

Level / CityMedian baseMedian TCNotes
Entry€30K€32KNon-big-tech
Mid-level€45K€50KTypical
Senior (national)€60K€65KVaries by employer
Senior Madrid (US big tech)€90K–€110K€110K–€140KGoogle, Amazon, Meta
Staff Madrid (US big tech)€130K+€180K+Google L6, Amazon SDE III
Barcelona senior€60K–€75K€70K–€85KFewer big-tech

Data blends levels.fyi Spain, Glassdoor, and Spanish employer surveys (March 2026).


The Beckham Law: Spain's Hidden Advantage

The Beckham Law (formally Régimen Especial de Trabajadores Desplazados, article 93 of the Spanish income tax law) provides a flat 24% income tax rate for qualifying migrants for the first 6 years of Spanish residence.

Who qualifies (2026 rules)

  • You must have not been a Spanish tax resident in the previous 5 years
  • You must move to Spain for an employment contract with a Spanish employer (or remote work for a foreign employer since the 2023 startup law reforms)
  • You must apply within 6 months of your arrival

Tax math

Standard Spanish income tax is progressive, with marginal rates reaching ~47% at higher incomes (€300K+). Under Beckham:

Gross incomeStandard regimeBeckham LawSavings
€80K~€54K net€61K net+€7K/yr
€120K~€76K net€91K net+€15K/yr
€150K~€91K net€114K net+€23K/yr
€200K~€115K net€152K net+€37K/yr

Above €600K, the rate becomes 47% on the excess, but 24% still applies up to €600K.

Over the 6-year maximum: a senior engineer earning €150K saves approximately €138K in taxes vs standard regime. That's the most compelling tax break in the EU for relocating software engineers at middle-to-senior level.

The 2023 startup law (Ley de Fomento de Startups) extended Beckham to include digital nomads and remote workers for foreign employers — a huge expansion.


Top-Paying Companies in Spain (2026)

CompanyPrimary citySenior TC
GoogleMadrid€100K–€180K
Amazon / AWSMadrid€85K–€140K
MetaMadrid€110K–€200K (limited Spain hiring)
MicrosoftMadrid, Barcelona€85K–€130K
StripeMadrid€120K–€200K
AppleMadrid€90K–€130K
OracleMadrid, Málaga€70K–€105K
GlovoBarcelona€70K–€100K
CabifyMadrid€65K–€95K
CaixaBankBarcelona€55K–€80K
BBVAMadrid€55K–€80K

For full level tables and company-by-company breakdowns, see 6 Companies Paying €100k+ in Spain (2026).


Madrid vs Barcelona

Madrid dominates the Spanish tech distribution at the top:

  • US big tech offices are almost exclusively in Madrid: Google, Amazon, Meta, Apple, Microsoft, Stripe.
  • Barcelona has a stronger startup ecosystem (Glovo, Typeform, Factorial, Travelperk) but lower ceiling on individual comp.
  • Remote-first roles are increasingly common at both cities, but Madrid is still the default for big-tech-quality pay.

Cost of living gap is small — Barcelona is slightly cheaper on rent (€1,100–€1,500 for central 1-bed) vs Madrid (€1,200–€1,700), but groceries and dining are similar.

For more on Spanish cities for engineers, see Valencia software engineer guide and the Amsterdam/Brussels 2026 guides on /blog.


What You Take Home: €100K Gross in Spain

Standard regime (post-Beckham or non-qualifier, 2026):

  • €60K gross → €42K net
  • €80K gross → €54K net
  • €100K gross → €65K net
  • €150K gross → €91K net

Beckham Law (first 6 years, qualifying migrant):

  • €60K gross → €46K net (+€4K)
  • €80K gross → €61K net (+€7K)
  • €100K gross → €76K net (+€11K)
  • €150K gross → €114K net (+€23K)

Madrid/Barcelona cost of living is ~30–40% below Amsterdam or Dublin. A senior at €120K TC with Beckham treatment can realistically save €35K–€50K/year after all living costs — comparable to Dublin in absolute savings, and far better on lifestyle cost.


Spain vs Other European Markets

CountryMedian SWE TCTop-end TCBest net-of-tax advantage
Ireland€105,994€278K (Stripe senior)Highest gross
Netherlands€89,987€363K (Optiver L5)30% ruling + HFT tail
Germany€81,495€289K (Meta E5)Largest volume
Spain~€47K€180K (Google Madrid staff)Beckham Law 24% flat

Spain lags on gross TC but compensates with dramatically lower effective tax rate under Beckham Law and much lower cost of living. For engineers targeting net savings + quality of life rather than peak gross, Spain is a strong contender.


Frequently Asked Questions

What is the average software engineer salary in Spain in 2026?

The national median base salary is approximately €45K–€50K. Senior engineers at US big tech in Madrid (Google, Amazon, Meta, Stripe) earn €100K–€180K TC. Senior engineers at Spanish companies typically earn €55K–€80K.

What is the Beckham Law and how does it help software engineers?

The Beckham Law (Régimen Especial de Trabajadores Desplazados) provides a flat 24% income tax rate for the first 6 years of Spanish residence, for qualifying skilled migrants. You must not have been Spanish-tax-resident in the previous 5 years, must move for employment, and must apply within 6 months of arrival. For a senior earning €150K, it saves approximately €23K/year vs the standard regime — €138K over the 6-year window.

Which company pays software engineers the most in Spain?

Google Madrid leads for senior engineers: L5 TC is €140K+. Stripe Madrid is comparable at senior levels (€150K+ TC with equity). Amazon Madrid SDE III clears €110K–€140K. Meta Madrid has a smaller presence but pays at global Meta bands (€180K–€250K senior).

Do digital nomads / remote workers qualify for the Beckham Law?

Yes, since the 2023 Startup Law. Remote workers for foreign employers, and digital nomads registered in Spain, now qualify for Beckham Law treatment. This was a major expansion — previously only traditional employer-sponsored migrants qualified.

Is Madrid or Barcelona better for software engineering in Spain?

For top compensation, Madrid. All major US big-tech Spanish offices (Google, Amazon, Meta, Stripe, Apple, Microsoft) are Madrid-based. Barcelona has a stronger startup scene (Glovo, Typeform, Factorial) but lower ceiling on individual comp. Barcelona is slightly cheaper on rent.

Do I need a visa to work in Spain as a non-EU software engineer?

Yes, unless you're an EU citizen. Spain's Highly Qualified Professional visa (under the Ley de Emprendedores) has a threshold of approximately €40,000–€44,000/year for software engineers in 2026, 2–3 months processing. Digital Nomad visa (since 2023) is also available for remote workers. See our general relocating to Europe guide for context.


Next in the series: Visa Sponsorship in Spain for Software Engineers (2026) → · 6 Companies Paying €100k+ in Spain (2026) →


Explore Euro Top Tech

💼 Find Your Next Job

Browse 5,000+ high-paying tech jobs across Europe

View Jobs
📊 Compare Cities

Detailed salary, tax, and savings data for European cities

Explore Data
📚 Career Guides

Learn strategies to land top tech jobs and advance your career

Read Guides

Related Articles

Software Engineer Salary in France (2026): Paris, Datadog & the €100K Ceiling

Datadog Paris senior TC €120K–€160K. Google Paris L5 €120K–€170K. French national median base ~€55K, Paris senior €75K–€95K. Full 2026 breakdown with tax, equity, and company rankings.

Read Article
Software Engineer Salary in the Netherlands (2026): Amsterdam Pay Reality

Netherlands median TC is €89,987. Amsterdam senior TC hits €107,098. Optiver L5 pays €363K, Booking.com senior €120K–€155K, Uber €160K–€210K. Full 2026 breakdown with 30% ruling impact.

Read Article
Software Engineer Salary in the UK (2026): London, Jane Street & Big Tech Reality

Jane Street London new grads get £200K+. Google L5 hits £180K–£220K TC. National median is £67K, London senior £95K–£110K. Full 2026 UK software engineer salary breakdown.

Read Article