Most cross-border e-commerce landed-cost calculators fail in 2026–2027 because they model customs duty as a single flat percentage multiplied by product price. In production trade compliance and SKU-level margin forecasting, that simplification breaks down across three dimensions: additive Chapter 99 tariff stacking, customs valuation base divergence (US FOB vs. EU/UK CIF), and statutory entry-level user fees that introduce steep per-shipment step functions.

This walkthrough lays out the deterministic math and TypeScript reference model needed to price US and EU cross-border shipments accurately across the 2026–2027 regulatory transition.

1. Valuation Base Divergence & Additive US Tariff Stacking

Before multiplying any rate, you must normalize the customs valuation base:

  • United States (19 U.S.C. § 1401a): Duties, MPF, and HMF are assessed on Transaction Value (FOB)—effectively the price paid or payable for the merchandise excluding international ocean/air freight and marine insurance (assuming bona fide international shipping terms).
  • European Union & United Kingdom: Duties are assessed on CIF value (GoodsValue + InternationalFreight + Insurance), and import VAT is assessed on CIF + Customs Duty ((CIF + Duty) * DestinationVATRate).

On the US side, you rarely pay a single rate. Total duty is additive across the base schedule and overlapping Chapter 99 remedies:

Total US Duty Rate = Column 1 MFN + Chapter 99 Section 301 + Reciprocal / IEEPA + Section 232 

Where specific duties (e.g., $/kg or ¢/unit) apply alongside ad valorem rates, each component must be summed per unit before rolling up to the entry level.

2. FY2027 CBP MPF and Ocean HMF Math (Effective Oct 1, 2026)

Every formal or informal US consumption entry carries mandatory U.S. Customs and Border Protection (CBP) user fees. For FY2027 (effective October 1, 2026), CBP inflation-adjusted the Merchandise Processing Fee (MPF) bounds, while the Harbor Maintenance Fee (HMF, 26 U.S.C. § 4461) remains uncapped for ocean cargo:

Fee / Mode Statutory Rate Floor Cap Inflection Points / Notes
Formal MPF (Entry > $2,500) 0.3464% of FOB $34.58 $670.86 Hits floor < ~$9,982.68; hits cap > ~$193,666.28
Automated Informal MPF (≤ $2,500) Flat per entry $2.77 $2.77 Applies to automated informal entries (Type 11 / Type 13)
USMCA / KORUS Formal MPF 0.00% $0.00 $0.00 Exempt when qualifying origin certificate is on file
Ocean HMF (26 U.S.C. § 4461) 0.125% of FOB $0.00 Uncapped Ocean vessel arrivals only; $0 on air, truck, or rail

Notice why batch sizing matters: a $4,000 formal air shipment pays the $34.58 MPF floor (0.865% effective rate—more than double the statutory 0.3464%), whereas consolidating $250,000 into a single ocean container caps MPF at $670.86 (0.268%) while HMF scales linearly to $312.50.

Here is a clean TypeScript implementation of the FY2027 CBP fee engine and US/EU landed-cost core:

export type TransportMode = 'ocean' | 'air' | 'truck' | 'rail'; export type EntryType = 'formal' | 'informal_automated' | 'section_321'; export interface UsShipmentInput { batchFobUsd: number; freightUsd: number; insuranceUsd: number; mode: TransportMode; entryType: EntryType; mfnRate: number; // e.g. 0.065 for 6.5% section301Rate: number; // e.g. 0.25 for 25% reciprocalRate: number; // e.g. 0.10 for 10% section232Rate: number; // e.g. 0.25 for 25% ftaMpfExempt: boolean; // Qualifying USMCA / KORUS origin } const FY2027_MPF_RATE = 0.003464; const FY2027_MPF_MIN = 34.58; const FY2027_MPF_MAX = 670.86; const FY2027_INFORMAL_MPF = 2.77; const HMF_OCEAN_RATE = 0.00125; function clamp(val: number, min: number, max: number): number { return Math.min(Math.max(val, min), max); } function roundCents(val: number): number { return Math.round((val + Number.EPSILON) * 100) / 100; } export function calculateUsLandedCost(input: UsShipmentInput) { if (input.entryType === 'section_321') { return { customsDuty: 0, mpf: 0, hmf: 0, totalLandedCost: roundCents(input.batchFobUsd + input.freightUsd + input.insuranceUsd), }; } const combinedDutyRate = input.mfnRate + input.section301Rate + input.reciprocalRate + input.section232Rate; const customsDuty = roundCents(input.batchFobUsd * combinedDutyRate); let mpf = 0; if (!input.ftaMpfExempt) { mpf = input.entryType === 'informal_automated' ? FY2027_INFORMAL_MPF : roundCents(clamp(input.batchFobUsd * FY2027_MPF_RATE, FY2027_MPF_MIN, FY2027_MPF_MAX)); } const hmf = input.mode === 'ocean' ? roundCents(input.batchFobUsd * HMF_OCEAN_RATE) : 0; return { customsDuty, mpf, hmf, totalLandedCost: roundCents( input.batchFobUsd + input.freightUsd + input.insuranceUsd + customsDuty + mpf + hmf ), }; } 

3. Section 321 Repeal (July 2027) & EU €3.00 Transitional Duty

Two statutory regimes fundamentally alter small-parcel D2C fulfillment economics across 2026–2027:

  1. US Section 321 Statutory Sunset (July 1, 2027) & Entry Type 13: Under the One Big Beautiful Bill Act (OBBBA), the commercial $800 Section 321 de minimis exemption sunsets permanently on July 1, 2027. Ahead of that cliff—and already affecting Chapter 99-covered goods—CBP's January 2027 Entry Type 13 transition enforces full 10-digit HTSUS reporting even on low-value consignments. Moving a $45 apparel parcel from Type 86 ($0 duty, $0 MPF) to Entry Type 11/13 (16.5% MFN + 25% Sec 301 + $2.77 informal MPF) turns a $45 FOB item into $66.45 before domestic last-mile shipping.
  2. EU Low-Value Consignment Reform (July 1, 2026 – July 1, 2028): For parcels valued ≤ €150, the EU's interim customs reform replaces the old €150 duty-free threshold with a €3.00 flat customs duty per unique HS tariff line (e.g., 3 different HS-6/8 categories in one box = €9.00 flat duty), stacked on top of destination IOSS VAT (17%–27% depending on the member state) applied to (CIF + €3.00 * uniqueTariffLines).

4. Reference Implementations & Interactive Simulators

If you are building ERP pricing hooks, checkout duty estimators, or bulk SKU margin sheets, you can inspect the open-source TypeScript formulas or run live scenario comparisons directly:

Educational Disclaimer: The formulas, statutory thresholds, and TypeScript models above are provided for software engineering and financial modeling education only and do not constitute legal advice or licensed customs brokerage guidance. Always confirm binding HTSUS classifications, Chapter 99 exclusions, and CBP entry filings with a licensed customs broker.