Pakistani NTN Tax Number Generator
Generate and format valid Pakistani National Tax Numbers (NTN) for FBR tax testing.
Waiting for generation...
About the Pakistani NTN
The NTN (National Tax Number) is the tax identifier issued by the Federal Board of Revenue (FBR) in Pakistan.
It comprises 7 sequential digits followed by 1 weighted modulo 11 check digit.
Anatomy & Structure of National Tax Number (NTN) — Pakistan
The Pakistani Tax Number consists of 8 characters in 2 parts (1234567-8):
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 7 | Taxpayer Sequential Number | 7 digits | Unique taxpayer sequence assigned by Federal Board of Revenue (FBR) | 1234567 |
| 8 | Check Digit | 1 digit | Calculated via **Weighted Modulo 11** with weights [8, 7, 6, 5, 4, 3, 2] | 8 |
Official Algorithm (Weighted Modulo 11 — FBR Pakistan)
Check digit calculation for Pakistani NTN:
S = Σ d[i] * (8 - i) (i=0..6); R = S mod 11; DV = (R === 0 || R === 1) ? 0 : 11 - R
- 1. Multiply the first 7 digits by weights: W = [8, 7, 6, 5, 4, 3, 2].
- 2. Sum all weighted products into total S.
- 3. Compute remainder R of S divided by 11.
- 4. If R is 0 or 1, check digit is 0; otherwise DV = 11 - R.