Ai Accountant

GSTIN Format: The Complete 15-Character Structure Guide

Updated On: 
August 17, 2026
|  3 min read
AI Accountant Dashboard

Key Takeaways

  • GSTIN Number Format, Defined: A GSTIN is exactly 15 characters, a 2-digit state code, a 10-character PAN, a 1-digit entity code, a default "Z", and a checksum character. Every position is fixed and testable in under 30 seconds, no valid GSTIN deviates from this pattern.
  • The Most Common Format Mistake: Teams often misread the 13th character, the entity code, when a supplier holds multiple registrations in the same state. Using "1" instead of "2" routes ITC to the wrong ledger, and the intended entity's GSTR-2B never sees the invoice.
  • Consequence Of An Incorrect GSTIN On An Invoice: Under Section 16(2)(aa) of the CGST Act, ITC is available only when supplier-invoice details flow to the recipient's GSTR-2B. A wrong recipient GSTIN breaks this chain entirely, the invoice will not appear in 2B, and ITC is disallowed until corrected.
  • Edge Case — Inactive Or Cancelled GSTIN: A correctly formatted GSTIN can still fail if the registration is inactive or cancelled. E-invoicing portals reject IRN generation for cancelled GSTINs, so always verify live status before onboarding or invoicing.
  • Operational Rule For Vendor Masters: Capture and validate GSTIN format at vendor creation, not at payment or filing. The 14th character is always "Z", and the first two digits must match the state of registration, two simple checks that catch most typos.

A single wrong character in a GSTIN blocks your Input Tax Credit. That is not a future risk, if your vendor master carries a transposed digit, the invoice never appears in your GSTR-2B, and you are chasing a reconciliation gap at month-end instead of closing the books.

A GSTIN (Goods and Services Tax Identification Number) is a 15-character alphanumeric identifier assigned to every GST-registered taxpayer in India. Each of the 15 positions carries a specific meaning defined by the GSTN and CBIC. Knowing the structure lets you catch errors at ingestion — before they become 2B mismatches or blocked ITC.

GSTIN Format: The Short Answer

A GSTIN is a fixed 15-character alphanumeric code issued by the GSTN (Goods and Services Tax Network) to every registered taxpayer, structured so that each position carries unambiguous, verifiable information per CBIC guidelines.

  • 1–2 — 2 digits, State or UT code (Indian Census 2011), Example: 27 = Maharashtra
  • 3–12 — 10 alphanumeric, PAN of the taxpayer, Example: ABCDE1234F
  • 13 — 1 alphanumeric, Entity code (registration count in state), Example: 1 = first registration
  • 14 — 1 character, Default reserved character, Example: Z (always)
  • 15 — 1 alphanumeric, Checksum digit (mod-36 algorithm), Example: 5

Full example: 27ABCDE1234F1Z5 — a Maharashtra-registered entity, PAN ABCDE1234F, first registration in that state.

The single rule most teams get wrong: the 14th character is always "Z" without exception. If you see any other character in position 14, the GSTIN is invalid — stop there, do not post the invoice.

What Is The Correct GSTIN Format?

A GSTIN's 15-character gstin number format is not arbitrary, each segment is independently verifiable, which is what makes self-validation practical.

Positions 1–2: State Code

The first two digits identify the state or union territory of registration using codes from the Indian Census 2011, as documented on the GST portal. Common codes include 07 (Delhi), 27 (Maharashtra), 29 (Karnataka), 09 (Uttar Pradesh), and 33 (Tamil Nadu). Codes run from 01 to 38 for states and UTs, with 97 used for other territories and 99 for centre jurisdiction. After the Jammu and Kashmir reorganisation, J and K became code 01 and Ladakh became code 38.

Positions 3–12: PAN Segment

Characters 3 through 12 are identical to the taxpayer's PAN (Permanent Account Number), a 10-character alphanumeric issued by the Income Tax Department. This segment follows standard PAN structure: first three characters are letters, fourth character denotes the taxpayer type (P for individual, C for company, F for firm, etc.), fifth character is the first letter of the surname or company name, followed by four digits and one check letter. A GSTIN with an embedded PAN that does not match the entity's actual PAN is structurally invalid.

Position 13: Entity Code

The 13th character is a sequential count of how many GST registrations the same PAN holds within that state. Values run 1 through 9 for the first nine registrations, then A through Z for registrations 10 through 35, per GSTN registration rules. A supplier with two business verticals separately registered in Maharashtra will have entity codes "1" and "2", two distinct GSTINs sharing the same state code and PAN.

Positions 14–15: Default Z And Checksum

Position 14 is always "Z", reserved for future use and fixed for all current registrations. Position 15 is a checksum character calculated using a mod-36 algorithm applied to the preceding 14 characters. The checksum can be a digit (0–9) or a letter (A–Z). Manual calculation is complex, but the GSTN Search Taxpayer tool instantly confirms whether a full 15-character string is live and correctly formed.

How To Quickly Self-Validate A GSTIN Before Booking?

The format of gstin allows a structured 30-second check that catches the majority of errors before an invoice enters your system. No tool is required for the first five steps.

The 30-Second Checklist

  1. Count characters. Exactly 15, no more, no fewer. A 14-character string is wrong, so is 16.
  2. Check positions 1–2 against the supplier's state. If your Maharashtra supplier shows "29" (Karnataka), something is wrong. Cross-reference against the GST state code list.
  3. Match positions 3–12 to the PAN. Ask for the PAN registration certificate if you do not have it. These 10 characters must be identical.
  4. Verify position 13 is a valid entity code. It must be 1–9 or A–Z. If a supplier has a single registration, it will be "1". Confirm with their registration certificate if they have multiple registrations in the same state.
  5. Confirm position 14 is "Z". Any other character here, the GSTIN is invalid. Full stop.
  6. Run the GSTIN through the Search Taxpayer tool on the GST portal to confirm the legal name, state, and active status. This also validates the checksum without manual calculation.

Clean Example Vs. Failed Check

Valid GSTIN: 27ABCDE1234F1Z5

  • 27 → Maharashtra
  • ABCDE1234F → PAN
  • 1 → First registration
  • Z → Position 14 (correct)
  • 5 → Checksum

Invalid GSTIN: 27ABCDE1234F1O5

  • Position 14 is "O" instead of "Z" — this GSTIN fails immediately at step 5. Do not post the invoice, return it for correction.

Why This Matters For ITC Under Rule 46

Rule 46 of the CGST Rules mandates that a tax invoice carry the correct GSTIN of both supplier and recipient. Under Section 16(2)(a) and 16(2)(aa) of the CGST Act, ITC is conditional on the invoice being a valid tax document and the supplier having furnished those details in GSTR-1 so they flow to the recipient's GSTR-2B. A wrong GSTIN at the point of booking breaks that chain. Catching it here, not at reconciliation, saves you the amendment cycle.

If you process high volumes of vendor invoices, a system that validates GSTIN format on ingestion and flags mismatches against your vendor master before the entry posts removes the manual step entirely. AI Accountant's AP automation does exactly this, it checks GSTIN, legal name, and address against your Tally vendor master at import, surfacing row-level errors before they reach your books.

Common GSTIN Mistakes And How They Hit ITC, 2B And E-Invoicing

An incorrectly formatted GSTIN does not just cause a data-entry irritation, it triggers a specific, traceable compliance failure at the gstin no format level, from e-invoice rejection to permanent ITC loss.

The Five Errors That Break The ITC Chain

1. Wrong State Code (Positions 1–2)

The invoice uploads to GSTR-1 under the wrong state's jurisdiction. The intended recipient's GSTR-2B never receives the entry. ITC is blocked until the supplier amends GSTR-1. Per Section 37 of the CGST Act, amendments to GSTR-1 must be made by the 30th of November of the following financial year or before the date of filing the annual return, whichever is earlier — missing this window means the error cannot be corrected in the returns system.

Fix: Supplier amends GSTR-1 in the next open return period, citing the correct recipient GSTIN. Recipient holds ITC claim until the corrected entry appears in 2B.

2. PAN Mismatch (Positions 3–12)

This renders the GSTIN structurally invalid. E-invoicing portals validate GSTINs against the GSTN master database at IRN generation — an invalid GSTIN returns an error and the IRN is not issued. The invoice cannot be a valid tax document under Rule 46 of the CGST Rules.

Fix: Supplier must cancel the invoice (if e-invoicing applies) and reissue with the correct GSTIN. No amendment route exists for an IRN already rejected.

3. Wrong Entity Code (Position 13)

If a business has two registrations in the same state and the supplier uses the wrong code, the invoice appears in the GSTR-2B of the unintended registration. The correct entity will not see the credit.

Fix: Supplier amends GSTR-1 in the next period to reflect the correct entity's GSTIN. Recipient coordinates to ensure the corrected entry appears in the right entity's 2B before claiming ITC.

4. Typographical Errors (Any Position)

A single transposed character, "O" for "0", "l" for "1", makes the GSTIN invalid. E-invoicing validation checks every GSTIN field against the live GSTN database. An unrecognised GSTIN triggers an IRN rejection error. Even outside e-invoicing, the invoice will not reconcile in 2B.

Fix: Supplier reissues a corrected invoice or amends GSTR-1. Recipient should not post the invoice to their books until the correction is confirmed.

5. Inactive Or Cancelled GSTIN

A GSTIN may be perfectly formatted but cancelled, either voluntarily or by the tax authority. The IRP rejects IRN requests for cancelled GSTINs. ITC cannot be availed on a supply from a cancelled registrant, and the supply itself may attract liability. Verify status via the GST portal Search Taxpayer tool before every new vendor transaction.

Fix: Do not transact until the supplier re-registers and furnishes a new active GSTIN. Existing invoices from the cancellation period require careful legal review.

Penalty Exposure For Incorrect Invoice Particulars

Section 125 of the CGST Act provides a general penalty of up to ₹25,000 for contraventions not covered by specific penalty provisions. Section 122 covers issuing incorrect invoices — penalties can equal the tax involved. These apply to the supplier. The buyer's risk is the ITC disallowance, which is a cash loss, not a separate penalty. Getting format right at the source is materially cheaper than contesting a disallowance later.

FAQ

What does the GST portal's Search Taxpayer tool actually confirm?

The Search Taxpayer tool confirms whether a GSTIN exists, the legal name, the registered state, and the registration status (active, cancelled, suspended). It does not reveal turnover or filing history. Use it as the final check after your 30-second format review, especially when onboarding a new vendor. In AI Accountant, this step can be embedded in ingestion, so the document is flagged if the live status is not active.

Can I validate a GSTIN using just the PAN?

Yes. The GST portal supports PAN-based search that returns all GSTINs mapped to that PAN across states. This helps when a supplier operates in multiple states and you must pick the right state registration. Always cross-check positions 1–2 in the GSTIN with the billing state for the transaction. AI Accountant can store this mapping in your vendor master to prevent wrong-state bookings.

Does a correctly formatted GSTIN guarantee ITC eligibility?

No. Format and active status are necessary but not sufficient. ITC under Section 16(2)(aa) requires the supplier to file GSTR-1 and for the invoice to reflect in your GSTR-2B. Even a perfect invoice fails if the supplier is a non-filer. Month-end GSTR-2B reconciliation is the only definitive confirmation.

If my supplier filed GSTR-1 with a wrong recipient GSTIN, can they still amend it?

Yes, but only within the statutory window. Under Section 37, amendments to GSTR-1 must be made by 30 November of the following financial year, or before filing the annual return, whichever is earlier. Miss that date and the return system will not accept the correction; the recipient's ITC is effectively lost. Push corrections in the immediate next filing cycle.

Does an e-invoice with a wrong GSTIN still generate an IRN?

No. The IRP validates supplier and recipient GSTINs against the live GSTN database before issuing an IRN. Invalid, inactive, or cancelled GSTINs trigger error responses, no IRN, and the invoice is not a valid tax document for e-invoicing-applicable transactions. The supplier must correct the GSTIN and resubmit.

Can ITC be claimed on an invoice where the GSTIN is correct but the supplier has not filed GSTR-1?

No. Section 16(2)(aa) requires supplier filing and communication to the recipient via 2B. If the invoice is not in your 2B, you cannot claim ITC, regardless of the invoice's correctness. In practice, set your AP workflow to auto-hold ITC on such invoices until the 2B match appears.

What is the difference between GSTIN and GSTN?

GSTIN is the 15-character registration number allotted to each taxpayer. GSTN is the technology network and company operating the returns and registration systems. When you validate a GSTIN via the Search Taxpayer tool, you are querying the GSTN database. Every registrant has a GSTIN, but there is only one GSTN.

My supplier has registrations in three states — which GSTIN goes on the invoice?

The GSTIN must correspond to the state from which the supply is made. If goods ship from Karnataka, the GSTIN must carry 29 in positions 1–2. Using a different state's GSTIN is a wrong-state-code error, it will not land in your intended entity's GSTR-2B and your ITC will be blocked. Bake this check into vendor and PO creation to avoid rework.

Can a business have more than 35 GST registrations in a single state under one PAN?

No. The 13th character allows 1–9 and A–Z, a theoretical maximum of 35 registrations per PAN per state. Beyond that would require separate legal entities with separate PANs. If the 13th character is anything other than 1–9 or A–Z, the GSTIN is invalid.

What should I do if a GSTIN passes the format check but the legal name on the invoice does not match the portal?

Treat it as a red flag. Validate via the Search Taxpayer tool to see the registered legal name. If it differs from the invoice, return it for correction. ITC on documents with mismatched particulars is vulnerable under Rule 46. AI Accountant can auto-compare the invoice legal name against the GSTN master and block posting.

What penalty applies if a business issues tax invoices with incorrect GSTIN repeatedly?

Under Section 122, penalties can equal the tax involved or ₹10,000, whichever is higher; Section 125 adds up to ₹25,000 for general contraventions. Buyers face ITC disallowance, a direct cash hit. Prevent errors at source with automated GSTIN validation and status checks.

Related Reading

Written By

Rohan Sinha

Rohan Sinha is a fintech and growth leader building aiaccountant.com, focused on simplifying accounting and compliance for Indian businesses through automation. An IIT BHU alumnus, he brings hands-on experience across 0 to 1 product building, growth, and strategy in B2B SaaS and fintech.

Same Accounting Team, 3X the Output
Book a Free Trial
Contents
Still have questions?
Can’t find the answer you’re looking for? Please chat to our friendly team.
Ai Accountant

Latest Articles

Call Us: +918031341017📞+91 6364835217
AI Accountant is a product of KOREFI BUSINESS SOLUTIONS PRIVATE LIMITED

CIN:U63110KA2024FTC192621

Registered office: No. 326, Slate House, Ground Floor, 1st Stage,Binnammangala, Indiranagar, Bangalore, Karnataka 560038
Korefi Business Solutions Private Limited – All Rights Reserved.