Q QWIK INVOICE
Q QWIK INVOICE

HSN & SAC Codes Explained: How Many Digits Do You Need?

Written by Naresh, Founder of QWIK INVOICE · Last updated: 4 October 2026

How many HSN digits you need depends entirely on your turnover: up to ₹5 crore in the preceding financial year, you need a 4-digit HSN code on B2B tax invoices; above ₹5 crore, you need 6 digits on every invoice. Services use a separate but parallel system — SAC codes, conventionally shown at 6 digits. Getting the code right matters because it's what determines the GST rate that applies.

What's the actual difference between HSN and SAC?

HSN (Harmonized System of Nomenclature) is an internationally standardized system for classifying goods — it's the same system used in customs and international trade, adapted for GST. SAC (Services Accounting Code) is India's parallel system specifically for classifying services. Every line item on a GST invoice needs one or the other, depending on whether you're billing goods or services — see our goods vs services invoice guide if you're not sure which applies to a specific line item.

How many digits does my invoice actually need?

Aggregate turnover (preceding FY)HSN digits required (B2B tax invoices)
Up to ₹5 crore4 digits
Above ₹5 crore6 digits

"Aggregate turnover" here means your business's total turnover in the previous financial year, not the value of the individual invoice. SAC codes for services are conventionally shown at 6 digits regardless of turnover, following the same underlying classification depth as the 6-digit HSN tier.

Why does using the wrong code actually matter?

It's tempting to treat the HSN/SAC field as a formality, but the code is directly tied to the GST rate that legally applies to what you sold. A misclassified item can mean you've charged 5% when the correct rate was 18%, or vice versa — which creates a real under- or over-collection that has to be corrected, and can draw scrutiny in a review if it happens repeatedly or at scale. Treat the code as a rate lookup, not just a label.

Some common codes freelancers and small businesses use

These are illustrative examples only — always verify the exact code for your specific service on the GST portal's HSN/SAC search tool rather than copying an example, since service scopes can be classified differently depending on exact specifics:

Service (illustrative)Typical SAC
Software development / IT services998314
Graphic design services998386
General management consulting998311
Web hosting / related services998315

How do I actually find the right code?

Three practical routes, roughly in order of reliability: (1) the GST portal's own HSN/SAC finder, which lets you search by keyword or browse by chapter/heading; (2) checking what code similar businesses in your trade association or industry body commonly use for the same service; (3) asking a tax professional to confirm, especially if your product or service could plausibly fall under more than one heading. Avoid relying purely on a code you found via a general web search without cross-checking it against the official portal. See our dedicated GST rate finder guide for a step-by-step walkthrough of this lookup process and how to read the results.

Does HSN/SAC change how much CGST, SGST or IGST I charge?

No — these are two independent parts of an invoice. HSN/SAC tells you what rate applies to the item; whether that tax is then split into CGST+SGST or charged in full as IGST depends purely on where the sale happens, covered fully in our CGST vs SGST vs IGST guide. The two decisions are made separately but both show up together on the invoice line.

How to read a code: what the digits actually mean

An HSN code isn't a random number. It's a nested address. The first two digits name a chapter, the next two narrow it to a heading, and the next two to a subheading. Take 8517: chapter 85 covers electrical machinery, and heading 8517 covers telephones and communication equipment. Going to six digits, 851713, points at smartphones specifically. That's why a 4-digit code is enough for smaller businesses (it identifies the product family) while larger ones need the 6-digit code that pins down exactly what was sold.

SAC codes follow the same idea but all start with 99. The 9983 group is "other professional, technical and business services", and 998314 narrows that to IT design and development. If your code starts with anything other than 99 and you sell a service, something has gone wrong.

Classifying properly: a method that works when the answer isn't obvious

Searching a keyword and taking the first hit is how people end up with the wrong code. A more reliable routine is:

  1. Describe the item in plain words, including what it is made of and what it does. "Leather office chair with wheels" is more useful than "chair".
  2. Find the chapter first, then the heading. Read the chapter notes at the top. They often say what the chapter includes and, importantly, what it excludes.
  3. Pick the most specific heading that fits. The classification rules favour a specific description over a general one. A heading for "office furniture" beats "other furniture".
  4. Check the rate for the subheading you chose, not just the heading. Within one heading, different subheadings can carry different GST rates.
  5. Write down why you chose it. A single line in a notes file ("Chosen 9403: office furniture, per chapter 94 note 2") is invaluable if you're ever asked to justify it.

Goods or service? The grey areas

Some sales don't fall cleanly into one bucket. A few that cause trouble:

  • Software. A custom application built for one client is a service (SAC). A physical disc or device carrying pre-packaged software looks more like goods (HSN). Online licences and subscriptions have their own treatment, so check before assuming.
  • Goods with installation. If a customer buys a machine and you also install it, you may have a composite supply, taxed as the principal supply (usually the machine), or two separate supplies if you price and bill them separately. How you structure the contract and the invoice affects which one applies.
  • Printed work. A printed brochure you design and print can be a supply of goods or services depending on whether the client supplies the content, and whether the physical item or the design is the real purpose of the transaction.
  • Repairs and job work. Repairing someone else's equipment is a service even though parts are involved. The labour and parts might be shown on separate lines with different codes.

When you're not sure, ask a professional once and reuse the answer. It's cheaper than getting a recurring product wrong on a hundred invoices.

Where a wrong code goes after you issue the invoice

The code on your invoice doesn't just sit there. The HSN summary in your GSTR-1 return is built from the codes on the invoices you issued, so a wrong code travels into your return and is visible to the tax department. Buyers see it too: their purchase records are matched against your reported data, and a mismatch between the rate they expected and the one you applied is what prompts an awkward email asking you to explain. Fixing it later usually means a credit note and a replacement invoice, which is more work than choosing the code carefully the first time.

Build an item list once, then reuse it

If you sell the same handful of things again and again, the sensible habit is to settle each item's code and rate once, record it, and reuse that entry every time. A simple table of item, code and the reasoning is enough:

ItemCodeWhy this code
One-off website build998314Custom IT design and development
Hosting provided to a client998315Hosting and IT infrastructure provisioning. Confirm whether you resell hosting or only manage it for them.
Strategy workshop for a client's team998311Management consulting. Noted so a similar workshop later gets the same code.

Add a column for the current GST rate and review the list once a year, or whenever the GST Council changes rates, because the rate attached to a code is the part that moves. Codes themselves rarely change. QWIK INVOICE keeps the HSN/SAC and rate on each line, so a saved item list in the app does exactly this job.

For everything else a compliant invoice line needs alongside its HSN/SAC code, see the full GST invoice format checklist. QWIK INVOICE's invoice generator has a dedicated HSN field on every line item, so once you've confirmed the right code, it's reused automatically on future invoices for the same item.

This guide is general information, not tax advice. Confirm specifics with a qualified tax professional or chartered accountant, or the GST portal / CBIC directly, before relying on it.

Frequently asked questions

Do I need an HSN code if I only sell services?

Services use SAC (Services Accounting Code), not HSN — the two are separate coding systems under the same broader classification scheme, but the requirement is the same: your invoice needs the right code so the correct GST rate is clearly identifiable.

Is HSN mandatory on B2C invoices too, or only B2B?

The digit-count rule applies primarily to B2B tax invoices. For B2C sales, especially below the ₹5 crore turnover threshold, HSN display isn't always mandatory the same way — but many businesses show it anyway for consistency across all their invoices, and QWIK INVOICE does this by default.

What happens if I use the wrong HSN or SAC code?

The bigger risk isn't the code itself — it's the GST rate tied to it. Different HSN/SAC codes can carry different rates, so an incorrect code can mean you've charged (and remitted) the wrong amount of tax, which can require correction later and, in some cases, attract scrutiny or penalty exposure during a review.

Where can I look up the correct HSN or SAC code for my product or service?

The GST portal has a dedicated HSN/SAC search tool where you can look up codes by description or browse by chapter. For anything ambiguous — a product that could plausibly fall under two categories — it's worth cross-checking with a tax professional or your trade association's guidance rather than guessing.

Does the HSN code affect which of CGST/SGST or IGST I charge?

No — those are two separate decisions. HSN/SAC determines what you're classifying and what GST rate applies to it; whether that tax is split as CGST+SGST or charged as IGST depends entirely on whether the sale is within your state or across states. See our CGST/SGST/IGST guide for that separate rule.

How many digits of HSN or SAC are required on a GST invoice?

It depends on turnover. Up to ₹5 crore in the preceding financial year you need a 4-digit HSN code on B2B tax invoices; above ₹5 crore you need 6 digits on every invoice. SAC codes for services are conventionally shown at 6 digits regardless of turnover. Check the current notification for your turnover band before you rely on this.

Ready to put this into practice?

Create Your Invoice Free