Extract PAN Number from GSTIN: How It Works in India
In this article
- GSTIN Structure Includes PAN as Last 10 Characters
- Why the PAN Is Embedded in the GSTIN
- How to Extract PAN from GSTIN: Step-by-Step
- Common Mistakes When Extracting PAN from GSTIN
- Verification: How to Confirm the Extracted PAN Is Valid
- Special Cases: Individual Proprietors, HUFs, and Foreign Entities
- Where This Information Is Used: Business and Compliance
- What to Do If the Extracted PAN Doesn’t Match
- Questions people ask
The last ten characters of a GSTIN are the PAN of the registered taxpayer, as mandated by the GSTN under the GST Act.
GSTIN Structure Includes PAN as Last 10 Characters
A GSTIN is a 15-digit alphanumeric code assigned to every registered business under India’s Goods and Services Tax regime. The structure is fixed: the first two digits represent the state code, the next ten are the PAN of the entity, and the last three are check digits and a Z by default.
You do not need software or a database to extract the PAN. Simply take characters 3 through 12 of the GSTIN. For example, if the GSTIN is 27AABCF1234D1Z5, the PAN is AABCF1234D.
This is not a guess or a trick. It is defined in the GST Notification No. 12/2017-Central Tax dated 28th June 2017, issued by the GST Council and implemented by the GSTN. Every registered taxpayer’s GSTIN is generated using their existing PAN. The system auto-generates the GSTIN from the PAN, so the PAN is embedded in the GSTIN.
Why the PAN Is Embedded in the GSTIN
The GST system was designed to integrate with existing tax infrastructure. Before GST, businesses used PAN for income tax filings and bank accounts. Linking GST to PAN ensured continuity and reduced duplication.
The Income Tax Department and GSTN share a common database. When you apply for GST registration, the system pulls your PAN from the Income Tax records. It then appends the state code and check digits to form the GSTIN. This means the PAN in the GSTIN is the same as the one on your PAN card, Aadhaar-linked tax records, or income tax return filings.
If you are verifying a vendor’s GSTIN, checking that the last ten digits match their PAN card is a basic compliance step. If they differ, the GSTIN is either fake or mismatched.
How to Extract PAN from GSTIN: Step-by-Step
To extract the PAN manually from any GSTIN:
- Start with the full 15-digit GSTIN.
- Ignore the first two digits (state code). For example, in 29AAHCB2112A1Z5, ignore "29".
- Take the next ten digits: "AAHCB2112A".
- These ten characters are your PAN.
- The final three digits ("1Z5") are irrelevant to the PAN and are used for verification.
Worked example: GSTIN = 33AABCC1234D1Z8. Remove first two: "33". Take next ten: "AABCC1234D". That is the PAN.
If you have a GSTIN in a spreadsheet, use a formula: in Excel or Google Sheets, use =MID(A1,3,10) where A1 contains the GSTIN. This extracts characters 3 to 12.
Common Mistakes When Extracting PAN from GSTIN
Many users mistake the state code as part of the PAN. For instance, if a GSTIN starts with 27 (Maharashtra), they may think "27" belongs to the PAN. It does not. Only positions 3 to 12 matter.
Another error is counting characters from the wrong end. The PAN is not the last ten digits. It is the middle ten. The last three are always check digits — the 13th is a digit, the 14th is always "Z", and the 15th is a checksum digit. Confusing these with the PAN leads to invalid matches.
Also, some assume the PAN changes if they register in a new state. It does not. A business with multiple state registrations gets multiple GSTINs, but the PAN remains the same in all. For example, a company in Karnataka and Tamil Nadu will have GSTINs starting with 29 and 33 respectively, but the middle ten digits will be identical.
Verification: How to Confirm the Extracted PAN Is Valid
After extracting the ten-character PAN, validate it using the standard PAN format: five uppercase letters, four digits, and one uppercase letter. Example: ABCDE1234F.
The first five characters are alphabetic. The next four are numeric. The last is alphabetic. If the extracted string does not match this pattern, it is invalid.
Use the official GST portal (gst.gov.in) to verify. Go to Services > Search > Search by GSTIN/UIN. Enter the full GSTIN. The portal will return the legal name and the associated PAN. Compare that PAN to the one you extracted.
Alternatively, use the Income Tax Department’s e-Filing portal to verify the PAN. Enter the extracted PAN. If it exists in the database, it is valid. If the system says "PAN not found", the GSTIN is likely fraudulent or incorrectly entered.
Special Cases: Individual Proprietors, HUFs, and Foreign Entities
For individual proprietors, the GSTIN’s PAN is the same as the owner’s personal PAN. There is no separate business PAN. The same applies to Hindu Undivided Families (HUFs) — the PAN of the Karta is used.
For foreign entities without a PAN, the GSTIN uses a special identifier. These GSTINs start with 99. The middle ten digits are not a PAN but a unique code assigned by the GSTN. For example, a GSTIN like 99AABCD9876M1Z5 has no Indian PAN. The extraction rule does not apply here.
Always check the first two digits. If they are 99, the entity is not an Indian taxpayer and has no PAN. Do not assume the last ten digits are a PAN in such cases.
Where This Information Is Used: Business and Compliance
Businesses use this extraction daily. When reconciling GST invoices with bank records, the PAN is a key match point. If a vendor’s invoice shows GSTIN 27AABCF1234D1Z5, you extract AABCF1234D and match it to their PAN card copy.
When filing GSTR-1 or GSTR-3B, the system auto-populates the PAN from the GSTIN. If you manually enter a GSTIN, the system validates that the PAN part is correctly formatted. Errors here cause return rejection.
Chartered accountants and GST practitioners routinely verify GSTIN-PAN links during audits. A mismatch can trigger a notice from the GST department. Always cross-check the PAN from the GSTIN against the document provided by the taxpayer.
What to Do If the Extracted PAN Doesn’t Match
If the extracted PAN from the GSTIN does not match the PAN on the vendor’s PAN card, do not proceed with the transaction. The GSTIN is invalid or the vendor has provided false documents.
Ask the vendor to provide their GST registration certificate. It must list the GSTIN and the PAN. Compare both. If they still don’t match, report the issue to the GSTN via the grievance portal on gst.gov.in.
Never accept a GSTIN without verifying the PAN. Fraudulent GSTINs are common in fake invoicing schemes. The Income Tax Department tracks mismatches in real time. Using a mismatched GSTIN in your books may lead to disallowance of input tax credit and penalties.
Questions people ask
Can I generate a GSTIN from a PAN?
Yes, but only through the GST portal during registration. You cannot manually create a valid GSTIN. The system adds the state code and check digits automatically. If you try to construct one, it will fail validation.
Is the PAN in a GSTIN always 10 characters?
Yes, for all Indian taxpayers. The 15-digit GSTIN has exactly ten characters in positions 3 to 12. Only GSTINs starting with 99 (foreign entities) are exceptions, and those do not contain a PAN.
Do I need to update the PAN if I change my business name?
No. The PAN remains the same. Only the business name in the GST registration changes. The GSTIN stays unchanged unless you cancel and re-register. The PAN embedded in it remains valid.
Can two businesses have the same GSTIN?
No. Each GSTIN is unique to one legal entity at one registered place of business. Even if two businesses have the same PAN (e.g., a sole proprietor with two shops), they get separate GSTINs for each state or location, but the middle ten digits (the PAN) remain identical across all their GSTINs.