Check tax identifier control digits.
Initialising algorithm engine for Portuguese NIF Check Digit Calculator...
How Portuguese NIF Check Digit Calculator Works?
The Portuguese NIF Check Digit Calculator works by multiplying the first 8 digits by weights 9 down to 2, dividing the sum by 11, and subtracting the remainder from 11. Remainders of 0 and 1 give a check digit of 0.
- 1Enter the first 8 digits of the 9-digit Número de Identificação Fiscal (NIF).
- 2Multiply the digits by 9, 8, 7, 6, 5, 4, 3, and 2.
- 3Add the products and compute the remainder modulo 11.
- 4Use 0 when the remainder is 0 or 1; otherwise use 11 − remainder.
Portuguese NIF Check Digit Calculator Formula
The Portuguese NIF formula is Check = 0 if r < 2, else 11 − r, where r = Σ (10 − i)·dᵢ mod 11.
S = 9·d₁ + 8·d₂ + 7·d₃ + 6·d₄ + 5·d₅ + 4·d₆ + 3·d₇ + 2·d₈
r = S mod 11
Check = 0 if r ∈ {0, 1} else 11 − rd₁shows the taxpayer type.
S = 156 r = 2 Check = 9 NIF = 123456789
Portuguese NIF Check Digit Calculator Conversion Table
The Portuguese NIF conversion table lists first-digit types and sample NIFs.
| First digit | Taxpayer type | Sample base | Check | NIF |
|---|---|---|---|---|
| 1 | Individual | 12345678 | 9 | 123456789 |
| 2 | Individual | 23456789 | 9 | 234567899 |
| 4 | Individual (non-resident) | 45678901 | 4 | 456789014 |
| 5 | Company | 50000000 | 0 | 500000000 |
| 6 | Public body | 60012345 | 6 | 600123456 |
| 8 | Sole trader | 80000000 | 5 | 800000005 |
| 9 | Irregular entity | 90123456 | 7 | 901234567 |
What is Portuguese NIF Check Digit Calculator?
A Portuguese NIF Check Digit Calculator is a tool that computes the 9th digit of a Portuguese tax identification number issued by the Autoridade Tributária e Aduaneira.
The first digit shows the taxpayer type: 1–3 individuals, 5 companies, 6 public bodies, 8 sole traders, and 9 irregular entities.
What are the uses of Portuguese NIF Check Digit Calculator?
There are 3 main uses of the Portuguese NIF Check Digit Calculator, including invoicing, e-commerce checkout, and supplier records.
- Invoicing: Portuguese invoices carry the customer NIF on request.
- E-commerce checkout: Online stores validate NIFs for tax invoices.
- Supplier records: Procurement teams check supplier NIFs.