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.
| Weights applied to the first eight digits | 9, 8, 7, 6, 5, 4, 3, 2 |
| Weighted sum | 156 |
| Remainder after dividing by 11 | 2 |
| Expected check digit | 9 |
| Check digit typed | 9 |
| First digit | 1 |
| NIF checked | 123 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.