GSTR for CA portal
GSTIN Format Explained: State Code, PAN, Entity Number and Check Digit
Every GST registration has a 15-character GSTIN. Knowing how it is built helps you spot typing mistakes, read a client's state and PAN at a glance and understand why software rejects some numbers. Here is the structure, character by character.
The 15 characters
- Characters 1–2: state code. The two-digit code of the state or union territory of registration, for example 24 for Gujarat or 27 for Maharashtra.
- Characters 3–12: PAN. The PAN of the business (or the TAN for tax deductors).
- Character 13: entity number. 1 for the first registration of that PAN in the state, 2 for the second, and so on (letters are used after 9).
- Character 14: Z by default. Currently "Z" for most registrations.
- Character 15: check digit. A character calculated from the first 14, used to detect errors.
State and UT codes
01 Jammu & Kashmir, 02 Himachal Pradesh, 03 Punjab, 04 Chandigarh, 05 Uttarakhand, 06 Haryana, 07 Delhi, 08 Rajasthan, 09 Uttar Pradesh, 10 Bihar, 11 Sikkim, 12 Arunachal Pradesh, 13 Nagaland, 14 Manipur, 15 Mizoram, 16 Tripura, 17 Meghalaya, 18 Assam, 19 West Bengal, 20 Jharkhand, 21 Odisha, 22 Chhattisgarh, 23 Madhya Pradesh, 24 Gujarat, 26 Dadra & Nagar Haveli and Daman & Diu, 27 Maharashtra, 29 Karnataka, 30 Goa, 31 Lakshadweep, 32 Kerala, 33 Tamil Nadu, 34 Puducherry, 35 Andaman & Nicobar Islands, 36 Telangana, 37 Andhra Pradesh, 38 Ladakh, 97 Other Territory.
How the check digit works
The 15th character is computed from the first 14 using a weighted sum over the 36 possible characters (0–9 and A–Z): each character is given its position value, alternate positions are weighted by 1 and 2, the results are folded and added, and the check character is chosen so the total meets the rule. The practical point: if any single character is typed wrongly, the check digit almost never matches – which is how software catches typos instantly without looking anything up.
What validation does – and does not – tell you
- A valid check digit means the GSTIN is correctly formed. It does not prove the registration exists or is active.
- To confirm status (active, cancelled, suspended) and the legal name, search the GSTIN on the GST portal.
- For B2B invoices, an active and correct buyer GSTIN matters: a wrong GSTIN means the buyer does not get ITC.
Common mistakes
- Letter O and digit 0, or letter I and digit 1, swapped – especially in the PAN part.
- A missing character from copying across systems.
- Using a client's GSTIN from another state – same PAN, different state code and often a different entity number.
- Assuming the state from the address instead of the GSTIN when deciding inter- or intra-state supply.
GSTIN checks in the GSTR for CA portal
When you add or import a client in the GSTR for CA portal, the GSTIN is validated as you type, and the state and PAN are shown immediately. The GSTR-1 preparation tool also checks buyer GSTINs in marketplace reports and moves invalid ones to B2C so the return does not fail on the portal. See importing clients from Excel for bulk checks.
Frequently asked questions
Can two GSTINs have the same PAN?
Yes. A business has a separate GSTIN for each state it is registered in, and can have more than one in a state.
Is a GSTIN with a valid check digit always genuine?
No. It is correctly formed; check the GST portal to confirm it is registered and active.
What does the 13th character mean?
It counts registrations under the same PAN in the same state.
Why does my GSTIN start with 97?
97 is used for Other Territory registrations.