CALCURATES BLOG

What Are HTS Codes and Why Every International Ecommerce Store Needs to Get Them Right

Image of HTS Codes for International Ecommerce Store
When an international order crosses a border, customs authorities don't guess what's inside the package or what duty rate applies. They look at a number — a harmonized tariff code assigned to the product — and apply the duty rate that corresponds to it. That number determines how much the customer or the store pays in import duties. If the number is wrong, the duty calculation is wrong. If the duty calculation is wrong, either the store absorbs an unexpected cost or the customer receives a charge they weren't told about.

HTS code shipping is not a technical detail that can be handled later. It is the input that makes accurate landed cost calculation possible — and without it, any international shipping configuration is working from incomplete data.

This article explains what HTS codes are, how they affect duty calculations, how to find the right code for each product, and what happens when they are missing or incorrect.
Image of harmonized tariff code assigned to the product

What HTS Codes Are

HTS stands for Harmonized Tariff Schedule. An HTS code is a standardized numerical classification assigned to every type of product traded internationally. The system is maintained by the World Customs Organization and used by customs authorities in most countries to identify products and determine applicable duty rates.

The code structure is hierarchical. The first six digits are the same across all countries that use the harmonized system — these identify the product category at an international level. Countries then add additional digits to reflect their own duty schedules and subcategories. In the United States, HTS codes are ten digits. In the EU, the equivalent system uses eight digits and is called the Combined Nomenclature (CN). In the UK post-Brexit, it is called the UK Global Tariff.

For ecommerce purposes, the relevant number is the one that applies in the destination country — because that is where customs will assess the duty. A product tariff code that is correct for US exports may map to a different classification in the destination country's system, and the duty rate that applies will be the destination country's rate for that classification.

How HTS Codes Affect Import Duties

Every product entering a country is assessed for import duty based on three inputs: the product's tariff classification, the country of origin shipping declaration, and the customs value of the shipment. The tariff classification — the HTS code — determines which duty rate applies. The country of origin determines whether any preferential rates apply under trade agreements. The customs value determines the amount on which the duty percentage is calculated.

The same physical product can attract very different duty rates depending on how it is classified. A textile product classified as apparel attracts a different duty rate than the same item classified as a household good. A component classified as an electronic part attracts a different rate than the same component classified as a finished consumer product. Tariff classification ecommerce decisions are not arbitrary — they follow the rules of the harmonized system — but they require judgment, and getting them wrong has direct financial consequences.

For ecommerce stores, the practical effect is this: without correct HTS codes assigned to each product, a duty calculation tool cannot produce an accurate result. It can estimate based on declared value alone, but the estimate will be imprecise because it cannot apply the correct rate for the product category. The difference between an accurate duty calculation and an estimate based on declared value alone can be substantial — particularly for products in categories with high duty rates or with eligibility for trade agreement exemptions.
Turn on cost-effective shipping
Let's check if Calcurates meets your shipping needs!

Why Country of Origin Matters

Country of origin shipping declarations are the second input in the duty calculation, alongside the HTS code. Many trade agreements between countries provide for reduced or zero duty rates on products that originate in a partner country. The US-Mexico-Canada Agreement (USMCA), for example, eliminates duties on qualifying goods traded between the three countries. The EU has similar agreements with dozens of countries.

For a product to qualify for a preferential rate under a trade agreement, two things must be true: the product must originate in a qualifying country, and the correct country of origin must be declared on the customs documentation. If the country of origin is missing or incorrect, the preferential rate cannot be applied — and the standard duty rate is assessed instead.

For ecommerce stores sourcing products from multiple countries, country of origin tracking is a product-level data requirement. A store that sources the same product from two different factories — one in a trade agreement country and one outside it — needs to track origin at the inventory level to apply the correct duty treatment per shipment.

What Happens When HTS Codes Are Wrong

Using an incorrect HTS code on international shipments creates several categories of risk.
  • Underpayment of duties
    If the assigned code corresponds to a lower duty rate than the correct classification, the customs authority may assess additional duties on arrival, plus penalties for misdeclaration. In some jurisdictions, deliberate misdeclaration of product classification is treated as customs fraud. Even unintentional errors can result in penalties if the pattern is systemic.
  • Overpayment of duties
    If the assigned code corresponds to a higher duty rate than the correct classification, the store or customer overpays. For DDP shipments where the store absorbs duties, this is a direct margin cost. For DDU shipments where the customer pays, it creates a worse customer experience than necessary — and potentially loses sales in markets where the correct duty rate would have been acceptable but the incorrect rate makes the landed cost prohibitive.
  • Customs delays
    Mismatch between declared classification and the actual product can trigger customs examination and delay. For ecommerce shipments where delivery speed is part of the value proposition, customs delays damage the customer experience regardless of whether the duty amount is ultimately correct.
  • Loss of trade agreement benefits
    A product that qualifies for a preferential rate under a trade agreement but is classified under an incorrect code may not receive that rate. The store pays standard duty rates on shipments that should have been duty-free or reduced.

How to Find the Right HTS Code for a Product

Finding the correct harmonized tariff code for a product requires working through the classification hierarchy. The process starts with identifying the product's primary material or function, then working through the chapters and headings of the harmonized system to find the most specific applicable classification.

Several resources support this process. In the United States, the US International Trade Commission maintains a searchable HTS database at hts.usitc.gov. In the EU, the European Commission's TARIC database provides the Combined Nomenclature. Most major customs authorities publish their national tariff schedules with search tools.

For product categories that are genuinely ambiguous — products that could fit multiple classifications — customs authorities in many countries offer binding tariff rulings. A binding ruling is an official determination of the correct classification for a specific product, issued by the customs authority, that provides certainty and protection against reclassification on import.

For ecommerce stores with large product catalogs, classification at scale requires a systematic approach: assigning HTS codes at the product level in the product database, reviewing classifications when products change or new sourcing is introduced, and updating codes when tariff schedules are revised.
Image of Finding the Right HTS Code for a Product

How to Set Up HTS Codes for International Ecommerce

The practical requirement is that each product in the store's catalog has an HTS code assigned as a product attribute, alongside the country of origin. These two fields are what the duty calculation uses to determine the applicable rate per destination country.

In Calcurates, HTS codes and country of origin are supported as custom product attributes. When an international order is placed, the duty calculation retrieves the HTS code and country of origin for each item in the order, looks up the applicable duty rate for the destination country, and combines the result with the carrier freight rate to produce a landed cost total at checkout. The full configuration for international shipping — including product attribute setup, duty calculation, and checkout display — is documented on the international shipping feature page.

The setup process has three steps. First, assign HTS codes to each product in the catalog — either manually for small catalogs or via import for larger ones. Second, assign country of origin to each product, noting that this may vary by supplier or SKU. Third, configure the duty calculation to use these attributes when generating checkout rates for international destinations.

Without these attributes, the calculation falls back to estimates based on declared value. With them, the calculation produces accurate duty amounts per product, per destination, per order.

Stores configuring international shipping for the first time often find that HTS code assignment is the step that takes the most time. The international shipping configuration can be set up quickly; the product data requires more effort when the catalog is large. Starting with the highest-volume products and the highest-duty destination markets is the practical prioritization.

Table 1: HTS code errors and their consequences

Table 2: HTS code structure by jurisdiction

FAQ

An HTS code (Harmonized Tariff Schedule code) is a standardized numerical classification assigned to a product for customs purposes. It identifies what the product is within the international harmonized system and determines which duty rate applies when the product crosses a border. The first six digits are internationally standardized; additional digits vary by country. Every product shipped internationally should have an HTS code assigned — it is the primary input customs authorities use to assess import duties.

Getting HTS Codes Right Before Scaling International Shipping

HTS code assignment is the infrastructure work that makes accurate international shipping economics possible. Without it, landed cost calculations are estimates, duty exposure is uncontrolled, and trade agreement benefits go unclaimed.

The classification work is not complex for most product categories — it requires matching each product to its correct position in the harmonized system and recording the result as a product attribute. The commercial return is direct: accurate duty calculation at checkout, correct application of trade agreement rates, and elimination of the customs errors that generate penalties, delays, and unexpected costs.

For ecommerce stores configuring international shipping for the first time, HTS code assignment is the step to complete before going live with duty display at checkout. The international shipping feature page covers the full configuration, including how product attributes integrate with the duty calculation and how results are displayed per shipping method at checkout.
Did you like this article?

Ready to set up cost-effective shipping for your store?