Vietnam Import Duty & Landed Cost Calculator by HS Code
Import duty (MFN or FTA rate by HS code), excise, environmental tax and VAT in the legal order, with the landed cost per unit of goods imported to Vietnam.
Result
Press “Run” to see the result.
Send an 8-digit hs_code and the value as cif (or fob / exw + freight + insurance) in any currency with an exchange_rate (otherwise today's Vietcombank buying rate is fetched). The API reads the 2026 tariff line from /v1/hs-code and computes, each tax on top of the previous base: customs value, import duty (MFN rate, the special preferential rate of an agreement with fta — a C/O form such as E, D, EUR.1, CPTPP, RCEP with origin_country — or the normal rate of 150% MFN with mfn=false), excise tax on customs value + duty (Luật Thuế TTĐB 66/2025), environmental protection tax per unit, and import VAT on the sum (8% while the reduction applies and the goods are not excluded, else 10%).
The answer has a steps table with each base, rate, amount and legal reference, the total payable at customs and the landed_cost (customs value + duties + excise + environmental tax + other_costs, adding VAT only when vat_deductible=false) per unit when quantity is sent. Any rate can be overridden (import_duty_rate, excise_rate, environmental_tax_per_unit, vat_rate, additional_import_tax for anti-dumping or safeguard duties). Excise items marked by engine size or seats need excise_rate.
Use this in your code
curl "https://apibox.io.vn/v1/vn-import-cost?hs_code=2203.00.91&fob=9000&freight=800&insurance=200¤cy=USD&exchange_rate=25000&fta=EUR.1&origin_country=DE&quantity=12000&date=2026-11-11" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-import-cost?hs_code=2203.00.91&fob=9000&freight=800&insurance=200¤cy=USD&exchange_rate=25000&fta=EUR.1&origin_country=DE&quantity=12000&date=2026-11-11', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/vn-import-cost?hs_code=2203.00.91&fob=9000&freight=800&insurance=200¤cy=USD&exchange_rate=25000&fta=EUR.1&origin_country=DE&quantity=12000&date=2026-11-11",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-import-cost?hs_code=2203.00.91&fob=9000&freight=800&insurance=200¤cy=USD&exchange_rate=25000&fta=EUR.1&origin_country=DE&quantity=12000&date=2026-11-11');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
In what order are the taxes computed?
Import duty on the customs value; excise on customs value + import duty (+ anti-dumping / safeguard); environmental tax per unit; VAT on customs value + import duty + excise + environmental tax.
Which FTA rate is used?
The rate of the agreement you send in fta from the tariff workbook, if the line has one and your origin_country is not excluded; RCEP rates depend on the exporting country. Otherwise the MFN rate is used and a note explains why.
Is this the amount on the customs declaration?
It is an estimate. Customs may adjust the value (royalties, commissions, related-party prices) and uses the exchange rate of the declaration week; check the decree for the exact tariff.