How to Use HSN Codes in TallyPrime for GST Compliance

Pranav Anand · June 13, 2026

HSN codes are 6-8 digit classification codes for goods and services under GST. In TallyPrime, you add HSN codes to stock items, and they auto-populate invoices and GSTR-1 returns. This guide shows setup, filing, and compliance steps.

What Is an HSN Code and Why It Matters in TallyPrime

An HSN code (Harmonized System of Nomenclature) is a globally standardized 6-8 digit code that classifies goods and services. In India, the GST regime requires all invoices and tax returns to include HSN codes. TallyPrime, as a GST-compliant accounting software, integrates HSN codes into item masters, invoices, and GSTR-1 filings.

The HSN code serves three critical functions in TallyPrime: (1) it assigns the correct GST tax rate to goods, (2) it ensures compliance with GST return filing (GSTR-1 and GSTR-3B), and (3) it helps the tax authority track goods and services across the supply chain. Without HSN codes, your invoices are incomplete, and GSTR-1 filing will fail validation at the IRP (Invoice Registration Portal).

HSN Code Vs. SAC Code: Understanding the Difference

HSN codes apply to goods, while SAC codes (Service Accounting Code) apply to services. Both are 8-digit codes, but HSN is for physical products and SAC for intangible services. In TallyPrime, you enter both in the same HSN/SAC field in the stock item master. If you sell goods, use HSN; if you provide services, use SAC. Many businesses sell both, so your item master will have a mix.

For example, a retailer selling electronics uses HSN code 8471 (Automatic data processing machines), while a consultant providing IT services uses SAC code 998361 (Information technology services). TallyPrime does not distinguish between them in the UI, but the GST portal recognizes the format and applies rules accordingly.

Mandatory vs. Optional: When HSN Codes Are Required

HSN codes are mandatory for all B2B invoices (business-to-business) and B2C invoices (business-to-consumer) under GST. However, the threshold varies:

  • Goods: HSN code is mandatory if your annual turnover exceeds Rs 1.5 crore.
  • Services: SAC code is mandatory for all service providers, regardless of turnover.
  • Composition dealers: Not required to file GSTR-1, so HSN codes are optional but recommended.

In TallyPrime, even if you fall below the threshold, it is best practice to add HSN codes to all items. This future-proofs your business, simplifies scaling, and ensures GSTR-1 filings are always complete. Enable GST in TallyPrime under F11 (Features), and you will see the HSN/SAC field in stock item masters.

How to Set Up HSN Codes in TallyPrime: Step-by-Step

Follow these steps to add HSN codes to your items in TallyPrime:

  1. Open TallyPrime and go to Gateway of Tally > Create/Alter > Stock Item.
  2. Select an existing item or create a new one by pressing Ctrl+A.
  3. Enter the item name (e.g., "Laptop Computer").
  4. Scroll down to the HSN/SAC field and enter the 6-8 digit code (e.g., 8471 for computers).
  5. Ensure GST is enabled under F11 (Features > Statutory and Taxation > GST). If not enabled, the HSN field will not appear.
  6. Assign the correct GST rate (5%, 12%, 18%, or 28%) in the item master. TallyPrime will cross-check the HSN code with the rate; mismatches will trigger warnings during GSTR-1 filing.
  7. Save the item by pressing Ctrl+S.

Once saved, the HSN code is linked to the item. Every time you create an invoice using this item, TallyPrime automatically includes the HSN code. This data flows directly to GSTR-1 when you file.

Creating a Stock Item with HSN Code: A Real Example

Let us walk through a real scenario. Suppose you are a distributor in Purnea selling mobile phones. Here is how you would set up the item:

Field Value Notes
Item Name Samsung Galaxy A13 Specific product name
HSN Code 8517 Telephone sets and parts (correct HSN for mobile phones)
GST Rate 12% Mobile phones attract 12% GST under HSN 8517
Unit Pieces Count-based unit
Cost Price Rs 12,000 For inventory valuation
Selling Price Rs 15,000 Retail price (before GST)

When you create an invoice selling 5 units of Samsung Galaxy A13 at Rs 15,000 each, TallyPrime will automatically include HSN 8517 in the invoice line. The taxable value is Rs 75,000 (5 x Rs 15,000), GST is Rs 9,000 (12% of Rs 75,000), and the total invoice is Rs 84,000. This data is captured for GSTR-1 filing.

Bulk Upload of HSN Codes: Import Method

If you have hundreds of items, manually entering HSN codes is time-consuming. TallyPrime allows bulk import via CSV. Here is how:

  1. Prepare a CSV file with columns: Item Name, HSN Code, GST Rate.
  2. Go to Gateway of Tally > Import > Stock Items.
  3. Select your CSV file and map the columns to TallyPrime fields.
  4. Review the preview and click Import.
  5. TallyPrime will validate the HSN codes and add them to your item master.

Ensure your CSV follows the correct format and that HSN codes are valid 6-8 digit numbers. If the import fails, check the error log (Alt+Y > Data > Repair or check the import log file). After import, verify a few items manually to ensure accuracy.

HSN Codes and GST Rate Assignment in TallyPrime

Each HSN code is associated with a specific GST rate. TallyPrime does not enforce this automatically, but the GST portal does. If you assign the wrong rate to an HSN code, your GSTR-1 will show discrepancies, and the tax authority may flag it.

For example, HSN 1001 (Wheat) attracts 5% GST, while HSN 1005 (Corn) attracts 5% GST, but HSN 2304 (Oil cake) attracts 5% GST. However, HSN 2201 (Waters, including mineral and aerated waters) attracts 5% GST, but packaged water with additives may be 18% or 28%. Always cross-check the official GST rate schedule before assigning rates in TallyPrime.

To verify rates, visit the GST portal (www.gst.gov.in) and search the HSN code in the rate schedule. In TallyPrime, go to Gateway of Tally > Display > Statutory Reports > HST (HSN Summary Table) to see all HSN codes and their assigned rates in your system.

How HSN Codes Flow to GSTR-1 Filing

GSTR-1 is the monthly outward supply return filed by registered taxpayers. TallyPrime integrates HSN codes directly into GSTR-1 reporting. Here is the flow:

  1. You create an invoice with items that have HSN codes.
  2. TallyPrime records the HSN code, quantity, and tax amount in the transaction.
  3. At month-end, you generate the GSTR-1 report in TallyPrime (Alt+G > GSTR-1 or Gateway of Tally > Display More Reports > GST Reports > GSTR-1).
  4. The report groups invoices by HSN code, showing total turnover and tax by HSN.
  5. You download the JSON file from TallyPrime and upload it to the GST portal (IRP).
  6. The portal validates HSN codes, rates, and amounts. If HSN is missing or incorrect, the filing is rejected.

To ensure smooth GSTR-1 filing, always verify that all invoices in your system have HSN codes before generating the report. TallyPrime will show warnings if HSN is missing.

Handling Missing or Incorrect HSN Codes

If you discover missing or incorrect HSN codes after invoicing, TallyPrime allows you to edit them. Follow these steps:

  1. Go to Gateway of Tally > Alter > Stock Item and select the item.
  2. Update the HSN code or GST rate.
  3. Save the change (Ctrl+S).
  4. The change applies to future invoices. For past invoices, you may need to issue a credit note and re-invoice with the correct HSN.

Alternatively, if only a few invoices are affected, you can edit the invoice directly (Gateway of Tally > Alter > Voucher) and update the HSN code in the line item. This is useful for one-off corrections before GSTR-1 filing.

If you have already filed GSTR-1 with incorrect HSN codes, you must file an amended return (GSTR-1 Amended) in the next month or file GSTR-1 in the current month with corrections. TallyPrime supports amended filings; consult your tax advisor for the correct approach.

HSN Code Validation and Error Checking in TallyPrime

TallyPrime includes built-in validation for HSN codes. When you generate GSTR-1, the software checks:

  • HSN code format (6-8 digits).
  • HSN code exists in the official GST schedule.
  • GST rate assigned matches the official rate for that HSN.
  • No duplicate HSN codes for different items (unless intentional).

If validation fails, TallyPrime displays errors or warnings in the GSTR-1 report. You can then correct the HSN codes in the item master or invoices and regenerate the report. This prevents invalid filings and penalties from the tax authority.

HSN Codes and e-Invoicing in TallyPrime

If you are registered for e-invoicing in TallyPrime, HSN codes are mandatory. When you enable e-invoicing (F11 > Features > Statutory and Taxation > e-Invoicing), every invoice must include a valid HSN code. TallyPrime generates an IRN (Invoice Reference Number) and QR code only if the HSN is present and valid.

The e-invoice is then automatically submitted to the IRP, and the HSN data flows to GSTR-1. This ensures end-to-end compliance and reduces manual GSTR-1 filing errors. If an invoice lacks an HSN code, e-invoicing will fail, and you cannot issue the invoice.

HSN Code Reporting and Analytics in TallyPrime

TallyPrime offers HSN-based reporting for business analytics. You can view:

  • HSN Summary Table (Alt+G > HST): Shows all HSN codes in your system, quantities sold, and tax collected.
  • HSN-wise Sales Report (Gateway of Tally > Display > Statutory Reports > HSN-wise Sales): Breaks down sales by HSN code and customer.
  • GSTR-1 Report (Alt+G > GSTR-1): Groups invoices by HSN for filing.

These reports help you understand which products are selling, which HSN codes generate the most tax, and whether your pricing aligns with GST rates. You can also use this data for inventory planning and tax forecasting.

Common HSN Code Mistakes and How to Avoid Them

Here are frequent errors businesses make with HSN codes in TallyPrime and how to prevent them:

  • Wrong HSN for the product: Always verify the correct HSN from the official GST rate schedule before entering it in TallyPrime. A laptop is 8471, not 8517 (phones).
  • Mismatched GST rate: Assign the rate that matches the HSN code. If HSN 1001 (Wheat) is 5%, do not assign 12%.
  • Mixing HSN and SAC: Use HSN for goods, SAC for services. Do not use a goods HSN code for a service item.
  • Leaving HSN blank: Even if not legally required, always fill the HSN field. It prevents GSTR-1 filing issues later.
  • Using outdated HSN codes: GST rate schedules are updated periodically. Check the official schedule annually and update TallyPrime accordingly.

Integration with GST Compliance and GSTR-3B

HSN codes are also used in GSTR-3B filing in TallyPrime, the monthly return of self-assessed tax. While GSTR-3B does not require HSN codes in the filing itself, the HSN data from invoices (captured via GSTR-1) is used by the tax authority to cross-check your tax liability. Accurate HSN codes ensure that your GSTR-1 and GSTR-3B match and reduce audit risk.

Additionally, if you are reconciling GSTR-2B in TallyPrime (inward supplies), HSN codes help match supplier invoices to your purchase records. This reconciliation is critical for claiming input tax credit (ITC) and avoiding tax disputes.

Upgrading Your TallyPrime License for Advanced GST Features

If you are using an older version of TallyPrime or a limited license, consider upgrading to access full HSN and GST features. TallyPrime pricing (indicative for 2026) is as follows: Silver (single user, perpetual) is approximately Rs 22,500 plus 18% GST, while Gold (unlimited users on LAN, perpetual) is approximately Rs 67,500 plus 18% GST. Both include 1 year of TSS (Technical Support Services) free. TSS renewal costs approximately Rs 4,500 per year for Silver and Rs 13,500 per year for Gold, plus GST.

If you need to enable GST in TallyPrime, ensure your license supports it. Silver and Gold both include GST, e-invoicing, and GSTR-1/GSTR-3B filing. If you are on an older version, upgrading ensures you get the latest HSN validation, e-invoice integration, and compliance features.

For businesses requiring remote access, Tally on Cloud is available from approximately Rs 175-290 per user per month (bring-your-own-licence) or Rs 899-1,299 per month (with licence included). Cloud Tally offers 99.9% uptime, daily backups, and secure access from Windows, Mac, Linux, Android, and iOS devices, making it ideal for distributed teams.

Your Next Steps: Get Expert Help with HSN Codes in TallyPrime

Setting up HSN codes correctly is foundational for GST compliance in TallyPrime. Whether you are a new business or scaling an existing one, ensuring accurate HSN codes in your item master prevents GSTR-1 filing rejections, reduces tax authority scrutiny, and simplifies e-invoicing.

If you need hands-on support configuring HSN codes, bulk importing data, or resolving GSTR-1 filing errors, Global IT Care is a Tally 3 Star Certified Partner serving Purnea, Bihar, and surrounding regions since 2010. Our experts can help you set up HSN codes, reconcile GST returns, and optimize your TallyPrime system for compliance. Contact us today at +91 75469 00951 for a free consultation.

Frequently asked questions

What is an HSN code in TallyPrime?

HSN (Harmonized System of Nomenclature) is a 6-8 digit code that classifies goods and services for GST. TallyPrime uses it for GSTR-1 and GSTR-3B filing and tax rate assignment.

Is HSN code mandatory in TallyPrime?

Yes, HSN codes are mandatory for all goods and services in invoices. Turnover above 1.5 crore requires HSN for goods; all services need SAC codes (a variant of HSN).

How do I add HSN code to an item in TallyPrime?

Go to Gateway of Tally > Create/Alter > Stock Item. In the item master, enter HSN code in the HSN/SAC field. Save. The code flows to invoices and GSTR-1 automatically.

Can I bulk upload HSN codes in TallyPrime?

Yes, via Import. Create a CSV with item names and HSN codes, then use Gateway of Tally > Import > Stock Items to bulk-upload. Requires correct format and mapping.

What happens if HSN code is missing in GSTR-1?

GSTR-1 will show errors or warnings. IRP (Invoice Registration Portal) may reject the filing. TallyPrime's GSTR-1 report will flag missing HSN codes before submission.

Does TallyPrime have a built-in HSN code database?

No, you must manually add HSN codes to each item or import them. However, TallyPrime validates HSN format and integrates with GST portal for GSTR-1 filing.