How to Get a Spanish NIF Number (2026 Guide for Foreigners & Residents)
If you plan to live, work, buy property, or do business in Spain, getting a Spanish NIF number is one of the first legal steps you must take.
This guide explains how to apply for a Spanish NIF step by step, including requirements for foreigners, documents, costs, and common mistakes to avoid.
What Is a Spanish NIF Number?
The Número de Identificación Fiscal (NIF) is a tax identification number issued by Spain’s tax authority. It is required for all financial and legal activities in Spain.
- Opening a bank account
- Buying property
- Signing contracts
- Paying taxes
- Starting a business
NIF vs NIE: What’s the Difference?
This is where many people get confused.
| Type | Who It’s For | Key Info |
|---|---|---|
| NIF | Spanish citizens & companies | Based on DNI or company registration |
| NIE | Foreigners | Also acts as your NIF |
Important: If you are a foreigner, your NIE number is your NIF.
Who Needs a Spanish NIF?
You need a NIF if you:
- Work in Spain
- Buy property
- Open a bank account
- Start a company
- Have tax obligations
This applies to both residents and non-residents.
How to Apply for a Spanish NIF (Step-by-Step)
Step 1: Gather Required Documents
- Valid passport or national ID
- Reason for application (contract, property purchase, etc.)
- Completed EX-15 form (for foreigners)
- Proof of appointment
Step 2: Book an Appointment (Cita Previa)
You must book an appointment online before visiting:
- Tax Agency (Agencia Tributaria)
- Police station or immigration office (Extranjería)
Step 3: Attend Your Appointment
Where you go depends on your situation:
- Foreigners → Police or immigration office
- Spanish citizens → Tax Agency
Step 4: Submit Documents
Bring all required documents and forms. Missing paperwork is the #1 reason for delays.
Step 5: Pay the Fee
The application fee is typically €9–€12, paid using Form 790 at a bank.
Step 6: Get Your NIF
In many cases, you receive your number the same day. Some locations may take a few days.
How to Get a Spanish NIF as a Non-Resident
If you are not living in Spain, you can still apply:
- Through a Spanish consulate
- Via a legal or tax representative in Spain
This is common for property buyers and investors.
Common Mistakes to Avoid
- Booking the wrong appointment type
- Not bringing proof of reason for application
- Confusing NIE and NIF
- Incomplete EX-15 form
Avoiding these mistakes can save weeks of delays.
How Long Does It Take to Get a NIF in Spain?
Most people receive their NIF:
- Same day (best case)
- Within 3–5 days (typical)
FAQs About Spanish NIF
Do I need a NIF to buy property in Spain?
Yes, a NIF is mandatory for any property purchase in Spain.
Can I apply for a Spanish NIF online?
Not directly. You must attend in person or appoint a representative.
Is NIE the same as NIF?
For foreigners, yes — the NIE acts as your NIF.
Conclusion
Getting a Spanish NIF number is essential for living, investing, or working in Spain. While the process is straightforward, preparation is key.
Make sure you bring the correct documents, book the right appointment, and understand whether you need a NIE or NIF.
Pro tip: If you're abroad, using a tax representative can save time and avoid travel.
Useful Resources
- Spanish Tax Agency (Agencia Tributaria)
- Immigration Office (Extranjería)