HS Codes Explained: A Merchant's Guide to Product Classification
What HS codes are, how they work, and why accurate classification matters for international e-commerce. Learn the 6-digit format and how to find the right code.
June 17, 2026
HS (Harmonized System) codes are internationally standardized 6-digit codes that classify every product traded across borders. They determine import duty rates, trade restrictions, and customs requirements. For Shopify merchants selling internationally, understanding HS codes is the foundation of accurate duty calculation and smooth cross-border shipping.
Developed and maintained by the World Customs Organization (WCO), the Harmonized System is used by over 200 countries as the basis for their customs tariffs and trade statistics. Every product — from textiles and electronics to food and machinery — has an assigned HS code that customs authorities worldwide recognize. This universal classification system is what makes it possible to calculate duties automatically at checkout.
How HS Codes Are Structured
Countries add additional digits beyond the 6-digit core for their national tariff schedules. A code like 6109.10 means: Chapter 61 (apparel, knitted or crocheted), Heading 09 (T-shirts, singlets, and other vests), Subheading 10 (of cotton). Countries may then add 2-4 more digits for their specific tariff lines.
Let's break down the full structure of an HS code using a practical example. The US HTSUS code for a cotton t-shirt is 6109.10.0012:
- Chapter (61) — The broadest category, covering articles of apparel and clothing accessories, knitted or crocheted
- Heading (09) — T-shirts, singlets, tank tops, and similar garments
- Subheading (10) — Of cotton (as opposed to 90 for other textile materials)
- National digits (0012) — US-specific statistical suffixes that further define the product for tariff and trade data purposes
The first 6 digits are consistent across all Harmonized System countries, which means a cotton t-shirt has the core code 6109.10 whether it's entering the United States, the European Union, Japan, or Australia. This global consistency is what makes cross-border e-commerce feasible — without it, every country would need its own independent classification system, making automated duty calculation nearly impossible.
How to Find the Right HS Code
Finding the correct customs code for your products requires understanding both the product itself and the Harmonized System's classification rules. Here are the most reliable approaches:
- Search by product description — Use the WCO's Harmonized System database or your country's customs website to search for keywords describing your product
- Review rulings — Customs authorities publish binding rulings for specific products that can serve as guidance for similar items
- Consult the General Rules of Interpretation (GRI) — These six rules provide the legal framework for classifying products within the Harmonized System
- Use AI-powered tools — Platforms like RateTell analyze product data to suggest accurate HS codes automatically
One of the most challenging aspects of product classification is determining the correct heading when a product could reasonably fall into multiple categories. For example, a smartphone case made of leather might be classified as leather goods (Chapter 42) or as an accessory for electronic devices (Chapter 85). The General Rules of Interpretation specify that the most specific description should prevail, but determining specificity requires expertise in both the product and the Harmonized System.
Why Accurate Classification Matters
Wrong HS codes lead to incorrect duty charges, customs delays, and potential penalties. Accurate classification ensures your customers see reliable duty estimates at checkout and their orders clear customs without issues. The consequences of inaccurate product classification go beyond just incorrect duty amounts:
- Customs audits and penalties — Customs authorities can audit shipments and impose fines for intentional misclassification
- Delayed shipments — Incorrect codes flag shipments for manual review, adding days or weeks to delivery times
- Lost customer trust — If a customer is asked to pay unexpected duties because of a classification error, they may not return
- Trade restriction violations — Some products require special licenses or are prohibited under certain HS codes
The financial impact of classification errors can be significant. Underpaying duties because of an incorrect HS code might save money in the short term, but customs authorities can demand back-payment plus penalties for up to several years of shipments. Overpaying, while less risky from a compliance perspective, means your prices are uncompetitive compared to merchants who classify correctly.
HS Code Maintenance and Updates
HS codes are not static. The WCO updates the Harmonized System every five years to account for new products, changes in trade patterns, and technological advancements. The most recent update (HS 2022) introduced hundreds of new subheadings for products like smartphones, drones, and 3D printers. Merchants need to review their product classifications periodically to ensure they remain current with these updates.
Additionally, individual countries can modify their national tariff schedules at any time, often in response to trade policy changes or new trade agreements. A product that was duty-free under a trade agreement might become dutiable if the agreement expires, and vice versa. Automated systems that track these changes and update duty calculations in real time are essential for maintaining accurate landed costs.
AI-Powered Classification with RateTell
RateTell uses AI to automatically suggest HS codes based on your product titles, types, and tags. You review and approve each one — no customs expertise required. RateTell's classification engine analyzes your product data against millions of existing classifications to find the best match, and the system learns from your approvals to improve future suggestions.
Frequently Asked Questions
What are HS codes?
HS codes are internationally standardized 6-digit numbers that classify every product traded across borders. They're maintained by the World Customs Organization (WCO) and used by over 200 countries to determine import duty rates, trade restrictions, and customs requirements.
How are HS codes structured?
Each HS code has three parts: the chapter (digits 1-2), the heading (digits 3-4), and the subheading (digits 5-6). For example, 6109.10 means Chapter 61 (knitted apparel), Heading 09 (T-shirts), Subheading 10 (of cotton). Countries add 2-4 more digits for their national tariff lines.
Do all countries use the same HS codes?
The first 6 digits are identical in every country that follows the Harmonized System — a cotton t-shirt is 6109.10 whether it enters the US, the EU, Japan, or Australia. Beyond those 6 digits, each country applies its own extensions, so the full code differs by destination.
Why are HS codes important for e-commerce?
HS codes determine the duty rate, taxes, and restrictions that apply to every order you ship internationally. Accurate codes keep your checkout duty estimates reliable, prevent customs delays, and keep you compliant with trade regulations.
How do I find the right HS code?
Start with the WCO's Harmonized System database or your country's customs website, and check published binding rulings for similar products. The General Rules of Interpretation settle borderline cases, and AI tools like RateTell's HS Code Finder suggest codes automatically from your product data.
What happens if I use the wrong HS code?
Wrong codes produce incorrect duty charges, customs audits, delayed shipments, and penalties for intentional misclassification. Underpaying can trigger back-payment plus fines for several years of shipments, while overpaying makes your prices uncompetitive.
Related guides: What is an HS Code? · Tariff Code Guide
Setting up HS codes in RateTell takes just a few minutes. Import your product catalog, review the AI-generated suggestions, and approve the ones that look correct. RateTell also supports bulk editing, so you can apply classifications across similar products at once. Once your codes are approved, RateTell uses them to calculate accurate duties and taxes at checkout, ensuring your customers always see the correct total price. Start your free trial to classify your first product.
RateTell Team
RateTell helps Shopify merchants show estimated duties, taxes, and shipping at checkout. Start your 14-day free trial today.
Start Free TrialRelated articles
Classification
Tariff Code: What It Is & How to Find Yours [2026]
What is a tariff code? Learn how tariff codes work, how they differ from HS codes, and how to find the right tariff code for your products. Free lookup tool included.
Classification
What is an HS Code? Complete Guide to Harmonized System Codes [2026]
What is an HS code? Learn how Harmonized System codes work, how they're structured (6-digit format), and why they matter for international shipping and customs.
Classification
HTS Code Lookup: How to Find Your HTS Code [2026]
HTS code lookup guide — how to find your Harmonized Tariff Schedule code for US imports. Free tool included. Covers HTSUS codes, duty rates, and customs classification.