How CNIC Numbers Are Structured in Pakistan (NADRA 13-Digit Format)
A Pakistani CNIC number consists of 13 digits in the format XXXXX-YYYYYYY-Z. The first 5 digits represent the location, the next 7 digits are linked to the family record, and the last digit indicates gender. This CNIC numbers structure help the National Database and Registration Authority maintain an organized and traceable identity system.

What Is the Format of a CNIC Number?
A CNIC follows a fixed structure:
XXXXX-YYYYYYY-Z

Each section has a specific meaning:
- First 5 digits → location code
- Next 7 digits → family identifier
- Last digit → gender indicator
CNIC Structure Breakdown (Quick View)

| Section | Meaning |
|---|---|
| XXXXX | Location (Province, District, Tehsil) |
| YYYYYYY | Family record identifier |
| Z | Gender digit |
What Do the First 5 Digits of CNIC Mean?
The first 5 digits represent geographic identity.

Province Code (First Digit)
| Digit | Province |
|---|---|
| 1 | Khyber Pakhtunkhwa |
| 2 | FATA (now merged with KP) |
| 3 | Punjab |
| 4 | Sindh |
| 5 | Balochistan |
| 6 | Islamabad |
| 7 | Gilgit-Baltistan |
District and Tehsil Codes
- Next 2 digits → district
- Last 2 digits → tehsil / sub-area

This creates a precise location mapping.
What Do the Middle 7 Digits Represent?
The middle 7 digits are linked to family registration records.

- Not random
- Assigned based on family tree
- Connects individuals to relatives
This enables NADRA to maintain:
- family lineage
- record consistency
- identity verification
What Does the Last Digit of CNIC Represent?
The last digit indicates gender.
Gender Rule
- Odd number → Male
- Even number → Female

Example
| Last Digit | Gender |
|---|---|
| 1, 3, 5, 7, 9 | Male |
| 0, 2, 4, 6, 8 | Female |
Example CNIC Explained
Example: 42101-1234567-9
Breakdown:
- 42101 → Sindh (4), District (21), Tehsil (01)
- 1234567 → Family-linked identifier
- 9 → Male

Why Is CNIC Structured This Way?

This structure allows NADRA to:
- Organize national identity data
- link family members
- Verify individuals accurately
- reduce duplication and fraud
It creates a centralized identity system.
Important Notes About CNIC Numbers

- CNIC number is unique for each person
- It does not change during a lifetime
- It is linked with biometric data
- It should never be shared publicly
Key Takeaway
A CNIC number is not random. It is a structured identity code that encodes location, family linkage, and gender, allowing NADRA to maintain a highly organized and verifiable national identity system.
FAQs
How many digits are in a CNIC number?
A CNIC number has 13 digits divided into three parts: location code, family identifier, and gender digit.
What does the first digit of CNIC show?
The first digit represents the province where the CNIC holder is registered.
Are CNIC numbers random?
No, CNIC numbers follow a structured system linked to location and family records.
What do the middle digits of CNIC mean?
They represent a family-based identifier assigned by NADRA to maintain lineage records.
How to identify gender from CNIC?
The last digit determines gender:
- odd = male
- even = female







