How to Get a NIF in Portugal (2026): 3 Ways for Foreigners

Published 20 November 2026

Foreigners get a Portuguese tax number (NIF) for free in one of three ways: at a tax office or Loja do Cidadão by prior appointment, online through e-balcão via a representative with a power of attorney, or, if you already have or have applied for residence, through the combined NIF, NISS and health number request at some Espaços Cidadão. You do not need a tax representative just to get the number.

What a NIF is and who needs one

The NIF (número de identificação fiscal, also called número de contribuinte) is your Portuguese tax number. According to the Autoridade Tributária (AT), it is needed not only for taxes but for everyday things like employment, contracts, opening a bank account and dealing with social security. It has nine digits and stays the same whether you are registered as a resident or a non-resident.

Anyone, Portuguese or foreign, resident or not, can ask for one at any time. The request is free. Portuguese citizens with a Cartão de Cidadão get a NIF automatically; everyone else has to request it.

The three ways to get a NIF

The AT's leaflet for foreign citizens lists two channels: an in-person appointment at a tax office (Serviço de Finanças) or Loja do Cidadão, and an online request through e-balcão made by a representative. A third route, the combined request at an Espaço Cidadão, exists for people who are already dealing with AIMA or are EU citizens living in Portugal.

1. In person, by appointment

Walking in without an appointment is not how it works: the AT says a NIF request at a Serviço de Finanças or Loja do Cidadão must be booked in advance. You can book in two ways:

On the day, bring:

If you are a non-EU citizen applying in person yourself, the AT says your passport must contain an entry visa for Portugal, unless it has a visa for another EU country or you are from a country whose citizens can enter Schengen without a visa.

What to say when you book by phone (in Portuguese, the line is Portuguese-first):

Bom dia. Queria marcar um atendimento presencial para pedido de NIF. Não tenho cartão de cidadão. O número do meu passaporte é...

(Good morning. I'd like to book an in-person appointment to request a NIF. I don't have a Cartão de Cidadão. My passport number is...)

If you would rather not make that call yourself, CallBehalf can phone the CAT for you, wait on hold, ask for the appointment and report back what was offered. The appointment itself you attend in person.

For more on reaching Finanças by phone, see our guide to calling Finanças in English.

2. Online via e-balcão, through a representative

You cannot log into the Portal das Finanças without a NIF, so the online route works through someone else. The AT says the e-balcão request is made by the foreign citizen's legal representative (not to be confused with a tax representative, more below). The gov.pt guide for foreigners presents this route for people who live outside the EU, Norway, Iceland and Liechtenstein.

The representative logs in, opens a new e-balcão question with these options:

and attaches copies of:

A power of attorney given to a lawyer or solicitador does not need signature recognition. Documents in a foreign language must come with a certified translation (by a notary, a recognised chamber of commerce, a lawyer or a solicitador). This is the route most paid "NIF online" services use: they act as your representative.

3. Combined NIF + NISS + health number at an Espaço Cidadão

Since 2025 the government has run a single request for the NIF, the Social Security number (NISS) and the SNS user number (número de utente). According to the Portuguese government, it is for foreign citizens who hold or have applied for a residence permit, EU citizens, asylum seekers, refugees and beneficiaries of international protection. It launched at 12 Espaços Cidadão (in Braga, Cascais, Lisboa, Olhão, Lagos, Setúbal, Porto, Loures and Oeiras), with more locations planned. If you are not in one of those groups yet, for example you need a NIF to sign a lease before you have a visa, use route 1 or 2.

Resident or non-resident NIF?

When you request a NIF from abroad, or with a foreign address, it is assigned to you as a non-resident. The AT says that once you meet the conditions to be a Portuguese tax resident (broadly, more than 183 days in Portugal in a 12-month period, or a home you intend to keep as your habitual residence), you must change your address with Finanças. The number itself does not change.

Do you need a tax representative?

Not to get the NIF. The AT is explicit: requesting a NIF as a non-resident does not require a tax representative (representante fiscal). It becomes relevant later, if you are a non-resident and create a "tax relationship" in Portugal, which the AT defines as owning a car registered in Portugal, owning property in Portugal, signing an employment contract for work in Portugal or working self-employed in Portugal. In that case, within 15 days you must either:

For non-residents living in the EU, Norway, Iceland or Liechtenstein (and Andorran citizens resident in Andorra), this is optional. Non-residents from other countries who will work self-employed in Portugal must appoint a VAT representative before starting, even if they use electronic notifications. Failing to appoint a representative when it is mandatory can be fined from 75 EUR to 7,500 EUR. If any of this applies to you, read the AT leaflet in full or ask Finanças directly.

Common pitfalls

Once you have the NIF, the next number most people need is the NISS for work and social security; see our guide to calling Segurança Social.

Frequently asked questions

How much does a NIF cost in Portugal?
Nothing. Requesting a NIF from the tax authority is free. Private companies that request it for you as your representative charge for their own service, not for the NIF.
Can I get a NIF online without being in Portugal?
Yes, through a representative. You cannot log into the Portal das Finanças without a NIF, so a representative with your power of attorney submits the request through e-balcão with copies of your passport, proof of your address abroad and their own ID.
Do I need a fiscal representative to get a NIF?
No. The tax authority states that getting a NIF as a non-resident does not require a tax representative. One may be required later, within 15 days, if you are a non-resident outside the EU/EEA and buy property or a car, take a job or work self-employed in Portugal, unless you sign up for electronic notifications instead (self-employed non-EU non-residents need a VAT representative regardless).
Can I walk into a Finanças office to get a NIF?
Book first. The tax authority says NIF requests at a Serviço de Finanças or Loja do Cidadão must be preceded by an appointment, made on the Portal das Finanças or by calling 217 206 707 on working days, 9:00-19:00.
Does my NIF change when I become a resident?
No. The nine-digit number stays the same. You need to update your address with Finanças so you are registered as a resident instead of a non-resident.

Don't want to make the call yourself?

CallBehalf is an AI assistant that phones Portuguese companies and public services for you - in Portuguese. It waits on hold, asks your question, and reports back with the outcome and a full transcript in your language.

Try it with a free call
One free demo call. No credit card required.

Sources

Keep reading

Rules, fees and phone numbers in Portugal change. This article is general information, not legal or tax advice - check the official source before you act. Spotted something outdated? Tell us at hello@callbehalf.com.