Back to Insights
TRADE KNOWLEDGE

What is an HS Code? structure and usage in import & export.

Misclassifying HS codes leads to penalties and customs delays. Learn what an HS Code is, its structure, and its impact on import duties and regulatory policies.

8 min readUpdated

In import & export, simply declaring a wrong product code can cause a business to pay incorrect taxes, apply incorrect management policies, or spend extra time explaining to customs. That is why the HS Code is always one of the most critical pieces of information when preparing documents, declaring customs, and calculating import costs.

So, what is an HS Code, how many digits does it contain, and why does it directly affect duties, permits, and specialized inspections of goods? This article will help you understand the basics before diving into the detailed lookup process.

HS Code is a product classification code used to determine duties, policies, and regulatory requirements in import & export.

What is an HS Code?

An HS Code, also known as a Harmonized System code, is a numerical code used to classify goods in international trade. HS stands for the Harmonized Commodity Description and Coding System.

Put simply, HS Codes provide countries with a "common language" to identify exactly what item is being imported or exported. Instead of relying solely on a product's commercial name, customs authorities use the HS code to determine the product group, duty rates, regulatory policies, and related requirements.

For example, although all are "coffee", green coffee beans, roasted coffee, instant coffee, or coffee preparations can be classified under different HS codes. If you only look at the general commercial name, it is very easy to select the wrong code.

What is the Harmonized System?

The Harmonized System is a commodity classification system widely used in international trade. This system divides goods into chapters, headings, and subheadings based on the nature, composition, usage, processing level, or technical specifications of the goods.

Crucially, the first 6 digits of the HS code are generally standardized and used uniformly among participating countries. However, each country can extend the code with additional digits to serve its own tariff schedule, trade statistics, and specific regulatory policies.

Therefore, when doing import & export in Vietnam, businesses not only need to understand the HS Code at the international level but also need to verify the code according to the tariff and regulations applied in Vietnam.

Customs declaration requires identifying the correct HS code of the goods.

How many digits does an HS Code contain?

An HS code is usually understood at multiple levels. In practice in Vietnam, the HS code typically consists of 8 digits when used in the tariff schedule and customs declarations.

For example, an HS code can be understood hierarchically:

09: Chapter on coffee, tea, mate and spices

0901: Heading for coffee

0901.xx: Subheading detailing roasted, unroasted, decaffeinated status, etc.

0901.xx.xx: Detailed code under the tariff schedule applied in Vietnam

The key takeaway is that you should not just look at the product name and pick the closest-looking code. The HS code must be determined based on the nature of the goods, technical description, composition, function, and relevant classification rules.

Sơ đồ cấu trúc mã HS Code (Ví dụ: 0901.21.00)

09Chương
01Nhóm
21Phân nhóm
00Thuế dòng VN
2 số đầu (09):Đại diện cho Chương sản phẩm (ví dụ: Chương 09 - Cà phê, chè, chè mate và các loại gia vị).
4 số đầu (0901):Đại diện cho Nhóm sản phẩm (ví dụ: Cà phê đã hoặc chưa rang...).
6 số đầu (0901.21):Đại diện cho Phân nhóm quốc tế (áp dụng đồng nhất trên toàn cầu).
8 số đầu (0901.21.00):Đại diện cho Phân nhóm quốc gia (biểu thuế dòng AHTN/Việt Nam để tính thuế chi tiết).
The HS code structure helps classify goods from general categories to detailed tariff lines in Vietnam.

What is the HS Code used for in import & export?

An HS Code is not just a number to fill in a declaration. In trade, the HS code affects many critical parts of a shipment.

1. Determining import duties and related taxes

The HS code is the basis for determining the import duty rate. Only when the correct HS code is known can a business check whether the goods are subject to preferential import duties, ordinary import duties, duties under trade agreements, or other taxes. Additionally, the HS code is related to VAT, special consumption tax, environmental protection tax, etc.

2. Determining product regulatory policies

Certain goods require permits, quality control, quarantine, conformity certification, or specialized inspections when imported or exported. These requirements are usually identified based on the HS code. For example, among electrical devices, some only require standard declaration, while others must undergo energy efficiency or electrical safety testing. If the HS code is incorrect, businesses might miss regulatory requirements or prepare incorrect documentation.

3. Supporting statistics and trade management

HS Codes are also used to compile import/export statistics, manage product categories, track trade flows, and formulate economic policies. Therefore, the HS code serves not only businesses but is also vital data for regulatory agencies.

4. Unifying information among stakeholders

Many parties use the HS code for a single shipment: the seller, the buyer, the forwarder, the customs broker, the accountant, the purchasing department, and the customs authorities. When the HS code is correct, it is easier for all parties to align on tax calculations, prepare documents, and process procedures.

An HS code can decide whether goods are imported normally or require specialised permits.

Distinguish: HS Code, HS System, and Tariff Line

When starting out in international trade, it is easy to confuse these terms. In short: the HS System is the classification framework, while the HS Code / mã HS is the specific code of a product within that system. When operating in Vietnam, businesses usually work with the detailed code in the Vietnamese tariff schedule.

TermSimple understanding
HS CodeSpecific numerical code to classify a product under the HS system
Harmonized System (HS System)The international system for classifying and coding commodities
Tariff Line (Mã biểu thuế)Code in the national tariff schedule used to look up duty rates and policies

Why is it crucial to identify the correct HS Code?

Identifying the correct HS code helps businesses avoid many risks during the import/export process.

First, the HS code directly affects the amount of tax payable. If a business selects a wrong code with a lower tax rate, it may face tax back-payments, late payment penalties, or be classified as a high-risk entity in future declarations.
Second, the HS code affects product regulatory policies. Different codes can lead to different documentation requirements. The wrong code can cause shipments to be detained for inspection, require license supplements, or force declaration amendments.
Third, the HS code affects the landed cost quotation, import plans, and purchasing decisions. If taxes are calculated incorrectly from the start, businesses may quote prices incorrectly, miscalculate profit margins, or misjudge the cost of bringing goods to the warehouse.

For items with complex structures, unassembled component sets, multi-purpose items, or products with mixed compositions, the determination of the HS code must be verified even more carefully.

When do you need to look up the HS Code accurately?

Businesses should search and verify the HS code before importing or exporting goods, especially in the following scenarios:

Preparing to import a new product that has never been declared before.
Needing to pre-calculate import duties and landed cost.
Goods containing multiple materials, functions, or accompanying parts.
Goods that potentially fall under specialized inspections.
The supplier provides an HS code, but it is not certain to match Vietnam's regulations.
There are discrepancies in the HS code between the invoice, packing list, C/O, and the proposed declaration code.

A common pitfall is taking the HS code from foreign suppliers and using it directly in Vietnam. This can serve as a reference, but should never be taken as a final conclusion, because each country may have different code extensions and applicable policies.

Simple example of HS Code in import & export

Suppose a business imports coffee. If the product description only says "coffee", this information is insufficient to determine the correct HS code. The person in charge needs to clarify:

Is the coffee roasted or unroasted?
Is it decaffeinated or not?
Is it green coffee, coffee powder, or a processed coffee product?
Is it used as raw material, for retail, or packaged product?

Only when there is enough information about the nature of the goods can a business determine the appropriate code group. This is also why the HS code should not be selected simply by searching for a product name online and picking the closest one.

The commercial name is not enough to determine the HS code; the nature and actual state of the goods must be checked.

Should you look up the HS Code by yourself?

Businesses can search for HS codes by themselves to get a basic understanding of the product group, tax rates, and related policies. However, for high-value items, new items, high-tech items, or items with multiple classification possibilities, it is recommended to verify with a specialist or carefully cross-reference with the tariff schedule, chapter notes, heading notes, and relevant regulations.

Once you understand what an HS Code is and its structure, you can proceed to the guide on how to look up HS codes accurately to learn the actual checking workflow for imported and exported goods.

Look up HS Codes faster with AI Assistant

Traditional HS Code lookup requires looking through thousands of pages of tariffs and circulars. To accelerate speed and minimize errors, Gexim AI provides a breakthrough automated HS Code lookup solution.

5 reasons to choose Gexim AI for HS Code lookup:

Up to 99% accuracy: The system analyzes product properties, materials, and usages in actual context.
Fast response time: Delivers optimal 8-digit HS code suggestions in just 1.5 seconds.
Integrated 2026 tariff schedule: Instantly view MFN, FTA, and import VAT rates.
Automated risk alerts: Early warnings for anti-dumping duty (CBPG), CITES, quarantine, or specialized permits.
Audit trail archive: Save classification history and reasons as justification for future customs audits.

Dùng thử GEXIM AI để tra cứu nhanh mã HS, thuế suất và cảnh báo chính sách rủi ro chỉ trong 1.5 giây.

FAQ

What does HS Code stand for?+
HS Code stands for Harmonized System Code — a commodity description and coding system developed by the World Customs Organization (WCO).
How many digits do HS codes have in Vietnam?+
Vietnam uses 8-digit HS codes. The first 6 digits are the mandatory international subheading, and the last 2 digits are country-specific details based on the ASEAN Harmonized Tariff Nomenclature (AHTN).
Should I directly use the HS code provided by a foreign supplier?+
No. You should only use the first 6 digits as a reference. You must verify and match the 8-digit code according to Vietnam's tariff schedule, as each country has different details for the trailing digits.

Conclusion

The HS Code plays a pivotal role in import and export operations, acting as the key to determining a business's tax liabilities and customs procedures. Understanding the structure of the HS code, from the 2-digit chapter level to the 8-digit detailed level, empowers businesses to be more proactive when working with partners, preparing documents, and calculating costs.

Always remember that determining the HS code requires diligence, based on accurate technical documents and customs classification rules. Investing time to get the HS code right from the beginning will save businesses significant costs and clearance time for their shipments.

Tags

HS codeProduct classificationCustoms clearance
Back to Insights

More articles