Back to Blog|GST Compliance

GST State Codes: Complete 28 States and 8 UTs List

July 12, 20269 min readFaheem Ferdous

Under the Goods and Services Tax (GST) system in India, every registered taxpayer receives a 15-digit GST Identification Number (GSTIN). The very first two digits of this number represent the State Code — a two-digit numeric code that identifies the state or Union Territory where the business is registered for GST purposes.

For accountants and bookkeepers, understanding GST state codes is not just a reference exercise. These codes directly govern whether a transaction attracts CGST + SGST (for intra-state supplies) or IGST (for inter-state supplies). An incorrect state code in a vendor or customer ledger in Tally Prime will generate the wrong tax on every transaction linked to that ledger — leading to mismatched GSTR-2A/2B, failed ITC claims, and potential GST notices.

Anatomy of a GSTIN: Understanding the 15-Character Format

Before diving into the full list, understanding the structure of a GSTIN helps you decode and verify any number on the spot:

PositionCharactersMeaningExample
1–22 digitsState Code27
3–1210 charactersPAN of the taxpayerAAACR5055K
131 characterEntity number at same address (1–9, A–Z)1
141 characterAlways "Z" (reserved)Z
151 characterChecksum (alphanumeric)5

Example GSTIN: 27AAACR5055K1Z5 — this belongs to a business registered in Maharashtra (state code 27), with PAN AAACR5055K.

How State Code Determines CGST+SGST vs IGST

When you raise a sales invoice or purchase invoice in Tally Prime, the software compares the state code of your company (the seller) with the state code of the customer/supplier:

  • Same state code (intra-state supply): Tax is split equally into CGST and SGST. For example, an 18% GST transaction becomes 9% CGST + 9% SGST.
  • Different state codes (inter-state supply): The full tax rate applies as IGST. An 18% transaction becomes 18% IGST, collected and deposited with the central government.
  • Union Territory supplies: Instead of SGST, UTGST (Union Territory GST) is levied for UTs without a legislature (e.g., Chandigarh, Lakshadweep). UTs with legislatures (Delhi, Puducherry, J&K) levy SGST.

Complete GST State Codes Directory (All 28 States + 8 UTs)

Below is the complete list of GST state codes for all States and Union Territories in India:

GST CodeState / Union Territory NameRegion Type
01Jammu & KashmirUT (with legislature)
02Himachal PradeshState
03PunjabState
04ChandigarhUT (without legislature)
05UttarakhandState
06HaryanaState
07Delhi (NCT)UT (with legislature)
08RajasthanState
09Uttar PradeshState
10BiharState
11SikkimState
12Arunachal PradeshState
13NagalandState
14ManipurState
15MizoramState
16TripuraState
17MeghalayaState
18AssamState
19West BengalState
20JharkhandState
21OdishaState
22ChhattisgarhState
23Madhya PradeshState
24GujaratState
26Dadra & Nagar Haveli and Daman & DiuUT (without legislature)
27MaharashtraState
29KarnatakaState
30GoaState
31LakshadweepUT (without legislature)
32KeralaState
33Tamil NaduState
34PuducherryUT (with legislature)
35Andaman & Nicobar IslandsUT (without legislature)
36TelanganaState
37Andhra PradeshState
38LadakhUT (without legislature)
97Other TerritorySpecial Zone

Checking GSTIN Validity: A Quick Reference

Before entering a vendor's GSTIN into Tally Prime, perform these quick checks:

  1. Length: Must be exactly 15 characters. Any GSTIN shorter or longer is invalid.
  2. State Code (Digits 1–2): Must be a valid code from the table above (01 to 38, or 97). Codes like 00, 28, or 39 do not exist and indicate a fake GSTIN.
  3. PAN Embedded (Digits 3–12): Characters 3–12 must match the registered entity's PAN. The 4th character of the PAN indicates entity type: P = Person, C = Company, F = Firm, T = Trust.
  4. Position 14: Must always be the letter "Z". Any other character is a red flag.
  5. GST Portal Verification: Visit www.gst.gov.in > Search Taxpayer > Search by GSTIN/UIN to verify the legal name, registration status, and return filing history.

How Wrong State Codes in Tally Create Tax Errors

A common mistake is entering a supplier's GSTIN with a wrong state code — for example, typing state code 27 (Maharashtra) when the supplier is actually registered in Karnataka (29). The consequences cascade:

  • Tally treats the transaction as intra-state and applies CGST + SGST instead of IGST.
  • Your GSTR-3B reflects incorrect IGST paid, causing a mismatch with the supplier's GSTR-1 (which shows IGST collected).
  • ITC claimed in the wrong tax head (CGST/SGST instead of IGST) cannot be utilized correctly for IGST liability, leading to excess cash outflow.
  • You may receive a GST scrutiny notice (ASMT-10) flagging the mismatch between your GSTR-2B and GSTR-3B.

Always verify the supplier's GSTIN state code before creating a ledger in Tally Prime. If you are entering data for a new supplier, copy the GSTIN from their invoice and cross-verify on the GST portal before saving.

Tally Prime Ledger Configuration for GSTIN

When creating a supplier or customer ledger in Tally Prime, follow these steps to correctly map the state code:

  1. Go to Gateway of Tally > Create > Ledger
  2. Under Mailing Details, select the correct State from the dropdown (e.g., "Maharashtra")
  3. In the GST Registration Details section, enter the 15-digit GSTIN
  4. Tally will auto-validate the state code in the GSTIN against the selected state. If there is a mismatch, a warning is displayed
  5. Set Registration Type to "Regular" for GST-registered suppliers, or "Unregistered" for vendors without GSTIN

Automate Purchase Invoice Entry with TrulyInvoice

Manually entering supplier GSTINs and state codes for every new vendor is time-consuming and error-prone. One typo in the GSTIN means wrong tax classification on every purchase invoice from that vendor.

TrulyInvoice (plans starting at ₹399/month) eliminates this risk. When you upload a vendor's purchase invoice PDF, TrulyInvoice automatically extracts the supplier's GSTIN and validates its format — checking the state code prefix, PAN embedded within the number, and the checksum character. If the GSTIN passes validation, it maps the supplier to the correct Tally ledger with the right state code pre-filled.

TrulyInvoice supports all major invoice formats and bank statement PDFs from HDFC, SBI, ICICI, Axis, and other banks. Every purchase voucher it creates in Tally Prime carries accurate GSTIN and state data, ensuring your GSTR-2B reconciliation is clean, your ITC claims are correct, and you never receive a GST mismatch notice due to a state code error.

F
Faheem FerdousExpert Reviewer

Tax Lawyer & GST Compliance Expert

Last Verified: July 12, 2026
TallyPrime FY 2026-27 (v4.0+)
Ready to save time?

Stop Manual Voucher Entry.

TrulyInvoice automates your complete invoice workflow and syncs directly to Tally Prime.

No credit card · 14-day free trial

01

Upload Invoice

Drag & drop PDFs, scans, or photos.

02

AI Extraction

Line items, tax, and ledgers mapped.

03

1-Click Review

Verify extracted details on dashboard.

04

Direct Sync

Vouchers created instantly in Tally Prime.

Chat with us