A Spanish company tax ID (NIF) is first provisional and later definitive: this guide explains when to apply, what to declare in the tax census, which documents the Tax Agency needs after registration and which identification mistakes to avoid.
Contents
A newly formed Spanish company needs, before almost anything else, a number that identifies it to the Spanish Tax Agency (Agencia Tributaria, often called AEAT), banks, customers and suppliers. That number is the NIF (número de identificación fiscal, or tax identification number). What surprises many founders, especially those used to other countries, is that it is not issued in a single step: the company first receives a provisional NIF and, once its paperwork is complete, the same number becomes definitive. Between the two stages there are tax registration filings, legal deadlines and checks that are worth understanding.
This guide explains when a company needs a NIF, what goes into the tax registration form, which incorporation and registration evidence turns a provisional NIF into a definitive one, which changes must be reported later and which identification mistakes cause trouble. It is general information based on the Spanish General Tax Act (Ley General Tributaria), the tax management regulation approved by Royal Decree 1065/2007 and guidance published by the Spanish Tax Agency. Each case should be checked against the rules and forms in force at the time.
The Spanish company tax ID: what the NIF is
Under Spanish law, every individual and legal entity must have a tax identification number for any dealings that are, or may be, relevant for tax purposes. The rule is set out in the sixth additional provision of the General Tax Act and developed in article 18 of Royal Decree 1065/2007. For a Spanish limited company (sociedad limitada, or SL), the Spanish company tax ID is its identity with the tax authorities and, in practice, with anyone it does business with.
How the number is built
The NIF of a legal entity has nine characters: an initial letter, a random seven-digit number and a check character. The letter shows the legal form of a Spanish entity or flags that the entity is foreign. Under Order EHA/451/2008, public limited companies (sociedades anónimas, SA) start with A and limited companies (SL) with B. Foreign entities use N, and permanent establishments of non-resident entities use W.
The number stays the same even if the company changes its name, address, shareholders or directors. It only changes if the company’s legal form or nationality changes. If an SL converts into an SA, for example, its initial letter no longer matches and it will need a new number.
NIF, not CIF
Many people in Spain still call a company’s number its “CIF”. That term comes from earlier rules that referred to an identification code for legal entities. Those rules were repealed when Royal Decree 1065/2007 came into force in 2008, and the legal term is now NIF. On invoices, contracts and forms it is better to write “NIF”; it also helps foreign partners and banks who look for the official term. When dealing with EU trading partners you may also see the “VAT number”, which is a different format explained below.
Provisional and definitive: one number, two stages
Article 24 of Royal Decree 1065/2007 provides that a legal entity’s NIF is provisional until the company has provided a copy of its deed of incorporation, its articles of association and, where applicable, the certificate of its registration in a public registry (for a company, the Commercial Registry, or Registro Mercantil). Once the company provides these documents, the Tax Agency assigns the definitive NIF. It is not a second number that must replace the first on every document; it is the same number in two different situations. According to the Tax Agency’s help pages, while the number is provisional it is shown with the label “EN CONSTITUCIÓN” (in formation).
When a company needs a NIF
The first practical question is when a company needs a NIF. The legal answer is in article 23 of Royal Decree 1065/2007; the practical answer depends on how the incorporation is organised.
What the regulation says
Legal entities that will have dealings relevant for tax purposes must apply for a NIF. If they will carry on a business or professional activity, they must apply before making or receiving any supply of goods or services, before collecting or making payments and before hiring staff for that activity. In any case, the application must be made within the month following the date of incorporation. If a company does not apply, the Tax Agency may register it on its own initiative and assign the corresponding number.
What usually happens with an SL
In practice, the NIF is requested right after the deed of incorporation is signed before a Spanish notary, because the company needs it straight away: to file, where the regional tax authority requires it, the tax return linked to the incorporation (which is exempt), to submit the deed to the Commercial Registry, to deal with the bank and to start invoicing when the business requires it. The regulation also allows the Tax Agency to sign agreements with the professionals and institutions involved in setting up companies, and in many incorporations the notary’s office handles the NIF request. Ask the notary and your adviser who will take care of it and when.
Who signs the application
The person signing the tax registration form must prove that they act on behalf of the company, or of the founders who have agreed to set it up. The Tax Agency explains that anyone with a recognised electronic certificate can submit the form online, because submission is a procedural step, but the form itself must be signed by the company’s accredited representative. In a newly formed SL, that representative is normally the director appointed in the deed or an attorney with sufficient powers. The person applying for the company must have a Spanish tax number of their own.
If shareholders or directors are foreign
Before thinking about the company’s NIF, the people forming it must be identified for Spanish tax purposes. Foreign individuals use their foreigner identity number (NIE) or, if they do not have one, a tax number issued by the Tax Agency that starts with the letter M. A foreign company that becomes a shareholder needs its own Spanish NIF, starting with N. If the director who must sign the company’s form does not yet have a Spanish number, the company’s NIF cannot be processed normally, so it pays to plan these steps from the start.
Census registration and basic details
The tax registration filing, which Spain calls the census declaration (declaración censal), sets up the company’s relationship with the Tax Agency. The census registration and basic details declared there determine which obligations the company is assigned and how the authorities see it from day one.
Form 036
Legal entities apply for their NIF using the census declaration, Form 036 (modelo 036). Under article 9 of Royal Decree 1065/2007, registering in the Census of Businesses, Professionals and Withholding Agents also serves, among other things, to:
- Request a provisional or definitive NIF.
- Report which VAT scheme applies.
- State whether sales or services will begin later than the purchases or investments needed to start the business.
- Apply to be entered in the Register of Intra-Community Operators (ROI), if the company will carry out certain transactions with businesses in other EU Member States.
- Opt for certain methods of calculating corporate income tax instalments, where relevant.
The Tax Agency’s website offers an online Form 036 that can be completed, validated and saved as a PDF, and a specific online procedure for requesting an entity’s NIF without visiting an office. It also provides help tools, such as a census assistant, that indicate which boxes apply to each situation. The forms are in Spanish, which is one reason many foreign founders rely on a local adviser for this step.
Details to decide before filling it in
The exact content depends on the current form, but a newly formed company usually has to decide and report:
- Its company name exactly as it appears in the deed, including the legal form.
- Its registered office and its tax address, which may or may not be the same.
- The identity of its representatives and, where requested, details of its shareholders.
- The activity or activities it will carry on and their classification for the local Business Activities Tax (IAE).
- The expected start date of the activity.
- Which recurring obligations apply: VAT, withholding tax if it will have employees or pay professionals or landlords, and corporate income tax.
Not every company has the same Spanish business tax compliance profile. A company with no employees and no rented premises will not, in principle, have withholding tax to pay over; one that only makes VAT-exempt supplies is treated differently from one that charges VAT. That is why recurring return forms are only ticked when the obligation actually applies to the activity, after checking with the Tax Agency or an adviser.
Registration and the start of trading
The regulation treats a business as having started when it makes or receives supplies of goods or services, collects or makes payments or hires staff with a view to producing or distributing goods or services. The registration must be filed before that point. If the company needs time to prepare before selling, it can say so in the census declaration and later report the start of sales through an amendment filing.
This matters more than it seems. Among the grounds on which the Tax Agency may revoke a NIF, article 147 of the regulation includes a company that does not start its activity, or the usual preparatory steps, within three months of applying for the number, unless it shows that this was impossible. A company formed “just in case” and left completely dormant can run into this problem.
The tax address in the filing
A company’s tax address is not a free choice. Under article 48 of the General Tax Act, for a legal entity it is the registered office, provided that its administrative management and business decisions are effectively centralised there; otherwise, it is the place where that management or direction takes place. The regulation also allows the NIF to be revoked when a company reports its activity, management or direction at an apparent or false address without showing that they take place elsewhere.
If you plan to use a Madrid registered office in a business centre, this does not mean that an address service is ruled out. It means you need to look at how the company will actually be run: who manages it, where decisions are made, where documents are received and where the books are kept. A professional address can serve as the registered office and, depending on the case, also as the tax address, but not in every situation. Review it with an adviser before filing the census declaration.
IAE: registration even when no tax is due
The Business Activities Tax (Impuesto sobre Actividades Económicas, IAE) is a local tax. Companies that start an activity are exempt for the first two tax periods in which they carry it on, and afterwards if their net turnover is below one million euros, under the calculation rules set by law. Even so, the activity must be declared. For exempt taxpayers, the census declaration replaces the specific IAE filings, so choosing the right activity heading in Form 036 is part of the process.
Incorporation and registration evidence
The incorporation and registration evidence is what separates a provisional NIF from a definitive one. Knowing what is needed at each stage avoids leaving the file half-finished.
To obtain the provisional NIF
The regulation states that no NIF, provisional or definitive, will be assigned to an entity that does not provide at least a signed document in which the founders state their agreement to form it. According to the Tax Agency’s guidance on the online application, the documents that usually accompany Form 036 include:
- The deed of incorporation or equivalent document and the articles of association, if already executed.
- If there is no deed yet, the founders’ signed agreement and, where applicable, the certificate confirming that the company name is available.
- The registry certificate, if registration has already taken place.
- A copy of the signatory’s tax number.
- Proof of the signatory’s authority to represent the company, unless it already appears in the deed or articles.
If not all the documents needed for a definitive NIF are provided, the number assigned is provisional. The Tax Agency also warns that incomplete or inaccurate documents may lead to the application being closed, and the regulation allows it to check the accuracy of the information and refuse the number if it is not accurate.
From provisional to definitive
Once the company has been registered with the Commercial Registry, the move from a provisional to a definitive Spanish company tax ID works as follows under article 24 of Royal Decree 1065/2007:
- The company files a census amendment (declaración censal de modificación), which also reports any changes since the provisional NIF was requested that have not yet been declared.
- It attaches the outstanding documents: a copy of the deed of incorporation, the articles of association and the certificate of registration with the Commercial Registry.
- Once this is done, the Tax Agency assigns the definitive NIF.
The deadline for providing the outstanding documents is one month from registration. If that period passes, or if six months go by from the assignment of the provisional NIF without the documents being provided, the Tax Agency may formally request them, giving a short period to file them or explain why that is not possible. If the request is ignored, it may revoke the number after hearing the company.
Documents in other languages
If any document is written in a language that is not official in Spain, the Tax Agency may require a translation into Spanish or another co-official language. This mostly affects companies with foreign shareholders who provide documents from their home country, such as certificates of existence of a corporate shareholder or powers of attorney granted abroad.
How the number is evidenced
The NIF is evidenced by the document the tax authorities issue for that purpose. According to the Tax Agency, once the number is assigned, notice of the NIF card is sent to the company’s tax address or to the notification address given in the form. That is why the declared address must work from day one, with someone receiving and dealing with the post.
Comparison table
| Aspect | Provisional NIF | Definitive NIF |
|---|---|---|
| When it is obtained | Usually right after the deed is signed, or earlier if the founders’ agreement is provided | After registration with the Commercial Registry and filing of the outstanding documents |
| Key documents | Founders’ agreement or deed, proof of the representative’s authority | Deed, articles of association and registration certificate |
| Filing | Census registration (Form 036) | Census amendment (Form 036) |
| Number | Same number, labelled “in formation” | Same number, no longer provisional |
| Risk if not completed | Formal request and possible revocation | Revocation only on the grounds listed in the regulation |
Updating company details later
Obtaining the definitive NIF does not end the company’s census obligations. Updating company details later matters as much as the initial registration, because the Tax Agency works with the information held in its census.
The census amendment
Article 10 of Royal Decree 1065/2007 requires any change to the information declared at registration, or in later filings, to be reported. The most common changes for an SL include:
- A change of tax address, which legal entities must report within one month. Under the General Tax Act, the new address has no effect for the tax authorities until it is reported.
- The actual start of sales or services, if the registration stated they would begin later.
- New activities, changes of activity heading or the end of an activity.
- Starting or stopping recurring obligations, for example when the company hires its first employee and begins withholding tax.
- Entry in, or removal from, the Register of Intra-Community Operators.
- Changes of representatives or identification details.
Corporate changes and the NIF
A change of company name, registered office or directors is a corporate matter and, where required, is registered with the Commercial Registry. But the tax census is not updated automatically: the change must be reported through the relevant census filing. The NIF stays the same unless the company’s legal form or nationality changes. Coordinating the corporate filing with the tax filing is part of good company compliance in Spain.
Checks and revocation
The Tax Agency can verify the accuracy of census information and correct it. In the cases set out in the regulation, it can also revoke the NIF. Besides the grounds already mentioned (missing documents, no activity within three months of the application, or an apparent or false address), article 147 includes, among others, reporting non-existent activities, using the same capital to form several companies without the required minimum contribution, and failing to file annual accounts with the Commercial Registry for four consecutive financial years.
Revocation requires a prior hearing and is published in the Official State Gazette (BOE). Its effects are serious. Under the General Tax Act, publication means the number loses its validity for tax identification purposes. Banks may not make debits or credits on accounts in which the company appears, Spanish notaries must refuse to authorise documents for the entity, and public registries close their doors to it, unless the number is reinstated. This is a situation best avoided by keeping the census, the documents and the filing of annual accounts up to date.
Deregistration
When a company stops trading, it must file a census declaration reporting the end of its activity. Ceasing activity and winding up the company are different things: a company can stop operating without being dissolved and liquidated, and it will still have obligations while it exists. Before deregistering, review with your adviser what remains outstanding.
Avoiding identification mistakes
Many problems with the Tax Agency, banks or customers start with small identification details. Avoiding identification mistakes in a company’s first months saves time later.
Details that do not match
The company name, address and representative’s details should match in the deed, the census filing, the bank and the invoices. Spelling the name differently in each place, leaving out the legal form or using an address other than the declared one creates inconsistencies that later need explaining. The same applies to the names of foreign shareholders and directors, which should be written identically in the passport, the NIE and the deed, including middle names and accents.
Mixing up the company’s NIF with the founders’ numbers
The company is a separate legal person with its own NIF. Invoices it issues or receives must show the company’s NIF, not the director’s NIE or personal tax number. This is a common slip in the first purchases, when a founder pays company expenses personally or asks for invoices in their own name.
Forgetting to give the NIF to the bank
Anyone opening an account with a credit institution in Spain must give it their tax number. The regulation allows the account to be opened without proof of the NIF at that moment, but the number must be provided within fifteen days, and no transactions are allowed until it is. If the account is opened before the number is available, plan for this. Each bank also applies its own identification policies, which may require further documents, and remote account opening is never guaranteed.
Trading with other EU countries
To carry out certain intra-EU transactions, such as buying or selling goods to businesses in other Member States or receiving certain services from EU suppliers, the company must be entered in the Register of Intra-Community Operators. Its VAT number for those transactions is the same NIF preceded by the prefix ES. Having a NIF does not mean being on that register: the company must apply for it, and the Tax Agency may refuse in the cases set out in the regulation.
Not stating single-member status
If the company has only one shareholder, the Spanish Companies Act requires it to state that it is a single-member company (sociedad unipersonal) on all its documents, correspondence, order forms and invoices. This is not strictly about the NIF, but it is part of how the company correctly identifies itself to third parties.
Keeping old details in use
After a change of address, name or activity, companies often update their website and invoices but forget the tax census, or the other way round. Tax Agency notices go to the details held in the census, and the company needs to receive and deal with them on time.
Checklist: tax registration steps for a new Spanish company
Before signing the deed:
- Spanish tax identification sorted out for every shareholder and director (NIE, NIF, or NIF for a foreign entity).
- Decision on the registered office and analysis of where the tax address will be.
- Clear description of the activity and the matching IAE heading.
- Expected timing of the first purchases, sales and, where relevant, hires.
- Agreement on who will request the NIF: notary, adviser or the director.
After signing:
- Application for the provisional NIF using Form 036, with proof of the representative’s authority.
- NIF provided to the bank and, where relevant, to the notary or the Registry.
- Registration only for the recurring obligations that actually apply.
- Application to join the Register of Intra-Community Operators, if the business requires it.
After registration with the Commercial Registry:
- Census amendment with the deed, articles and registration certificate, within one month of registration.
- Check that the NIF no longer shows as provisional.
- Check that all details match in the census, the bank and the company’s commercial documents.
- Calendar of tax filings and annual accounts deadlines.
Practical examples
These examples are illustrative and simplified; real cases may involve circumstances that change the answer.
The registered company that forgot its definitive NIF
Two founders form an SL, obtain a provisional NIF after signing and start invoicing. Registration comes through a few weeks later, but nobody files the census amendment with the documents. Months afterwards, the company receives a formal request from the Tax Agency to provide them. It responds in time and obtains the definitive NIF, but the scare would have been avoided by adding this step to the post-registration task list.
A business that starts later
A company is formed to run a business that needs several months of preparation: works, supplier contracts and permits. In its census declaration it states that sales will begin after the first purchases, and it keeps evidence of the preparatory work. When it opens, it files an amendment reporting the start of sales. Because the preparatory activity is documented from the start, the risk of being treated as a dormant company is much lower.
A change of address done halfway
A company moves its registered office to Madrid, approves and registers the change with the Commercial Registry, but does not file the census amendment. The Tax Agency keeps sending notices to the old address. The change has no effect for the tax authorities until it is reported, so the company risks missing a formal request. The fix is to report the new tax address within one month of the change.
How DomiciliaEmpresa can help
DomiciliaEmpresa offers accounting and tax services for Spanish companies, including the tax registration steps for a new company. As your tax accountant in Spain, we can prepare the census declaration with the details that match your activity, follow up the provisional and definitive NIF, report later changes and organise your filing calendar. We also handle accounting for Spanish companies and the recurring tax returns that apply in each case, explaining each step in English where needed.
If you are still setting up the company, we can support your Spanish company formation and assess whether our business address service in Madrid fits the way your company will be managed. If you are interested in combining incorporation, a business address and ongoing tax and accounting support, ask us about current promotions.
Frequently asked questions
Does the number change when the provisional NIF becomes definitive?
No. The number stays the same; only its status changes, once the company provides the deed, articles and certificate of registration.
Can a company invoice with a provisional NIF?
The provisional NIF identifies the company for tax purposes while incorporation is completed. Before trading at that stage, check with your adviser what a company in formation can do and who is liable for it, because this is a corporate law question as well as a tax one.
How long do we have to obtain the definitive NIF?
The outstanding documents must be provided within one month of registration with the Commercial Registry, through a census amendment.
Is “CIF” still the right term?
Not as a legal term. Since 2008, a legal entity’s number is the NIF, although people still say CIF informally.
Can a foreign director sign the census declaration?
The company’s representative signs it and must prove their authority and have a Spanish tax number. If that representative is a foreign national, their own Spanish tax identification must be sorted out first.
Does forming a Spanish company let me live or work in Spain?
No. Forming a company, or being its shareholder or director, does not in itself grant a residence or work permit. Immigration matters must be reviewed separately with a specialist.
Conclusion
The provisional and definitive NIF are two stages of the same Spanish company tax ID, a number the company keeps for life. The provisional number lets the company get going after signing; the definitive one follows once incorporation and registration are evidenced. Between the two, and afterwards, the company has a census relationship to maintain: declaring its basic details correctly, reporting changes on time, getting the tax address right and avoiding identification mistakes that trigger formal requests or, in the worst cases, revocation of the number.
Because every company has its own activity and circumstances, if anything is unclear we recommend working with professionals who know Spanish tax registration and the obligations of a new company. The DomiciliaEmpresa team can review your case, answer your questions and take care of your company’s tax and accounting. Request information with no obligation and we will explain the next steps.
Just set up your Spanish company? Ask about tax and accounting support
Related articles
- Spanish NIE and NIF for Foreign Shareholders and Directors
- Notarial Deed and Commercial Registry Registration in Spain
- First Month After Incorporating a Spanish SL: Checklist
- Company Tax Address in Spain: Requirements, Verification and Common Mistakes
- Accounting and tax services in Spain
- Company formation in Spain
Official sources
- Royal Decree 1065/2007, tax management regulation (in Spanish), articles 9, 10, 11, 17, 18, 22 to 28 and 147
- General Tax Act 58/2003 (consolidated text, in Spanish), article 48 and sixth additional provision
- Order EHA/451/2008 on the composition of legal entities’ NIF (in Spanish)
- Spanish Companies Act (consolidated text, in Spanish), article 13
- Transfer Tax and Stamp Duty Act (in Spanish), article 45: exemptions
- Consolidated Local Finance Act (in Spanish), article 82: IAE exemptions
- Spanish Tax Agency: NIF for legal entities (in Spanish)
- Spanish Tax Agency: help for the online NIF application of an entity, Form 036 (in Spanish)
- Spanish Tax Agency: tax obligations of business activities (in Spanish)




