MarCat

HSN code for grocery items: how to find it, how many digits, and the mistakes to avoid

How HSN codes work for a grocery or supermarket item list: the digit structure, how many digits your bills need, where to look codes up, and common mistakes.

By Swarbhanu Gupta, who has run Banjara supermarket in Ahmedabad since January 2025 (billing on MarCat since April 2026) · 15 November 2026

Every item in your store has two numbers that matter for GST: the barcode, which the scanner reads, and the HSN code, which the tax system reads. Most owners know their barcodes. Far fewer know where their HSN codes came from, and many item lists have codes copied from an old supplier bill years ago and never checked.

Set the HSN code once on each item in your GST billing software, and every bill carries it.

This guide explains how HSN codes work for a grocery item list, how many digits your bills need, where to look codes up, and the mistakes that cause trouble later. It does not list GST rates. Rates change by notification and must be checked with your accountant at the time you set them.

What an HSN code is

HSN stands for Harmonised System of Nomenclature. It is a way of classifying goods that is used across many countries, and India uses it for GST. The GST rate on a product is set against its HSN code, and your invoices and returns carry the code.

The number gets more detailed from left to right:

Digits Level Example
2 Chapter 10: cereals
4 Heading 1006: rice
6 Sub-heading a more specific kind of rice
8 Tariff item India's most detailed level

So 0902 is tea, 1006 is rice, and 1905 covers bread, biscuits and other bakery products. The first two digits tell you the chapter, and that alone catches many wrong codes: a soap with a code starting 19 (bakery) is clearly a mistake.

How many digits your bills need

Under Notification 78/2020-Central Tax, from 1 April 2021, a tax invoice must show the HSN code with:

Aggregate turnover in the previous financial year HSN digits on the tax invoice
Up to ₹5 crore 4
More than ₹5 crore 6

There is one relief for smaller stores. A registered person with turnover up to ₹5 crore may leave the HSN code off tax invoices for supplies to unregistered persons. For a supermarket, that is most counter customers. B2B bills (to a registered customer, like a hotel or another shop with a GSTIN) still need it.

Even if the counter bill does not print it, keep the HSN in your item list. Your accountant needs it for the HSN summary in your returns (see GSTR-1 for retailers), and it is how anyone checks that the GST rate on the item is right.

Ask your accountant how this applies to your store. Turnover is worked out for the whole business, not one shop.

Where to look up a code

The GST portal. Without logging in, go to gst.gov.in, then Services > User Services > Search HSN Code. You can search by code or by a description of the goods. The same page lets you download the HSN directory in Excel.

Your supplier's bill. The distributor's invoice usually carries an HSN for each line. It is a good starting point, not a final answer. Suppliers make mistakes too, and their code may be at a different level of detail from yours.

Your accountant. For anything unclear, the accountant decides. They answer for your returns.

Setting up HSN in your item list, step by step

  1. Add an HSN column to your item list next to the GST rate, if it is not there.
  2. Sort the list by category (staples, packaged food, personal care, home care). Items in a category often share a chapter, which makes gaps easy to see.
  3. Fill codes from the supplier bills you have for the last month.
  4. Check the first two digits of every code against the chapter it should be in. Anything odd goes on a list for the accountant.
  5. Check the description, not just the code. Rate entries are written against a code and a description, and items in the same heading can carry different rates depending on how they are described or sold. Loose and packed versions of the same staple are a common case to ask about.
  6. Give the accountant the finished list with HSN and rate side by side, and ask them to sign off.
  7. For every new item, fill HSN and rate on the day the item is created, from the supplier bill, and add it to next month's list for the accountant.

In Excel, a quick check for blank codes: =COUNTBLANK(D2:D2000) where column D is HSN. And to pull the chapter for checking: =LEFT(D2,2).

One Excel trap: if the HSN column is formatted as a number, a code like 0902 loses its leading zero and becomes 902. Format the column as Text before typing or pasting codes.

Common mistakes

Mistake What goes wrong Fix
Code copied from one supplier for a different product Wrong chapter, wrong rate Check the first two digits
Leading zero lost in Excel 0902 becomes 902 Format the HSN column as Text
Same code for the loose and packed version without checking Rate may differ Ask the accountant about each
Rate changed by notification, item list not updated Every bill since then is wrong Review the list with the accountant after each GST rate change
HSN blank for new items Gaps in the HSN summary in returns Fill it when the item is created
Barcode typed into the HSN column Nonsense codes Barcodes are 8 or 13 digits; HSN in your list is 4, 6 or 8

Where software helps

HSN and GST rate live in the item list. If the list is right, every bill and every report is right. Billing software helps by taking the rate from the item list on every scan and producing one report for the accountant, so a correction made once in the item list carries through. Finding the right code is still a job for you and your accountant.

How MarCat handles it

We have run Banjara, our own supermarket in Ahmedabad, since January 2025, and it has billed on MarCat since April 2026. Keeping the item list right is a daily job. This is what MarCat does:

  • GST from the item list. Scan the barcode and the item, price and GST come up, from what is saved for that item.
  • Reports for the accountant. GST-ready reports to download and give to your accountant.
  • Moving in. Items can be brought in from the software you use today or from Excel, so you do not have to type your list in again. It is a good moment to check HSN codes with your accountant.

MarCat does not choose HSN codes or GST rates for you. If you want to see how the item list and the GST report fit together, message us on WhatsApp at +91 96787 65518.

Questions

What is an HSN code?
HSN stands for Harmonised System of Nomenclature. It is a number that classifies goods. In India, GST rates for goods are set against these codes, and invoices and returns carry them.
How many HSN digits must a store put on its invoices?
Under Notification 78/2020-Central Tax, from 1 April 2021: 4 digits if your aggregate turnover in the previous financial year was up to ₹5 crore, 6 digits above that. A store up to ₹5 crore may leave HSN off tax invoices for sales to unregistered customers. Check with your accountant.
Where can I look up an HSN code?
On the GST portal, without logging in: Services > User Services > Search HSN Code. You can search by code or by description, and download the HSN directory in Excel.
Does the HSN code alone decide the GST rate?
Not always. Rate entries are written against a code and a description, and some items under the same heading carry different rates depending on how they are described or sold. Check the description, not only the digits, with your accountant.
Does MarCat find HSN codes for me?
No. The HSN code and GST rate for each item are yours and your accountant's to set. MarCat takes the GST rate saved in the item list when you scan, and gives GST-ready reports to download for your accountant.