Home Learn Blog About Book a call
Learn · Customs & classification · 25 April 2026

HS code classification — how AI is transforming customs coding

A complete primer on the Harmonized System: how the six-digit core works, how the EU's CN and TARIC, the US HTS, and other national extensions build on it, where misclassification costs real money, and how AI-assisted classification is reshaping daily work for customs brokers and freight forwarders.

In one paragraph

The HS code is a six-digit globally harmonised commodity classification published by the World Customs Organization. National extensions add 2–4 digits for duty and statistics. Misclassification creates real liability — back-duties, fines, delayed clearance. AI-assisted classification, available in 2026 from a small but growing set of vendors, gets routine cases right 80–90% of the time and lets human classifiers focus on edge cases. AI does not yet replace the expert; it amplifies one.

What is an HS code?

The Harmonized Commodity Description and Coding System — almost always shortened to ‘HS code’ or ‘Harmonized System’ — is a globally standardised six-digit numerical classification of internationally traded goods. It is developed and maintained by the World Customs Organization (WCO), an intergovernmental body based in Brussels with around 185 member customs administrations.

Customs authorities use HS codes to determine what duty rate, what licensing controls, what trade measures (anti-dumping duties, sanctions, quotas) apply to a shipment. Statistics offices use them for trade flow data. Freight forwarders and customs brokers use them to prepare declarations. The HS covers approximately 5,000 commodity headings — from live animals (chapter 1) to works of art (chapter 97).

The structure is hierarchical:

The first six digits are identical across the roughly 200 countries that use the HS. National extensions begin from the seventh digit.

National extensions: CN, TARIC, HTS

Countries extend the six-digit HS code for their own duty and statistics purposes. The most relevant for European and US trade:

Code Length Used by Purpose
HS6 digits~200 countriesGlobal harmonisation, statistics
CN (Combined Nomenclature)8 digitsEU exports, EU statisticsExport declarations, EU trade stats
TARIC10 digitsEU importsImport duties, trade measures, sanctions
HTS (Harmonized Tariff Schedule)10 digitsUnited States importsUS import duty rates
Schedule B10 digitsUnited States exportsUS export statistics

A practical example: a bottle of European wine exported from France to the US ships under HS 2204.21 globally. The French export declaration uses CN 2204.21.06 (or similar, depending on alcohol content and packaging). The US import declaration uses HTS 2204.21.5005. The first six digits match. The last four reflect French export reporting and US import duty granularity respectively.

The General Rules of Interpretation

Classifying a product is not a database lookup. The WCO publishes six General Rules for the Interpretation of the HS (GRIs) that customs authorities and brokers must apply. They are the legal scaffolding behind every classification decision:

  1. GRI 1. Classification is determined by the terms of the headings and any relative section or chapter notes. Section and chapter titles are for reference only.
  2. GRI 2. Incomplete or unfinished articles and mixtures or combinations of materials are classified as if they were the complete or principal article.
  3. GRI 3. When goods are prima facie classifiable under two or more headings, the most specific heading prevails; otherwise the heading reflecting the essential character; otherwise the latest heading numerically.
  4. GRI 4. Goods that cannot be classified by GRIs 1–3 are classified under the heading appropriate to the goods to which they are most akin.
  5. GRI 5. Cases, packing materials and containers presented with goods are classified accordingly under specific conditions.
  6. GRI 6. Subheadings within a heading are compared at the same level (subheadings only with subheadings).

A correct classification is a legal interpretation of the goods, the headings and notes, and the GRIs — supported by Explanatory Notes (the WCO's thousands-of-pages commentary) and, where ambiguity remains, by national Binding Tariff Information rulings. This is why classification is a craft, not a clerical task.

Common misclassification errors

The cost of getting it wrong

The financial consequences of misclassification fall in four buckets:

  1. Back-duties with interest. Customs audits typically reach back 3 years (EU Union Customs Code) or up to 5 years (some non-EU jurisdictions). Under-declared duty across years can compound to six- or seven-figure assessments for high-volume importers.
  2. Administrative fines. Member-state fines for incorrect declarations vary widely — in the EU they typically range from a few hundred euros per declaration to percentage-of-duty fines under wilful-error provisions.
  3. Operational delays. Risk-flagged shipments can be held days at port awaiting clarification. Demurrage and detention charges accrue. Just-in-time supply chains suffer secondary disruption.
  4. Loss of customs simplifications. AEO status, simplified declaration procedures, and self-assessment privileges can be suspended or withdrawn after repeated classification errors. Re-acquiring AEO is a 6–12 month process.

Customs brokers in many jurisdictions (Netherlands, UK, US) carry professional liability for classification accuracy. A licensed customs broker who misclassifies repeatedly may face licence sanctions in addition to client liability claims.

How AI-assisted classification works in 2026

A new generation of AI-assisted classification tools emerged in 2023–2026, riding on the capabilities of large language models. The architecture is consistent across vendors:

  1. Input. A product description — from a commercial invoice line, a packing list, a product catalogue entry, or an ERP item record.
  2. Reasoning. An LLM combined with retrieval against an HS-code reference database produces one or more candidate codes with confidence scores.
  3. Explanation. The system shows which chapter, heading, and notes were applied. This is essential — classifiers will only trust an AI suggestion they can audit.
  4. Human review. A classifier confirms or overrides the suggestion. The system records the decision for future training and audit.

Realistic accuracy benchmarks reported by leading AI classification vendors and corroborated by customs broker case studies in 2025–2026:

For practitioners: AI-assisted classification is a productivity tool that takes a classifier from 50–80 codes/day on routine work to 200–400/day, while shifting attention to edge cases. It does not eliminate the need for the human classifier — binding tariff rulings, audits, and complex composite-goods decisions still require expert judgment. Vendors claiming ‘fully autonomous classification’ should be evaluated sceptically, especially for goods that face complex trade measures.

What Logentic does in this space

Logentic's primary focus is automating the upstream document and email work that feeds customs declarations — reading commercial invoices, packing lists and Bills of Lading and producing structured data for declaration software. AI-assisted HS-code suggestion is on our roadmap as an integrated capability rather than a standalone product. We will publish updates as we ship.

For customers running today, our value is upstream of the classifier: ensuring that the classifier sees clean, structured product descriptions without re-typing them from scattered emails and PDFs. This is itself a substantial productivity unlock for customs broker teams.

Frequently asked questions

What is an HS code?

A six-digit globally standardised classification of traded goods, published by the World Customs Organization and used by approximately 200 countries.

How does HS differ from CN, TARIC, and HTS?

HS is the six-digit global core. CN extends to 8 digits for EU exports and statistics. TARIC extends to 10 digits for EU imports including duties and trade measures. HTS extends to 10 digits for US imports. The first six digits always match.

How often is the HS updated?

Approximately every five years (HS 2017, HS 2022, HS 2027 planned). National extensions update annually for duty and trade-measure changes.

What are the consequences of misclassification?

Back-duties with interest, administrative fines, clearance delays, and loss of customs simplifications such as AEO status. Customs brokers may face professional liability and licence sanctions.

How accurate is AI-assisted classification?

Modern systems hit 80–92% top-1 accuracy at HS-6 on standard products and 92–98% top-3. Accuracy drops on ambiguous or novel products. AI is a productivity tool that amplifies human classifiers rather than replacing them.

Can AI replace a human classifier?

Not in 2026, and not for binding tariff rulings, complex composite goods, or trade-measure-sensitive shipments. Realistic positioning: AI handles the routine 80% at high accuracy, freeing classifiers to focus on the 20% that need expert judgment.

Related

AI customs broker — what it is and what it is not · Incoterms 2020 complete guide · Customs declaration software


This guide is informational and not legal classification advice. For binding decisions, request a Binding Tariff Information ruling from your national customs authority. Reach out on LinkedIn if you have corrections — I will update the page.

Get your customs documents into your declaration software automatically

Send us 10 real commercial invoices, packing lists or Bills of Lading from recent shipments. We will show how Logentic reads them, structures them and feeds your customs declaration software — before HS-code classification even starts.

Book a free demo →