Easy Appetizers

Simple appetizers, snacks and home cooking answers

Get PAN Number from GSTIN: How to Extract the Code

· 5 min read · Mains

In this article
  1. GSTIN Structure and PAN Location
  2. Verifying the Extracted PAN
  3. PAN and GSTIN Differences
  4. Entity Codes and Registration Logic
  5. Questions people ask

The PAN number is embedded as the middle ten characters of a 15-digit GSTIN.

Many people believe you need a special tool or government login to find a PAN from a GSTIN. You can actually extract it manually because the GSTIN is a structured code where the PAN is a core component.

GSTIN Structure and PAN Location

A Goods and Services Tax Identification Number (GSTIN) consists of 15 alphanumeric characters. These characters are not random; they follow a strict format mandated by the government to identify the taxpayer's location and identity.

The first two digits represent the state code. The next ten characters are the Permanent Account Number (PAN) of the business or the individual proprietor. The 13th digit is the entity code, which identifies the number of registrations the business has within that state. The 14th character is usually the letter 'Z' by default. The 15th character is a check code used for error detection.

To get the PAN, you simply ignore the first two digits and the last three digits. The remaining ten characters in the middle are the exact PAN registered with the Income Tax Department.

Worked Example of Extraction

Suppose you have a GSTIN: 27ABCDE1234F1Z5.

  1. Identify the first two digits: 27 (State code for Maharashtra).
  2. Identify the last three characters: 1Z5 (Entity code, default char, and check digit).
  3. Extract the middle section: ABCDE1234F.

In this example, the PAN number is ABCDE1234F.

Verifying the Extracted PAN

Extracting the characters gives you the number, but it does not verify if the business is currently active or if the PAN belongs to the person claiming it. To confirm the identity, you must use the official GST portal.

Navigate to the Search Taxpayer menu on the GST portal. Select the option to search by GSTIN and enter the full 15-digit code. The system will return the legal name of the business, the trade name, and the registration date.

If the legal name returned by the portal matches the name associated with the PAN you extracted, the identity is verified. If the portal shows the GSTIN as "Cancelled" or "Inactive," the business is no longer authorized to collect GST, even if the PAN remains valid for income tax purposes.

PAN and GSTIN Differences

A common misconception is that a PAN and a GSTIN are the same thing or that one replaces the other. A PAN is a permanent identity issued by the Income Tax Department for all tax-related activities. A GSTIN is a specific registration for the indirect tax system (GST) and is tied to a specific state.

One PAN can be linked to multiple GSTINs. For example, if a business operates offices in both Karnataka and Tamil Nadu, it will have one PAN but two different GSTINs—one starting with 29 and one starting with 33. The middle ten digits of both these GSTINs will be identical because they belong to the same legal entity.

Feature PAN GSTIN
Length 10 Characters 15 Characters
Issuing Authority Income Tax Department GST Council/GSTN
Scope National (One per entity) State-specific (Multiple possible)
Purpose Direct Tax/Identity Indirect Tax/VAT/Service Tax

Entity Codes and Registration Logic

The 13th character of the GSTIN is the entity code. This is a number from 1 to 9. If a business has only one registration in a state, this digit is 1. If they open a second branch in the same state that requires a separate registration, the second GSTIN will have a 2 in the 13th position.

The 14th character is almost always 'Z'. This is a placeholder used by the GST Network to maintain the 15-digit length. The 15th character is a checksum. This is a mathematically generated character that prevents typing errors; if you mistype one digit of the GSTIN, the checksum will not match, and the portal will reject the entry.

When you are extracting a PAN for a vendor or a client, always ensure you are copying the characters exactly. A single wrong letter in the PAN section will lead to a failure when filing TDS returns or verifying the entity via the Income Tax Department portal.

Questions people ask

Can I get a GSTIN if I only have a PAN?

You cannot simply "extract" a GSTIN from a PAN because the GSTIN contains state-specific codes and entity numbers that are not part of the PAN. To find a GSTIN using a PAN, you must use the "Search Taxpayer" feature on the GST portal, provided the business has registered for GST and their details are public.

What if the GSTIN is not 15 digits long?

A valid GSTIN must be exactly 15 characters. If the number you have is shorter or longer, it is either a typo or not a GSTIN. Check if you are looking at a VAT number or a Service Tax registration from the pre-GST era, as those followed different formats.

Does every business with a PAN have a GSTIN?

No. Only businesses that exceed the turnover threshold set by the government or those who choose to register voluntarily have a GSTIN. Many small traders and freelancers have a PAN for income tax but are not registered under GST.

Is it legal to extract a PAN from a GSTIN?

Yes. The GSTIN is a public identifier used for invoicing and business transparency. Extracting the PAN from a GSTIN is simply reading a public code. However, using that PAN for unauthorized purposes or fraudulent activities is illegal under the Income Tax Act.

Why does the GST portal show "Invalid GSTIN" for a known business?

This usually happens if the GSTIN has been cancelled by the tax authorities due to non-filing of returns or if the business has surrendered its registration. In such cases, the PAN remains valid, but the GSTIN is no longer active for billing.