GST reference guide

GST number format, explained

A GSTIN is fifteen characters long, and each position has a job. Here is what every part means, how the check character is calculated and how to spot a typing error before it reaches an invoice.

The 15-character layout

Every GST registration number follows the same pattern. Read from left to right, the first two characters locate the registration, the next ten identify the taxpayer through its PAN, and the last three distinguish the registration and protect against errors. Below is a sample number used for illustration only.

27AAFCE7126D1ZU
  1. State code27Two digits for the state or union territory where the registration sits. 27 is Maharashtra.
  2. PANAAFCE7126DThe ten-character PAN of the business or person. Positions 3 to 7 are letters, 8 to 11 digits and 12 a letter.
  3. Entity number1Tells apart several registrations held under the same PAN in one state.
  4. Fixed ZZThe 14th character is Z in the standard format. It is reserved for future use.
  5. Check characterUA computed character, from 0-9 or A-Z, that helps catch typing mistakes.

Reading the PAN inside a GSTIN

The PAN is the part most people recognise. Its fourth letter says what kind of person or entity holds it, which is useful when you are checking a supplier’s details against a document. In the sample, AAFCE7126D has a C in the fourth position, which marks a company.

C

Company

P

Individual

F

Partnership firm or LLP

H

Hindu undivided family

T

Trust

A

Association of persons

The PAN is issued by the Income Tax Department. A GSTIN does not replace it, and an invoice that quotes only the PAN is not a substitute for a GST number where one is required.

Entity number, Z and state codes

The entity number is usually 1 for the first registration a PAN holds in a state. When the same PAN is registered again in that state, for example for another place of business or a separate line of activity, the number moves on to 2, 3 and so on, and then to letters. The fixed Z that follows is a placeholder in the standard format. Its presence is a quick sign that the number is in the correct shape.

For the two digits at the start, use the code list in the GST state code guide. Codes such as 07 for Delhi need their leading zero, and a number that begins with a code belonging to another state suggests the wrong registration was copied.

How the check character is calculated

The final character is not random. It is derived from the first fourteen characters, so a single mistyped letter or digit will usually produce a check character that no longer matches. Here is the method, using the sample number:

  1. Give every character a value: digits 0 to 9 keep their value, and A to Z count from 10 to 35.
  2. Multiply each value by 1 in odd positions (1, 3, 5 … 13) and by 2 in even positions (2, 4, 6 … 14).
  3. Split each product into base-36 parts: the number of full 36s, plus the remainder. Add the two together. A product of 70 becomes 1 + 34 = 35.
  4. Add all fourteen results to get a total. In the sample it is 186.
  5. Take 186 modulo 36, which leaves 6. Subtract that from 36 to get 30, and the character with value 30 is U.
Working for 27AAFCE7126D1Z (the first fourteen characters of the sample)
PositionCharacterValueWeightProductBase-36 result
122×122
277×21414
3A10×11010
4A10×22020
5F15×11515
6C12×22424
7E14×11414
877×21414
911×111
1022×244
1166×166
12D13×22626
1311×111
14Z35×27035
Total, then 36 − (total mod 36)186 → 30 → U

Common typing mistakes

Most errors come from characters that look alike. The positions have rules, so some slips are obvious once you look at the structure.

0 and O, 1 and I, 8 and B

These pairs look alike but belong to different positions. Positions 1 and 2 and positions 8 to 11 take digits only, while positions 3 to 7 and 12 take letters only. A letter O in the state code, or a 0 in the PAN letters, is a mistake whatever the rest of the number looks like.

Missing or extra characters

The number must have exactly fifteen characters. A dropped letter moves every later character into the wrong position.

If the format check fails, compare the number character by character with the source document before you assume the registration is wrong. The fix is usually a typing error. The bulk GSTIN lookup runs this format and check-character test on every entry before it sends any request, so a typo is caught without using a lookup.

What a valid format does and does not prove

A valid format is a first filter, not a verdict. It tells you that the number is well formed and that its check character agrees with the rest of it. It cannot tell you whether the business is active, whether the registration has been cancelled, or whether a particular invoice is genuine. For those checks, look up the registration on the official GST portal and compare the legal name, trade name and address with your records.

The GST search help page explains GSTIN lookups, business profiles and return records.

Frequently asked questions

Is a GSTIN the same as a PAN?

No. The PAN is a ten-character number issued under income-tax rules. A GSTIN contains that PAN inside it, with a state code in front and an entity number, Z and check character after it. One PAN can hold a GSTIN in each state where it is registered, and sometimes more than one in the same state.

Does a correctly formatted GSTIN prove the business is registered?

No. A format check only confirms that the number has the right shape and a matching check character. It does not show whether the registration is active, cancelled or suspended. Confirm the status on the official GST portal.

Why does the state code need a leading zero?

State codes are always two digits, so Delhi is 07, not 7. Dropping the zero shifts every later character out of its position, and the number will not validate.

Should I write the GSTIN in capitals?

Yes. The letters in a GSTIN are uppercase. GSTVibe converts lowercase input to uppercase before it checks the number, but invoices and forms should use capitals.

What does a checksum mismatch mean?

It means the first fourteen characters do not agree with the check character, so at least one character is wrong. The usual cause is a typing or copying slip, such as a letter O typed for a zero. Compare the number with the source document character by character. If it still fails, confirm the number on the official GST portal before you conclude the registration is wrong.

Can the check character be a letter?

Yes. It can be any digit from 0 to 9 or any capital letter from A to Z, which gives 36 possible values. A letter in that final position is normal and is not a sign of an error.

Can I work out the check character myself?

Yes. Follow the five steps above: give each character a value, apply the weights, add the base-36 parts, take the total modulo 36 and subtract the remainder from 36. It helps you understand how the number is built, but a correct check character only shows that the number is well formed. It does not confirm the registration.

Why must the 14th character be Z?

In the standard format the 14th character is a fixed Z. If a different letter or digit appears there, the number does not follow the standard layout and the format check will reject it. Do not change that character just to make a number pass. Find out where the number came from instead.