Type all nine digits to check a NIF, or just the first eight to get the control digit that completes them. Spaces, dots and hyphens are ignored. The arithmetic runs in your browser: the number does not leave this page.

Validation
Valid NIF
Type of holder
Individual

How the result is reached

Weights applied to the first eight digits9, 8, 7, 6, 5, 4, 3, 2
Weighted sum156
Remainder after dividing by 112
Expected check digit9
Check digit typed9
First digit1
NIF checked123 456 789

The first digit is between 1 and 4, the range article 4(2) of Decreto-Lei 14/2013 reserves for individuals.

Careful: this confirms the nine digits are consistent with each other, not that the number exists or belongs to whoever claims it. 123456789 also passes this check. The taxpayer register belongs to the Autoridade Tributária.

Educational check, not tax advice. Official confirmation that a NIF exists and is active is obtained from the Autoridade Tributária, on the Portal das Finanças.

Portuguese NIF Validator by Calculadora Capital

Portuguese NIF Validator