← Back to Blog

HSN Codes and GST Rates for Computer and Electronics Shops: Pen Drives, Hard Drives, SSDs and Accessories

A practical HSN code and GST rate reference for computer and electronics shops, covering pen drives, external hard drives, SSDs, memory cards and the accessories that fill the rest of the shelf.

Sep 20, 2026•6 minutes

If you run a computer or electronics shop, your invoices cover a strange mix of products. A single bill can carry a laptop, a 1TB external drive, a pen drive, a USB cable and a laptop bag, and each of those sits under a different HSN heading even though almost all of them are taxed at the same rate. Get the code wrong and nothing breaks on the day of the sale, but your GSTR-1 HSN summary stops matching your stock, and that is a painful thing to reconstruct months later.

This post is the reference sheet for that shelf: which HSN code goes on storage devices, what the GST rate is, and how to set it up once so you never think about it again at the billing counter.

The two headings that cover most storage devices

Nearly every storage product in a computer shop falls under one of two headings, and the split is not about capacity or brand. It is about whether the device is a standalone recording medium or a unit of an automatic data processing machine.

  • 8523 covers discs, tapes, solid-state non-volatile storage devices, smart cards and other media for recording data. This is where pen drives, memory cards and flash media sit. Solid-state non-volatile storage is specifically 8523 51.
  • 8471 covers automatic data processing machines and their units, including storage units. Internal hard disks and internal SSDs that are units of a computer sit here, under 8471 70.

The practical dividing line most shops use: if it is a removable medium the customer carries around, look at 8523. If it is a drive that goes inside a machine or attaches as a storage unit of one, look at 8471 70. External portable hard drives are the genuinely debatable case, and both 8471 70 and 8523 are seen in the trade. Whichever you choose, write it down and stay consistent across every invoice for that item, because consistency is what your returns and any future scrutiny actually test.

HSN codes and GST rates for a computer and electronics shop

The good news is the rate side is simple. Almost the entire category is at 18%, so a wrong HSN code rarely changes the tax you collect. It changes your reporting.

ProductHSNGST rate
Pen drive / USB flash drive8523 5118%
Memory card (SD, microSD)8523 5118%
Internal SSD8471 7018%
Internal hard disk drive8471 7018%
External / portable hard drive8471 70 (also seen as 8523)18%
Blank CD / DVD8523 41 / 8523 4918%
Laptop, desktop, tablet8471 30 / 8471 4118%
Keyboard, mouse, scanner8471 6018%
Monitor8528 5218%
Printer, multifunction device8443 3218%
Router, switch, network card8517 6218%
USB and data cables8544 4218%
Power bank8507 6018%
Headphones, earphones, speakers851818%
Webcam8525 8018%
Laptop bag / backpack420218%
UPS / inverter for computers8504 4018%

Treat this as a starting point for your item master, not gospel. Rates and sub-headings do change, and a few lines (bags, cartridges, some cables) depend on material and construction. Verify anything unusual against the official list before you commit it.

How many digits do you need on the invoice?

The number of HSN digits required depends on your turnover, not on what you sell:

  • Aggregate annual turnover up to Rs. 5 crore: 4 digits on B2B invoices. B2C invoices are optional, though there is no harm in printing them.
  • Aggregate annual turnover above Rs. 5 crore: 6 digits on all tax invoices.

So a small shop can legitimately bill a pen drive as 8523, while a larger distributor needs 8523 51. If you are anywhere near the threshold, store the 6 or 8 digit code in your item master now and let your billing software print what is needed. Widening a code later is easy; going back to fill in missing digits across a year of invoices is not.

Set it once in your item master

The mistake that costs shops real time is treating HSN as something typed at the counter. It should be an attribute of the product, saved once.

  1. Group your stock into families first: storage media, storage units, input devices, display, networking, cables, power, audio, bags. Each family usually shares one code.
  2. Assign the HSN and GST rate to each family, then to the items inside it.
  3. Enter the code in your item master once, so every bill, e-way bill and return picks it up automatically.
  4. Check any item where the same product exists in multiple forms, like an SSD sold bare versus in an external enclosure. Those are two items, potentially two codes.
  5. Review the list once a year, or whenever a rate notification touches electronics.

If you are setting this up in Trayvo, the flow is covered in our post on setting up HSN codes in your item master and sales account, and you can confirm any individual code with the step-by-step guide to checking HSN codes on the GST portal.

Frequently Asked Questions

What is the HSN code for a pen drive?

A pen drive is a solid-state non-volatile storage device, so it falls under heading 8523, specifically 8523 51 at the 6 digit level. The GST rate is 18%. The same code applies to SD and microSD memory cards.

Is the drive HSN code the same for hard disks and SSDs?

For drives installed in or attached to a computer as a storage unit, yes: both internal hard disk drives and internal SSDs are reported under 8471 70 at 18%. The code diverges once the device is really a portable recording medium, such as a flash drive, which belongs to 8523.

What HSN code should I use for an external portable hard drive?

Both 8471 70 and 8523 are used in the trade, since an external drive is arguably a storage unit and arguably a portable medium. The rate is 18% either way. Pick one, record it in your item master, and use it consistently on every invoice for that product rather than switching between bills.

Do computer accessories have a different GST rate from computers?

Mostly no. Computers, storage drives, keyboards, monitors, cables, power banks and bags are all at 18%, which is why an accessory-heavy bill rarely has mixed rates. The HSN codes still differ by product type, so each item needs its own code even when the rate matches.

Does a wrong HSN code mean a penalty if the tax rate was correct?

Collecting the right tax is the part that matters most, but an incorrect or missing HSN code on an invoice is still a compliance defect and can attract a penalty, and it distorts the HSN summary in your GSTR-1. The low-effort fix is to correct the code in your item master so every future invoice is right, rather than patching individual bills.

Ready to solve these problems?

Start using Trayvo today and see the difference in your shop.