Curious Minds

Clear answers to science and history questions

GSTIN from PAN: How the Number Is Built

· 6 min read · Science

No, a GSTIN is not simply the PAN with extra digits appended in a fixed way. A GSTIN (Goods and Services Tax Identification Number) is a 15-character alphanumeric identifier, and the PAN forms its central 10 characters. The remaining five characters are derived from the state code, the entity's registration sequence within that state, the PAN's fourth character (which encodes the holder type), a default letter, and a check digit. So while every regular GSTIN contains a PAN, you cannot reconstruct a GSTIN from a PAN alone without knowing the state and registration details.

What a GSTIN Actually Is

Under India's Goods and Services Tax regime, which took effect in July 2017, every registered business is assigned a GSTIN. The number is 15 characters long and is structured so that the first two digits identify the state or union territory where the taxpayer is registered, and characters three through twelve are the PAN of the business or person. The final three characters carry registration and validation information.

The GSTIN is not a random string; it is a formatted identifier with defined rules. Understanding those rules explains why the answer to "GSTIN from PAN?" is "not directly" — the PAN is embedded, but the surrounding characters depend on registration facts that the PAN does not contain.

How the 15 Characters Break Down

Each position in a GSTIN has a specific meaning. The structure is standard across all regular taxpayers:

  • Characters 1–2: State code. A two-digit number assigned to the state or union territory of registration. For example, 27 is Maharashtra, 29 is Karnataka, 07 is Delhi, and 33 is Tamil Nadu. These codes follow the same numbering used for TIN (Taxpayer Identification Number) under the earlier VAT system.
  • Characters 3–12: The PAN of the registered person or entity. This is the ten-character alphanumeric Permanent Account Number issued by the Income Tax Department.
  • Character 13: The entity number or registration sequence. This is the number of the registration within that state for that PAN. The first registration in a state is typically 1, the second is 2, and so on. This allows one PAN to hold multiple GST registrations in the same state — for example, different business verticals.
  • Character 14: A default character, which is the letter Z in the standard format.
  • Character 15: A check digit. This is an alphanumeric character computed from the preceding 14 characters using a defined algorithm, used to detect typing errors.

A concrete example makes this clearer. Suppose a business has PAN ABCDE1234F and is registered in Maharashtra (state code 27) as its first registration in that state. Its GSTIN would be 27ABCDE1234F1Z5, where the final 5 is the check digit calculated from the first 14 characters. Change the state to Karnataka (29) and the GSTIN becomes 29ABCDE1234F1Z plus a different check digit.

Why You Cannot Derive a GSTIN from a PAN Alone

The PAN supplies only 10 of the 15 characters. The missing pieces are the state code, the registration sequence, and the check digit. The check digit is computable if you know the other 14 characters, but the state code and sequence are not encoded in the PAN. A single PAN can be associated with multiple GSTINs across different states and even multiple GSTINs within one state.

This is a common misconception: that a GSTIN is just the PAN with a state prefix and a suffix. In practice, the state and registration details must be known or looked up. There is no public formula that takes a PAN and returns a unique GSTIN, because the mapping is one-to-many.

What you can do is verify a claimed GSTIN against its PAN. If someone gives you a GSTIN, characters 3–12 should match the PAN they claim. If they do not match, the GSTIN is either misquoted or does not belong to that PAN.

How to Find the GSTIN for a Given PAN

Since the GSTIN cannot be calculated from the PAN, the practical route is a lookup. The GST system maintains a public search facility where a GSTIN can be validated. To find GSTINs associated with a PAN, the usual approach is:

  1. Use the GST portal's search taxpayer function. You can search by PAN and the portal returns the associated GSTINs and trade names, subject to the information the taxpayer has made public.
  2. Check business documents — invoices, letterheads, and registration certificates — which are required to display the GSTIN.
  3. Ask the business directly. Registered persons are expected to provide their GSTIN on request for legitimate business purposes.

Note that the search results depend on what is publicly disclosed. A taxpayer may have opted to keep certain details private, so a search by PAN may not return every registration.

Special Cases: TDS, TCS, and Other GSTIN Types

Not every GSTIN follows the standard PAN-based format exactly. Some registrations are issued to entities that are not regular taxpayers, and their GSTINs have a different structure:

  • TDS deductor GSTIN: Issued to entities required to deduct tax at source. The format differs: the 13th character is not a sequence number but a specific letter, and the PAN may be replaced by a TAN in some cases.
  • TCS collector GSTIN: Similar to TDS, with its own format rules for e-commerce operators collecting tax at source.
  • UN bodies, embassies, and similar entities: These may receive a GSTIN where the PAN portion is replaced by a UIN (Unique Identification Number) issued for the purpose.

For ordinary businesses, the standard 15-character format with the PAN embedded applies. The special formats are a reminder that "GSTIN from PAN" is a rule of thumb, not a universal law.

Common Problems and Checks

Errors in GSTINs are common because the number is long and mixes letters and digits. A few practical checks catch most mistakes:

  • Length: A valid GSTIN is exactly 15 characters. Anything shorter or longer is wrong.
  • PAN match: Characters 3–12 should equal the PAN of the registered person. If they do not, either the GSTIN or the PAN is wrong.
  • State code: The first two digits should correspond to a valid state or union territory code. Codes outside the assigned range indicate an error.
  • Check digit: The final character is a checksum. A GSTIN validation tool will flag a mismatch, which usually means a transcription error somewhere in the string.

A frequent problem is assuming that a business with one PAN has only one GSTIN. A company operating in several states will have a separate GSTIN for each state where it is registered, all sharing the same PAN but differing in the state code and check digit.

Frequently Asked Questions

Can I generate a GSTIN from a PAN number?

No. A GSTIN contains a PAN, but the state code, registration sequence, and check digit are not derivable from the PAN alone. You need the registration details or a lookup on the GST portal.

Is the GSTIN the same as the PAN?

No. The PAN is a 10-character income tax identifier. The GSTIN is a 15-character GST identifier that embeds the PAN as its middle portion. They serve different tax systems.

Can one PAN have multiple GSTINs?

Yes. A single PAN can be associated with multiple GSTINs, typically one per state of registration, and potentially more than one within a state if the business has separate registrations there.

What is the last character of a GSTIN?

It is a check digit computed from the first 14 characters. Its purpose is to detect errors such as a swapped or mistyped character.

Do all GSTINs contain a PAN?

Most regular taxpayer GSTINs do. However, certain special registrations — such as those for TDS deductors, TCS collectors, and some UN or embassy entities — use a different structure and may not embed a standard PAN.

How can I verify a GSTIN against a PAN?

Compare characters 3–12 of the GSTIN with the PAN. If they match, the GSTIN is consistent with that PAN. For full validation, use the GST portal's search facility, which also checks the check digit and registration status.

In this article
  1. What a GSTIN Actually Is
  2. How the 15 Characters Break Down
  3. Why You Cannot Derive a GSTIN from a PAN Alone
  4. How to Find the GSTIN for a Given PAN
  5. Special Cases: TDS, TCS, and Other GSTIN Types
  6. Common Problems and Checks
  7. Frequently Asked Questions