Accounting & GST guide

HSN codes explained: how many digits, and how to find yours

By Taha Tahir Ali · Updated

Short answer

HSN (Harmonized System of Nomenclature) codes classify goods; SAC codes classify services. On GST invoices, businesses with turnover up to ₹5 crore generally show 4-digit HSN codes (mandatory on B2B invoices), and those above ₹5 crore show 6 digits on all invoices. Find your code from the official GST rate and HSN search on the GST portal, and keep it on every item record.

Every product you sell under GST has an HSN code: a number from an international system that groups similar goods. Services use SAC (Services Accounting Code). The code decides the GST rate and appears on your invoices and returns. This is a general guide, not tax advice; check current rules on the GST portal.

How HSN codes are built

The code narrows down step by step:

Digits Level Example
2 Chapter 84: machinery and mechanical appliances
4 Heading 8467: hand tools with a self-contained motor
6 Sub-heading a more specific type within the heading
8 Tariff item India's most detailed level (used in customs)

How many digits do you need?

Since April 2021, the commonly published rule is:

Annual turnover (previous year) Digits on invoices
Up to ₹5 crore 4 digits, mandatory on B2B invoices (optional on B2C)
Above ₹5 crore 6 digits on all invoices

Your GSTR-1 also has an HSN-wise summary table. Using more digits than required is allowed and makes classification clearer.

How to find the right code

  1. Check your supplier's invoice. For goods you resell unchanged, the supplier's HSN is the best starting point (but you are responsible for it).
  2. Search the official list on the GST portal's HSN/SAC and rate search, by product name.
  3. Read the chapter notes. Many products fit two headings; the notes say which wins.
  4. When unsure, ask your accountant, and record why you chose the code.

Keep the code on the item, not the invoice

Store the HSN code and GST rate on each item record in your software. Then every invoice picks it up automatically and the HSN summary in your returns adds up without manual work.

Common mistakes

  • Using the same code for everything to save time.
  • Codes too short for your turnover.
  • Rate and code that don't match: the rate must be the one for that code.
  • Changing codes mid-year without a reason, which creates mismatches in the HSN summary.

Doing it with Deal

In Deal, each item master holds its HSN code and tax details, invoices pick them up line by line, and the printed tax invoice and GSTR-1 tables include the HSN summary. See what a GST tax invoice must contain for the rest of the invoice.

Frequently asked questions

Is HSN needed for services?

Services use SAC codes, which start with 99, with the same digit rules.

Where do I find HSN codes for free?

On the GST portal's search, and in CBIC's rate schedules.

Do composition dealers need HSN codes?

Composition dealers issue bills of supply; HSN rules for their returns can differ, so check the portal.

Sources and further reading

Raaj Software

May you never need us again.

We build solutions that make themselves indispensable, not problems that make us indispensable.

A philosophy of customer independence, not customer dependency.