How to use Validar NIF
- 01Type the NIF9 digits, PT in front fine.
- 02Read the resultValid, or the right digit.
- 03See the typePerson, company, public body…

501442600: sum 122, remainder 1 → check digit 0 ✓.
The Portuguese tax number has nine digits. The last is a check digit: the first eight are multiplied by 9 down to 2, the sum is divided by 11, and a remainder of 0 or 1 gives 0. The first digits tell you whether it belongs to a person, a company, a public body or another kind of taxpayer.
Validar NIF: type a Portuguese número de identificação fiscal (or the NIPC of a company) and the tool checks its last digit and tells you what the first digits mean. It follows the rule and the prefix table on the Portuguese Wikipedia page, which cites Decreto-Lei 14/2013 and the Portal das Finanças.
O dígito de controlo
Example: for 28702400 the sum is 157, 157 mod 11 = 3, and 11 − 3 = 8, so the NIF is 287024008.
- Multiply the first eight digits by 9, 8, 7, 6, 5, 4, 3 and 2.
- Add the products and divide by 11.
- If the remainder is 0 or 1, the check digit is 0. Otherwise it is 11 minus the remainder.
O que significam os primeiros dígitos
- 1, 2, 3: individuals (3 has been assigned since June 2019).
- 45: non-resident individuals whose only Portuguese income is subject to final withholding.
- 5: legal persons registered in the RNPC (companies and other bodies). 6: public administration.
- 70, 74, 75: undivided inheritances. 71: non-resident legal persons. 72: investment funds.
- 77, 78: numbers assigned ex officio. 79: the Expo 98 regime. 8: sole traders (obsolete).
- 90, 91: condominiums, irregular companies and some inheritances. 98: non-residents without a permanent establishment. 99: civil companies without legal personality.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
What does a NIF starting with 5 mean?
A legal person registered in the national register of legal persons (RNPC), usually a company. 1, 2 and 3 are individuals, 6 is public administration and 9x covers condominiums and similar.
Does a valid NIF mean the company exists?
No. The tool only checks the arithmetic. Use the Portal das Finanças or a company register to see who a NIF belongs to.
Is the Brazilian CPF checked the same way?
No. The CPF has 11 digits and two check digits with a different rule. Use the CPF checker for Brazil.
Is the NIF sent anywhere?
No. The check runs in your browser and nothing you type is sent to a server or stored.
Why is 999999999 invalid?
Its weighted sum is 396, which leaves a remainder of 0, so the check digit must be 0. 999999990 is valid.
Is the NIF the VAT number?
For EU VAT the NIF is written with PT in front, for example PT501442600.