IndianBusinessTools
← Blog

GSTIN Checksum Digit and Format: How Validation Works

19 November 2026 · 5 min read

Paste a GSTIN to check its format and checksum digit, and see the state and PAN inside it

Check GSTIN

A GSTIN is the 15-character number you get when you register for GST. Each character has a job. The last one is the checksum digit (also called the check digit): it is worked out from the other 14. This lets software catch most typos before a wrong GSTIN goes on an invoice.

This post explains each character, shows how the checksum digit is worked out, and explains what a "valid" or "invalid" result really means. To check a GSTIN now, use the GSTIN Validator.

The 15 characters

Take the sample GSTIN 27AAPFU0939F1ZV:

CharactersIn the sampleWhat it means
1–227State code. 27 is Maharashtra.
3–12AAPFU0939FThe PAN of the business.
131Registration number for this PAN in this state.
14ZFixed letter. Z for a normal registration.
15VChecksum digit, worked out from the first 14.

A few things to know about each part:

How the GSTIN checksum digit is worked out

The method is called "Luhn mod 36". It is not written in the CGST Act or Rules. GSTN's system uses it, and the same method is published in open-source code such as python-stdnum. It matches real GSTINs.

Step 1: give each character a value. Digits keep their value (0 to 9). Letters go from A = 10 to Z = 35.

Step 2: multiply. Start from the 14th character and go left. Multiply the 14th by 2, the 13th by 1, the 12th by 2, and so on.

Step 3: split each product by 36. If a product is 36 or more, divide it by 36. Add the result and the remainder. Example: 70 ÷ 36 = 1, remainder 34. So 70 becomes 1 + 34 = 35.

Step 4: add them up and find the check digit. Divide the total by 36 and take the remainder. Subtract the remainder from 36. The answer is the value of the check digit. (If the remainder is 0, the check digit is 0.)

Here is the sample, 27AAPFU0939F1Z:

PositionCharacterValue×ProductAfter step 3
122122
27721414
3A1011010
4A1022020
5P2512525
6F1523030
7U3013030
800200
999199
1033266
1199199
12F1523030
1311111
14Z3527035
Total221

So the check digit is V, and 27AAPFU0939F1ZV passes.

Example of a typo: someone types 27AAPFU0993F1ZV. The 9 and 3 are swapped. Now the first 14 characters give P, not V. The check fails, and you know to look at the number again.

You do not have to do this by hand. The GSTIN Validator does it in your browser. The GSTIN you type is not sent anywhere.

What "invalid" means

The validator can fail a GSTIN for four reasons:

  1. Wrong length. A GSTIN has exactly 15 characters. Look for a missing or extra character.
  2. Wrong pattern. For example, a letter where the state code should be, or no Z in 14th place. This is often a mix-up between O and 0, or I and 1.
  3. Unknown state code. The first two digits are not a GST state or union territory code.
  4. Checksum digit does not match. Usually a typo in one character, or two characters swapped.

If a GSTIN fails, ask the business to send it again. Copy it from their invoice or registration certificate. Do not guess the fix.

What "valid" does not mean

A GSTIN that passes the check only fits together. The check cannot tell you:

Example: a supplier gives you a GSTIN on a bill for ₹50,000. It passes the check. But on the GST portal it shows "Cancelled" from last month. If you claim input tax credit on that bill, the credit can be denied.

To check, open Search Taxpayer on the GST portal. Type the GSTIN and the captcha. Look at the status, the legal name and the date of registration. If your supplier's registration may be cancelled, see automatic GST cancellation under Rule 20.

Quick checklist for a new supplier's GSTIN

  1. Check it with the GSTIN Validator.
  2. See that the state code matches the state on their address.
  3. See that the PAN inside it matches their PAN card, if you have it.
  4. Search it on the GST portal and check that it is Active.
  5. Check that the legal name on the portal matches the name on their invoice.

Sources

This post is correct as of 19 November 2026. The checksum method is not in the CGST Act or Rules. We checked it against the sample GSTIN above and against open-source code. This is not legal or tax advice.

Frequently asked questions

What is the check sum digit in a GSTIN?

It is the 15th (last) character. It is worked out from the first 14 characters, so a typo in any of them usually changes it. Example: in 27AAPFU0939F1ZV, the first 14 characters give V. If you swap two digits by mistake and type 27AAPFU0993F1ZV, the first 14 characters now give P, not V, so the check fails.

If a GSTIN passes the check, is the business registered?

Not always. The check only shows that the 15 characters fit together. It does not show that the GST department issued that number, or that it is still active. A cancelled GSTIN still passes the check. To see if it is active, search for it on the GST portal's Search Taxpayer page.

Is there a bulk GSTIN validator?

Not on this site yet. Our GSTIN Validator checks one GSTIN at a time, in your browser. To check many, paste them in one by one. To check if they are active, the GST portal's Search Taxpayer page also works one at a time.

What does the 13th character of a GSTIN mean?

It counts registrations for the same PAN in the same state. The first is 1, the second is 2, and so on up to 9. After 9, letters are used. Example: a firm with two registrations in Maharashtra under the same PAN has two GSTINs. Both start with 27AAPFU0939F. The first has 1 as its 13th character, and the second has 2. Their check digits are different too.

Why does a GSTIN always have Z as the 14th character?

Z is the default letter for a normal registration. Some special registrations can have another letter there. For example, an e-commerce operator's registration for collecting TCS often has C. Our GSTIN Validator checks normal GSTINs, so it expects Z.

Found a mistake, or want a tool we don’t have? Tell us — we read every message.