How to Add Tariff Calculation to Your E-Commerce Checkout Flow
What changed: Rewritten: checkout duty for every destination is a job for a checkout provider such as Zonos or Avalara or your platform's own feature; GingerControl's part is the U.S. side (HTS codes with their reasoning and the duty by entry date) in GingerLite. Unsourced survey figures and the multi-country threshold table are gone.
You connect a duty and tax provider that quotes each cart for its destination before the customer pays, show the result as its own line, and ship those orders duty paid. For most stores the provider is the platform's own feature, such as Shopify's duties and import taxes, or a checkout app such as Zonos or Avalara, because they already cover each country's rates, taxes and thresholds. The part that decides whether the quote is right is your product data: every product needs a correct HS code and country of origin, and those are worth checking before launch.
In this post
- Where does tariff calculation fit in the checkout flow?
- Who should calculate duty for each destination?
- Why does the HS code decide the duty at checkout?
- How do you get product codes right before launch?
- Should your checkout collect duty upfront (DDP) or leave it for delivery (DAP)?
- Which destination rules change the checkout logic?
- How should duties be displayed at checkout?
- How do you keep checkout fast while quoting duty?
- Frequently Asked Questions
- Getting the U.S. side right
- References
Where does tariff calculation fit in the checkout flow?
Between the shipping address and the payment step. Once the customer enters an address, the checkout knows the destination; your catalog already knows each product's HS code, country of origin and price. The provider turns those into duty and import tax, and the checkout shows them before the customer clicks Pay.
For international orders sent from the U.S. through USPS, carry the reviewed product data into the USPS customs declaration as well as the checkout quote.
| Step | What happens | What it needs |
|---|---|---|
| Cart | Customer adds products | Price, HS code and origin stored per product |
| Address | Destination is known | Country, sometimes region |
| Duty quote | Provider returns duty, import tax and fees | Codes, origin, value, destination, shipping |
| Order summary | Duty shown as its own line | A clear label and the total landed cost |
| Payment and label | Customer pays; order ships DDP | Carrier told that duty is prepaid |
The quote is only as good as the HS code and origin it starts from. A provider cannot know that a product saved as "accessory" is a steel part that carries Section 232 duty into the U.S.
Who should calculate duty for each destination?
A provider that covers every country you ship to. Checkout duty is a job of its own: each destination has its own tariff schedule, import VAT or GST, low-value rules and changes, and the quote has to land inside the checkout. Three kinds of provider do it:
- Your platform's own feature, such as Shopify's duties and import taxes, when your plan and destinations qualify.
- A checkout app. Zonos sells a guaranteed landed cost, stated on its pricing page as 2 USD plus 10% of the duties, taxes and other import fees, per order, typically paid by the shopper at checkout (read October 12, 2026). Avalara sells AvaTax Cross-Border, which estimates duties and import taxes next to sales tax.
- Your own integration, only when you have engineers and a duty source for every destination.
GingerControl does not calculate checkout duty. Its part is the U.S. side of the data the provider reads: the HTS code with its reasoning, and the duty for a given entry date.
Why does the HS code decide the duty at checkout?
Because U.S. duty is a stack, and every layer hangs off the code and the origin. Steel bolts with nuts from China, HTS 7318.15.20, show a Free base rate in the tariff schedule, but owe:
- Base rate: Free
- Section 301 (List 3): 25%
- Section 232 (Annex I-A steel articles, on the full value since April 6, 2026): 50% [2]
- Forced-labor Section 301 (since July 24, 2026): 0%, because Section 232 articles are exempt [3]
- Section 122: 0%, because it only covered goods entered February 24 to July 23, 2026 and did not stack on Section 232 duties
That is 75% before MPF. A checkout that shows "no import duty" on that order creates the surprise-at-delivery problem it was meant to remove.
How do you get product codes right before launch?
- Start with the products that ship abroad most and those made of several materials or doing several things.
- Collect what decides the code: material and its share, how it is made, function, use and every piece in a set.
- Classify each product with its reasoning on record. For U.S. imports, GingerControl's Classification Researcher returns a 10-digit HTS code with the GRI reasoning behind it, and asks when a fact that decides the code is missing. One classification takes 3 to 5 minutes with its full report; it reads descriptions in English or Chinese. In the GingerLite app each product is its own case.
- Check the U.S. duty for your top products. GingerControl's Tariff Calculator takes an HTS code, a value and an entry date and shows each U.S. layer, MPF and HMF, across 200+ origin countries. Compare it with what your checkout quotes.
- Have your customs broker review codes before they go on entries. GingerControl's classifications are for general reference, educational and planning purposes.
Use what-if duty calculation across product specifications when composition or configuration changes along with the sourcing origin.
Should your checkout collect duty upfront (DDP) or leave it for delivery (DAP)?
Both need an accurate number; they differ in who pays and when.
| Factor | DDP (Delivered Duty Paid) | DAP (Delivered at Place) |
|---|---|---|
| Who pays duty | The merchant, collected at checkout | The customer, at delivery |
| Customer experience | One total at checkout | A bill at the door |
| Refused parcels | Fewer: no surprise | More: some customers refuse to pay |
| Merchant work | Collect, prepay through the carrier, handle refunds on returns | Lower |
| Label | DDP, so the carrier does not bill again | DAP |
If you stay on DAP, show an estimate anyway ("You may owe about $X in import duty at delivery"), so the bill at the door is not a surprise.
Which destination rules change the checkout logic?
Low-value thresholds differ by country and keep changing. A few that matter for most stores:
- United States: no duty-free threshold today. De minimis was suspended for every country on August 29, 2025 and suspended indefinitely by CBP rules published June 24, 2026, postal shipments included [1]. Every U.S.-bound order goes through entry and pays whatever duty its code carries.
- European Union: import VAT applies from the first euro since July 1, 2021, with the IOSS letting sellers collect it at the sale on consignments up to EUR 150; since July 1, 2026 a temporary customs duty of EUR 3 per item (per tariff line) applies to B2C parcels up to EUR 150, until July 1, 2028 [4] [6].
- United Kingdom: VAT is charged at the point of sale on consignments up to GBP 135 [5].
The full table for 22 countries is in our de minimis threshold by country guide. Your checkout provider should apply these; check that it covers each country you sell to.
How should duties be displayed at checkout?
- Show duties and import taxes as their own line, labeled plainly ("Import duties and taxes").
- Show the total landed cost: products, shipping, duties and taxes.
- Say what the line means: "Duties are prepaid, so you will not be charged at delivery."
- Show zero when nothing is owed, so customers do not wonder.
- Do not hide duty in shipping, and do not show it only after payment details.
How do you keep checkout fast while quoting duty?
Cache. The same product from the same origin to the same destination gets the same answer until a rule changes, so store each quote and reuse it, and refresh when the provider or your own rule watch says a rate moved. For U.S. rules, GingerControl's Compliance Radar checks new U.S. trade notices against your HTS codes and emails you what to redo by the effective date.
Frequently Asked Questions
What is tariff calculation at checkout?
It is the step that quotes import duty and taxes for an order before the customer pays, so they see the full landed cost and owe nothing at delivery. The quote depends on each product's HS code and country of origin, the order value and the destination's rules.
Which tools calculate duties and taxes at checkout?
Platform features such as Shopify's duties and import taxes, and checkout apps such as Zonos, which sells a guaranteed landed cost, and Avalara AvaTax Cross-Border. GingerControl does not calculate checkout duty; its GingerLite app helps you set each product's U.S. HTS code with its reasoning and check the U.S. duty for an entry date.
The complete U.S. import duty calculation workflow keeps the base rate, trade-remedy layers and entry fees visible separately.
What is the difference between DDP and DAP for e-commerce?
Under DDP the merchant collects duty at checkout and prepays it, so the customer pays nothing at delivery. Under DAP the customer pays duty when the parcel arrives. DDP orders must ship on DDP labels, or the carrier can bill the customer a second time.
Use Incoterms and importer cost responsibilities to assign freight, risk and clearance responsibilities before comparing supplier quotes.
Why do some duty calculators show the wrong U.S. rate?
Many show only the base rate in the tariff schedule and miss Section 301, Section 232 and other Chapter 99 lines that can add 25% to 75% or more. Steel bolts from China show a Free base rate but owe 75% in U.S. duty before fees.
How do de minimis thresholds affect checkout calculation?
Below a destination's threshold, an order may owe no duty, and sometimes no tax. The U.S. has had no duty-free threshold since August 29, 2025, so every U.S.-bound order owes duty. Your checkout provider should apply each destination's rules.
How do I classify thousands of products for checkout?
Start with the products that ship abroad most and those with several materials or functions, and record why each code was chosen. In GingerControl's GingerLite app, the Classification Researcher handles one product per case, 3 to 5 minutes each with its reasoning report; classifying a whole catalog in batches is part of GingerOS, the system GingerControl builds for larger companies.
Getting the U.S. side right
Let your platform or a checkout app quote duty for every destination. For U.S. imports, GingerLite, the GingerControl app for small businesses and customs brokers, gives you each product's HTS code with its reasoning, the duty for an entry date and alerts when a rule changes your codes. It is $150 a month for 300 credits, with top-ups if you run out. Open GingerLite.
More on the checkout architecture is in real-time DDP at checkout.
References
- U.S. Customs and Border Protection, interim final rule on de minimis, 91 FR 37789
Data cited: de minimis suspended for every country since August 29, 2025; suspended indefinitely for every mode, postal included, from June 24, 2026; a new postal informal-entry process from July 24, 2026 (91 FR 37801)
Source: Federal Register 2026-12670 and Federal Register 2026-12669
Published: June 24, 2026 - Proclamation 11021, Section 232 metals, 91 FR 18201
Data cited: Section 232 on the full customs value from April 6, 2026; Annex I-A articles 50%
Source: Federal Register 2026-06960
Published: April 9, 2026 - USTR, Notice of actions in the Section 301 investigations, 91 FR 47318
Data cited: forced-labor Section 301 from July 24, 2026; Section 232 articles exempt (9903.05.90)
Source: Federal Register 2026-15181
Published: July 28, 2026 - European Commission, Taxation and Customs Union, customs formalities for low-value consignments
Data cited: VAT exemption for goods under EUR 22 abolished from July 1, 2021; the IOSS for consignments up to EUR 150
Source: European Commission, low-value consignments - GOV.UK, VAT and overseas goods sold directly to customers in the UK
Data cited: VAT charged at the point of sale on consignments up to GBP 135
Source: GOV.UK guidance - European Commission, guidance and legal text on the temporary flat fee on low-value imports
Data cited: EUR 3 per item (tariff line) on B2C distance sales up to EUR 150 from July 1, 2026 until July 1, 2028; Council Regulation (EU) 2026/382
Source: European Commission news, June 8, 2026
Published: June 8, 2026
Shortlisting AI for trade compliance?
Hand this to GingerOS.
Pick a 30-minute slot on the next page with Chen Cui, our CEO. Bring one notice or one SKU list (an ERP export, a spreadsheet or an email will do) and see what GingerOS does with it.
Reviewed by Michael Weick, LCB / CCS




