Skip to content
MH Legal & Seguros
All insightsIntelligence · International buyers
An elegant Mediterranean home with ivory walls, natural stone and blue-grey shutters, with an open terrace overlooking the Spanish coast. Restrained olive greenery and soft natural daylight. The composition suggests a welcoming second home and a carefully planned property purchase. Midnight navy, ivory, pale silvery-grey and subtle copper palette. No people, text, logos, flags, passports, residence cards or visa imagery.

Published · 6 October 2026

Buying a property in Spain as a foreigner: NIE, residence and taxes

A guide to buying a property in Spain as a foreigner: what the NIE is and where to apply for it, the difference between NIE, administrative residence and tax residence, the taxes at purchase (ITP, IVA, AJD) and later obligations such as IBI and non-resident income tax (IRNR) on imputed income, with MH Legal & Seguros.

International BuyersBuying Property in Spain

Buying a property in Spain can be part of a holiday project, an investment or a relocation. Before signing, it is worth clarifying one difference: having an NIE, owning a property and having residence in Spain are different matters.

The NIE identifies you. The purchase allows you to acquire the property. The right to live in Spain and your tax residence require their own analysis.

In this guide from MH Legal & Seguros you will find the keys to organise your purchase and anticipate the obligations that may arise afterwards.

Related guideBuying a property in Spain: a legal guide, steps and costs

Can a foreigner buy a property in Spain?

As a general rule, yes. You do not need to be resident in Spain to acquire a property.

However, it is worth checking whether there are special requirements depending on your nationality and the location of the property. For example, certain acquisitions by non-EU nationals in areas of restricted access for defence reasons may require military authorisation.

Beyond these particulars, the title, any charges, the planning situation and the contracts for the transaction must be reviewed.

Being able to buy does not mean that any property is suitable for the use you have in mind.

Related guideLegal checks before buying a property in Spain

What the NIE is and why you need to prepare it

The NIE (Número de Identidad de Extranjero, Foreigner Identity Number) is a personal, unique and exclusive number that identifies the foreign individual.

As a general rule, it also serves as their tax identification number in Spain. That is why it is a matter worth resolving when preparing the purchase and its tax formalities.

If you already have an NIE, check how to evidence it and what identity documentation you must provide. If you do not have one yet, prepare the application in advance.

Where the NIE can be applied for

Depending on the circumstances, it can be applied for:

  • In Spain, through the competent police offices or units.
  • From abroad, through the Spanish consular office corresponding to your country of residence.
  • Through a representative, when the requirements are met and there is sufficient power of attorney.

The documentation and the appropriate route must be checked before processing it. It is not advisable to set a signing date counting on immediate issue.

Having an NIE does not authorise you to live or work in Spain

The NIE serves an identification function. Its assignment does not amount to a residence or work authorisation.

Nor should it be confused with the TIE (Tarjeta de Identidad de Extranjero, Foreigner Identity Card), which is a different document.

If you intend to relocate, review the entry, stay and residence requirements applicable to your nationality and situation. Buying a property does not automatically grant a right to settle in Spain.

You can advance both projects in parallel, but it helps to coordinate the purchase timetable with the formalities needed to live in the country.

Tax residence: buying a property does not determine it by itself

Your nationality and your tax residence are different data. There may also be differences between your administrative situation and your tax status.

Among the criteria analysed to determine tax residence in Spain are:

  • Presence for more than 183 days in the calendar year, under the applicable counting rules.
  • The location of the main centre of your activities or economic interests.
  • Certain family circumstances provided for by law.

If two countries consider you resident, the relevant double-taxation treaty must be reviewed.

It is not enough to count holiday days or check which address appears on a document.

A practical example

If you live outside Spain and buy an apartment to spend a few weeks a year there, the acquisition does not automatically make you a Spanish tax resident.

If you later relocate, work from Spain or reorganise your economic interests here, it is worth analysing the situation again. Circumstances can change even if you keep the same nationality and the same NIE.

What taxes you should anticipate when buying

Being a foreigner does not, by itself, mean there is a different purchase tax.

The taxation depends, among other factors, on the transaction, the property and the territory:

  • Second-hand home: Transfer Tax (ITP, Impuesto sobre Transmisiones Patrimoniales) normally applies.
  • First delivery of a home by the developer: VAT (IVA) normally applies and the corresponding AJD (stamp duty) must be analysed.
  • Territories with specific tax regimes: their own rules must be checked.

The rates, tax reliefs and taxable bases must be reviewed for the specific purchase. Avoid calculating the budget simply by applying a generic percentage to the price.

Add the deed, registration, advice and financing costs that apply.

Related guideCosts of buying a property in Spain: what to pay and when

What obligations you may have after buying

The obligations do not end with the handover of the keys.

It is worth organising the utilities, the community payments and the taxes related to the property, including the Real Estate Tax (IBI, Impuesto sobre Bienes Inmuebles).

If you are not a tax resident in Spain, also review the Non-Resident Income Tax (IRNR, Impuesto sobre la Renta de No Residentes).

A home that is not rented can still generate tax

A non-resident individual who owns an urban property for their own use or that remains empty may have to pay tax on an imputed property income.

It is not rent you have collected: it is income calculated according to tax rules. Its amount depends on data such as the cadastral value, the length of ownership and each owner’s share.

If you rent the property out, the income and its tax obligations must be analysed. The combination of rented periods and own use also requires review.

Receiving no income does not necessarily mean you have no returns to file.

Documentation to start preparing your purchase

For an initial review, it is useful to gather:

  • A valid passport or identity document.
  • Your NIE documentation, if you already have one.
  • Information on your country of tax residence.
  • Property details and draft reservation or arras documents.
  • Budget and financing forecast.
  • Information on the use you intend to make of the property.

If you will sign by power of attorney or use documents issued in another country, review in advance their content and the validity, translation or legalisation requirements that apply.

Related guideProperty law in Spain: key points for buyers

Frequently asked questions about buying in Spain as a foreigner

Can I buy a property without living in Spain?

As a general rule, yes. The requirements of the transaction and any particulars by nationality and location must be checked.

Does obtaining an NIE make me a resident?

No. The NIE is an identifier. Administrative residence and tax residence require different checks.

Does buying a property allow me to stay in Spain?

Ownership does not automatically grant a right of residence. You must meet the stay or residence requirements that apply.

Do I have tax obligations if I only use the property for holidays?

Yes, obligations linked to the property may exist and, if you are a non-tax-resident, to the IRNR on imputed income. It is worth reviewing your situation and the use of the property.

Prepare your purchase with MH Legal & Seguros

At MH Legal & Seguros we advise international buyers on real estate transactions in Spain.

We help you review the documentation, understand the contracts and coordinate the legal and tax aspects of the acquisition.

Contact our team and tell us about your project: where you want to buy, which country you live in and whether the property will be for holidays, to live in or to rent out.

General information

General information reviewed in October 2026. The requirements and taxation must be analysed according to your personal circumstances, the property and the applicable regulations.

Your privacy

We use our own cookies that are necessary for the site to work and, only with your permission, preference and statistics cookies to improve our content. You can accept them, reject them or choose which to enable. You can change your decision at any time. Cookie policy.