What is an HS code?
An HS code — also called an HS tariff code (in Mexico, fracción arancelaria) — is the number that classifies a product for customs. Its meaning is the same everywhere: the first 6 digits are an international standard shared by 200+ countries. Mexico uses an 8-digit tariff line, extended to 10 digits (NICO). The code determines the duties, taxes and rules that apply when the product is imported.
HS code, tariff code and tariff classification: the same thing?
They're closely related. Tariff classification is the process of assigning the right code to a product; the HS code / tariff code is the result. In Mexico the official term is fracción arancelaria.
Structure of an HS code
The code is read from the general to the specific. Each pair of digits narrows the category:
- 84Chapter — Machinery and mechanical appliances
- 8471Heading — Automatic data-processing machines
- 8471.50Subheading (6 digits — international HS level)
- 84715001Tariff line / HS code (8 digits — Mexico) — see import data
- 8471.5001NICO (10 digits — commercial ID number)
Parts of an HS code: how it's built
An HS code is built by reading its digits in pairs, from the broadest category to the most specific:
- Chapter (digits 1-2): the broad family of goods (e.g. 84 = machinery and mechanical appliances).
- Heading (digits 1-4): the product group within the chapter.
- Subheading (digits 1-6): the international Harmonized System level, identical across 200+ countries.
- Tariff line (digits 7-8): the detail Mexico adds — this is the 8-digit fracción arancelaria.
- NICO (digits 9-10): the commercial ID number that pinpoints the goods further.
HS code example
Take a laptop: it belongs to chapter 84, heading 8471 (data-processing machines), and its Mexican HS code is 84715001, where you can see the countries of origin and import volume. See more real examples: the HS code for tequila, avocado or mezcal.
The Harmonized System (HS)
The first 6 digits are the same worldwide — they come from the World Customs Organization's Harmonized System, used by 200+ countries. Mexico adds digits 7-8 (fracción) and 9-10 (NICO) for its own detail.
What is an HS code used for?
The HS code tells you exactly what applies to goods at customs: the duty rate, taxes, non-tariff regulations and restrictions, permits and trade-agreement benefits. That's why classifying correctly matters — a wrong code means over- or under-paying duties, fines or held shipments.
How to find the HS code for a product
Search the product in our free tool and get the matching tariff codes with countries of origin and import volume. Open the HS code search →