Moving to Spain from the UK: Complete guide
Everything you need to know about moving to Spain from the UK, including visas, renting or buying a house plus tips for retirees and more.
Buying a home in Spain from the UK? Alongside choosing a property and arranging your finances, there's paperwork to get to grips with. The different names for Spanish identification numbers can make it difficult to know where to start.
In this guide, we'll look at what a NIF number is, how it relates to an NIE and what UK property buyers need to arrange.
We'll also cover when a separate NIF application may be needed, where to find your number and the checks to make before your purchase moves ahead.
And we’ll also introduce Wise as the smart solution for sending large sums internationally – with over 18.9 million people worldwide moving £52 billion each quarter.
With Wise you get low, transparent fees, mid-market exchange rates, and secure, trackable transfers, with dedicated support and volume discounts when sending large amounts. On a £50,000 transfer, you could save up to £1,000 with Wise vs your bank.
Get expert support for your large transfer 📞
A NIF (Número de Identificación Fiscal) is the tax identification number used for dealings with Spain's tax authority.
For a foreign individual, it is generally the same number as their NIE (Número de Identidad de Extranjero). The NIE identifies you as a foreign national; when used for Spanish tax purposes, that number serves as your NIF.1
| Term | What it means | Which number is normally used as a personal NIF? |
|---|---|---|
| NIF | Spanish tax identification number | The applicable identifier for the person or entity |
| NIE | Personal identification number for a foreign national | Usually the NIE itself |
| DNI | Spanish national identity document | The DNI number for a Spanish citizen |
For Spanish citizens, the personal NIF is generally the DNI number.2 This is why a form asking for a NIF doesn’t necessarily mean you need to apply for a new identifier.
The format of a personal NIF depends on the identifier used. When it is based on an NIE, it has nine characters: an initial X, Y or Z, seven digits and a final check letter. A standard DNI-based NIF has eight digits and a check letter.2
Yes. You’ll need a Spanish tax identification number (NIF) to buy property in Spain. For a UK national buying personally, this is normally their NIE used as their NIF.
If you already have an NIE, you generally use that number as your NIF rather than applying for a second identifier.1 If you need to obtain an NIE, see our guide to getting an NIE number in Spain for the application process.
Ask your property lawyer or notary when you’ll need the number and what documents you’ll need to provide. If you're buying jointly, check the paperwork needed for each named buyer. Getting this agreed early helps you plan around the appointment and the date your purchase documents must be signed.
Using your NIE as your NIF does not change its purpose into a residence permit. The NIE itself doesn't give you permission to live in Spain.3
Spanish tax obligations depend on your circumstances. Ask a qualified Spanish tax adviser which registrations or returns, if any, follow from your purchase and use of the property.
The Spanish Tax Agency can assign a NIF-M to a foreign individual who needs a Spanish tax identifier but doesn't have an NIE. It may be temporary if the person is required to obtain an NIE. If they later receive an NIE, they must tell the Tax Agency and other organisations that hold their former NIF within two months.4
A NIF-M application is a separate process from an NIE application. If a professional advises this route, check why it fits your case and follow the London consulate’s NIF instructions, if London is responsible for where you live.
Your NIF is the tax identifier that applies to you. If it is based on your NIE, look for the full NIE, including both letters, on your certificate or Spanish administrative documents. If you were assigned a separate NIF-M, use the number in your NIF documentation.
If a Spanish tax form doesn't recognise your NIF, first check that the letters and digits match your documents. The Tax Agency’s census-checking service can check whether a NIF and a person’s name match its records.5 Ask your lawyer or tax adviser to investigate any mismatch and advise whether a registration or correction is needed.
Once your identification paperwork is in hand, plan how you’ll transfer the money for your purchase. Comparing the exchange rate and fees can help you understand how many euros will arrive for your deposit or final payment.
Banks and other providers may claim to have “no fees” but they could be adding a sneaky mark-up to their exchange rate. This can impact your budget by up to 2% when sending money abroad. On a £50,000 transfer, you could save up to £1,000 with Wise vs your bank.
Wise has built its own payment network that allows customers to send money internationally for less. You’ll get the mid-market exchange rate (close to the one you see on Google) with no hidden markups and low, transparent fees.
| Here’s an overview of the main benefits of using Wise: |
|---|
|
**Capital at risk, growth not guaranteed. Your balance will go down in the event of a government default or interest rates going negative. Taxes may apply. Investments are offered by Wise Assets UK Ltd. (FRN 839689).
For a foreign individual who has an NIE, the same number is generally used as their NIF for Spanish tax matters. The terms describe different purposes, and a separate NIF-M can be assigned in specific cases where someone has no NIE.
Usually not. For a foreign individual with an NIE, that number generally serves as their NIF for Spanish tax purposes. If a form rejects it, check the details and ask your adviser whether a correction or registration is needed.
A NIF-M is a tax identifier that can be assigned to a foreign individual who needs a NIF but has no NIE. It may be temporary, so check that this route fits your circumstances.
An entity has its own NIF. Ask your Spanish adviser which entity documents and representative identifiers the purchase requires; your personal NIE is not the company's NIF.
Sources checked on 11 November 2026
*Please see terms of use and product availability for your region or visit Wise fees and pricing for the most up to date pricing and fee information.
This publication is provided for general information purposes and does not constitute legal, tax or other professional advice from Wise Payments Limited or its subsidiaries and its affiliates, and it is not intended as a substitute for obtaining advice from a financial advisor or any other professional.
We make no representations, warranties or guarantees, whether expressed or implied, that the content in the publication is accurate, complete or up to date.
Everything you need to know about moving to Spain from the UK, including visas, renting or buying a house plus tips for retirees and more.
Read our comprehensive guide to buying property in Marbella as a foreigner, including average prices, fees, taxes and where to start house hunting.
Read our guide on the costs of buying property in Spain, including mortgages, fees and taxes.
Read our comprehensive guide to buying property in Estepona as a foreigner, including average prices, fees, taxes and where to start house hunting.
Read our comprehensive guide to buying property in Alicante as a foreigner, including average prices, fees, taxes and where to start house hunting.
Read our comprehensive guide to buying property in Tenerife as a foreigner, including average prices, fees, taxes and where to start house hunting.