Market intelligence
Buying Property in Spain as a Foreigner: How Your Tax Residency Status Changes Everything
Before you compare a single Project, settle one question, because it reorganises every tax obligation that follows: are you a Spanish tax resident or not?
Global Property Compass Research
- Published
- Methodology
- How this was researched →

Contents (9)
- The question that decides everything: are you a Spanish tax resident?
- If you stay non-resident: how Spain taxes the property you own
- The obligation most foreign buyers miss: you may become a withholding agent
- If you cross into tax residency: worldwide income and the wealth dimension
- Moving to Spain to buy and live: the special regime for inbound workers
- When you sell: capital gains and the exemptions that may apply
- A status-based checklist, and where this Guide stops
- Sources
- Related GPC intelligence
Before you compare a single Project, settle one question, because it reorganises every tax obligation that follows: are you a Spanish tax resident or not? Under Article 6 of the Non-Resident Income Tax Law (Law IRNR), an individual is treated as habitually resident in Spain when, among other circumstances, they remain in Spain for more than 183 days during the calendar year. That single line of law is the fork in the road. A Spanish tax resident is a taxpayer for Personal Income Tax (IRPF) and pays tax in Spain on their worldwide income. A non-resident is taxed under a different regime — and on Spanish real estate specifically.
This Guide maps, from the Spanish Tax Agency's own published material, which duties attach to a foreign buyer and owner in each status. It also states plainly where those sources stop, because several things a buyer would reasonably want — the purchase transaction itself, transfer-tax and VAT rates, current market statistics — are not covered by the materials reviewed here, and inventing them would be worse than naming the gap.
The question that decides everything: are you a Spanish tax resident?
Spanish internal law sets out when an individual is deemed to have their habitual residence in the country. The best-known trigger is presence: staying in Spain for more than 183 days during the calendar year. In counting that period, temporary stays tied to free-of-charge cultural or humanitarian collaboration agreements with the Spanish public administrations are not taken into account.
Presence is not the only route. The Tax Agency's material on residents with foreign income also references situating the main base or centre of one's activities or economic interests, directly or indirectly, in Spain, and a presumption tied to a non-legally-separated spouse and/or underage children who are usually resident in Spain.
Why does this matter so much? Because the answer determines the tax architecture that applies to you:
- If you are a tax resident, you are an IRPF taxpayer and must declare your worldwide income in Spain.
- If you are a non-resident, Spain taxes you on your Spanish real estate under the non-resident regime, whether or not you hold a permanent establishment.
How rental income is treated, how a future sale is taxed, whether a wealth dimension appears, which forms you file — all of it follows from this classification.
If you stay non-resident: how Spain taxes the property you own
The Tax Agency addresses non-resident real estate owners directly, and it distinguishes two situations: the non-resident with a permanent establishment in Spain and the non-resident without one. The published page frames this as the starting point for understanding how a non-resident's real estate is taxed.
Here is where honesty about scope matters. Among the official materials reviewed for this Guide, GPC did not locate the specific non-resident income-tax rate tables, the imputed-income calculation for a property kept for personal use, or the treatment of rental income figures within the supplied source set as of the research date. The sources confirm that non-resident real estate is taxed and that the with/without permanent establishment distinction governs how — but the numerical rates themselves are not present in the pack, and this Guide will not supply figures its sources do not contain.
The obligation most foreign buyers miss: you may become a withholding agent
This is the point consumer guides most often omit, and it is a buyer-side duty, not a seller's problem.
When you purchase real estate located in Spain from a non-resident seller who has no permanent establishment, you — the purchaser, resident or non-resident, individual or company — are the party who must report and pay a withholding, using Model 211. In other words, the act of buying can make you a withholding agent on behalf of the Spanish state.
The consequence of ignoring it is pointed: if this withholding is not paid, the property itself becomes subject to payment of the lesser of the withholding amount or the corresponding tax. The liability, in effect, attaches to the asset you just bought. After payment, the purchaser hands the seller the "copy for the non-resident transferor," which the seller uses to justify the payment on account when they self-assess the income from the transfer, and keeps the "copy for the purchaser".
The practical takeaway: establishing whether your seller is a non-resident is not a formality. It can convert you from buyer into filer.
If you cross into tax residency: worldwide income and the wealth dimension
Once you are a Spanish tax resident, the scope of what you declare widens to your worldwide income. If some of that income comes from a country with which Spain has signed a double taxation agreement, you must look to that agreement to determine which authority has taxing rights and what relief applies. In general, in a double-taxation situation, it falls to Spain as the country of residence to apply relief, which normally takes the form of a deduction. The Tax Agency publishes country-specific brochures illustrating this for residents with foreign income — for example, for income from the United States and from Germany.
There is also a wealth dimension for residents. The Wealth Tax (Impuesto sobre el Patrimonio) material records a notable election: residents in Spanish territory who take up residence in another country may choose to continue paying this personal tax in Spain on all the assets and rights of economic content they own as of 31 December, regardless of where those are located. The same option is recorded as available to certain taxpayers who ceased to be resident during the years the tax was eliminated (2008 to 2010 inclusive) and had opted at the time to continue paying in Spain.
GPC's review of the supplied sources did not locate the Wealth Tax rate scale, the exempt thresholds, or the specific rules for how a non-resident owner's Spanish property is valued for any wealth charge, as of the research date. The election described above is documented; the surrounding numbers are not in the pack, and are not stated here.
Moving to Spain to buy and live: the special regime for inbound workers
If your plan is to relocate to Spain, there is a distinct scenario worth knowing exists. Individuals who acquire Spanish tax residency as a result of moving to Spanish territory may choose to pay taxes under the IRNR while keeping their status as personal income tax taxpayers, provided certain conditions are met — filed via Model 151.
One core condition stands out: they must not have been resident in Spain during the five tax periods prior to the one in which they move. The material also ties eligibility to the initiation of an employment relationship (ordinary, special or statutory) with an employer in Spain, or a transfer ordered by the employer with a corresponding letter of transfer.
This is described here as one route that exists in the rules, not as a recommendation. Whether it fits any individual depends on facts this Guide cannot assess.
When you sell: capital gains and the exemptions that may apply
A future sale brings capital gains from the transfer of Spanish real estate into view. The Tax Agency describes a partial exemption in this context, along with clear exclusions from it.
That partial exemption does not apply where the property was acquired from, or transferred to, a related party — for individuals, a spouse or a person related by straight-line or collateral kinship, consanguinity or affinity up to the second degree inclusive, or a company associated with the taxpayer. For companies, the exclusion covers acquisition from or transfer to a person or company associated through the circumstances in Article 42 of the Commercial Code, regardless of residence, or to the spouse of such a person.
Separately, the sources describe relief for a habitual residence: capital gains obtained from the transfer of what was your habitual residence in Spain may be excluded from taxation, provided the total amount obtained from the transfer is reinvested — with conditions and an EU/EEA dimension referenced in Annex V of the Tax Agency's manual.
The exact reinvestment mechanics, timeframes and the full text of the reinvestment condition are only partially reproduced in the sources reviewed; where the pack cuts off, this Guide does not fill in the remainder.
A status-based checklist, and where this Guide stops
Use your residency status as the organising principle:
If you are (or will remain) a non-resident owner: - Confirm whether your regime is with or without a permanent establishment. - If you are buying from a non-resident seller, plan for the Model 211 withholding — it is your duty as purchaser, and the property is exposed if it is unpaid. - On a future sale, check whether the partial exemption is blocked by a related-party transfer.
If you are (or will become) a tax resident: - Test your status against the 183-day rule and the other Article 6 triggers. - Prepare to declare worldwide income under IRPF. - Check any applicable double taxation agreement for taxing rights and relief. - Consider the Wealth Tax dimension, including the election to keep paying in Spain after leaving. - If relocating, check whether the Model 151 inbound-worker option is even available to you (five-prior-years condition).
Where this Guide stops — a finding about GPC's review, not about the world:
Among the official Spanish Tax Agency materials supplied for this Guide, GPC did not locate, as of the research date: - the mechanics of the purchase transaction itself, including obtaining an NIE and the conveyancing steps; - the purchase transfer tax (ITP) or VAT rates payable on acquisition; - the specific non-resident income-tax rate tables or imputed-income figures; - current market statistics on foreign buyers or prices.
These are not claims that such information does not exist — only that it was not within the source set reviewed here, and a reader about to act should seek it from materials not supplied for this Guide.
Risk note on freshness: Every threshold, election and rule cited above is drawn from Spanish Tax Agency material whose publication dates were not established in the source pack. Tax thresholds, rates and treaty terms are time-sensitive by nature and are subject to change. Treat each rule as accurate to the specific Tax Agency page cited, and verify it against the current official version before relying on it. This Guide describes inventory and rules; it is not legal, tax or investment advice.
Sources
- Spanish Tax Agency — Model 211 (IRNR) instructions
- Spanish Tax Agency — Obtaining foreign income, general rules
- Spanish Tax Agency — Wealth Tax manual 2023 (regulations)
- Spanish Tax Agency — Individual resident in Spain (Article 6 Law IRNR)
- Spanish Tax Agency — Non-residents: taxation of real estate
- Spanish Tax Agency — Residents with income from the United States
- Spanish Tax Agency — Capital gains from the transfer of real estate (specific questions)
- Spanish Tax Agency — Residents with income from Germany
- Spanish Tax Agency — Model 151 instructions (inbound workers)
- Spanish Tax Agency — Capital gains from the sale of real estate (non-resident manual)
Ask Anna about Spain
Practical answers from the published Guides, with their sources. Anna is an AI assistant; not personal advice.
Sources & methodology
How sources are selected, ranked and verified: sources and methodology.
- 01
Tax Agency: Individual resident in Spain
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-12
- 02
Tax Agency: Obtaining foreign income, general rules
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-11-17
- 03
Tax Agency: The United States
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-12
- 04
Tax Agency: Germany
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-12
- 05
Tax Agency: Non-residents: taxation of real estate
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-11-04
- 06
Tax Agency: Instructions
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-13
- 07
Tax Agency: Regulations
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-11-24
- 08
Tax Agency: Instructions for completion of the 2023 and subsequent years
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-12
- 09
Tax Agency: Specific questions on taxation of property - Capital gains from the trans
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-12
- 10
Tax Agency: Capital gains from the sale of real estate
Primary authority· sede.agenciatributaria.gob.es· ES
- Last verified
- 2026-10-12
Editorial intelligence only. Not legal, tax, financial or investment advice. Laws, regulations and market conditions may change. Verify material decisions with qualified local advisers. Full disclaimer.
Continue your research
- Reading the deslinde before you buy on the Spanish coast: DPMT, protection easement and the official MITECO cartographySpain
- Buying Spanish property through a company: VAT or transfer tax, and what to ask before signingSpain
- Spain's eviction protection for vulnerable tenants: the December 2025 decree, the 2030 date and the 70% purchase limitSpain

