Landed cost calculator: split freight and duty across SKUs

Paste the PO lines and the shipment costs. You get the landed cost per unit for every SKU, the margin at your price, and a cost file for Shopify or QuickBooks.

Free tool · Ecommerce brands · Shopify · Updated

1Add the PO lines

One row per SKU on the shipment. From Excel, save as CSV, or paste below.
With a header row, columns are matched by name. Without one, use the order in the grid.

Example shipment loaded. Replace it with your own PO lines.

SKUQtyUnit costWeight / unitVolume / unitDuty %Your price ($)
Unit cost is the supplier price without international freight. Weight and volume can be any unit, the same on every row.

2Add the shipment costs

Freight by volume or weight, insurance and broker by value, per-piece handling by units.

Find each rate in the HTS at hts.usitc.gov. Add any extra tariffs to the same %.

%

Split by value. Some goods are exempt, such as USMCA goods.

%
$

From Oct 1, 2026 (FY2027).

$

From Oct 1, 2026 (FY2027).

Harbor maintenance fee
%

Of the cargo value, 19 CFR 24.24.

$

Dollars per 1 unit of the PO currency. 1 when the PO is in dollars.

3Landed cost per unit, SKU by SKU

Landed cost of the shipment
$38,101
Added to supplier cost
21.4%
Duty, MPF and HMF
$1,876
Lowest margin: MB-0603
69.4%
SKUQtySupplier costFreight and otherDutyMPF and HMFLanded unit costPriceMargin: supplier to landed
CB-10181,200$6.40$1.28$0.26$0.03$7.97$34.0081.2% to 76.6%
KN-0805800$9.75$0.42$0.63$0.05$10.85$59.0083.5% to 81.6%
SP-0310600$11.20$1.17$0.56$0.05$12.98$45.0075.1% to 71.2%
TW-24102,400$2.10$0.24$0.19$0.01$2.54$16.0086.9% to 84.1%
MB-0603500$8.30$3.35$0.25$0.04$11.94$39.0078.7% to 69.4%
What each cost added
CostAmountSplit byShare of landed cost
Goods (supplier cost)$31,390.00–82.4%
Ocean freight$3,850.00Volume10.1%
Cargo insurance$95.00Value0.2%
Customs broker$165.00Value0.4%
Drayage to warehouse$725.00Weight1.9%
Duty$1,728.30Each row's rate4.5%
Merchandise processing fee$108.73Value0.3%
Harbor maintenance fee$39.24Value0.1%

4Put the new costs in Shopify

Drop your Shopify product export (Products > Export > All products). Rows are matched on SKU.

Want this done on your whole Shopify? We fix unit costs in Shopify and QuickBooks that leave out freight, duty and customs fees on your real data, tested with you.

Walk us through your landed costs

How do you calculate landed cost per unit?

Landed cost per unit is everything you paid to get a SKU into your warehouse, divided by the units received.

Landed cost per unit = (supplier cost of the line + its share of each shipment cost + its duty + its share of MPF and HMF) ÷ units

Example: one SKU on an ocean entry, 1,000 units at 5 dollars each.

  • Goods: 5,000 dollars
  • Its share of freight: 600 dollars
  • Duty at 5%: 250 dollars
  • MPF: 0.3464% is 17.32 dollars, under the minimum, so 34.58 dollars
  • HMF at 0.125%: 6.25 dollars
  • Landed cost: 5,890.83 dollars, or 5.89 dollars a unit

How do you split freight and duty across SKUs?

Each shipment cost is split by the thing that drives it, and each SKU takes its share.

SKU share = cost × the SKU’s weight, volume, value or units ÷ the shipment total of the same

  • Freight: by volume for ocean, by weight for air or trucking
  • Insurance, broker, MPF and HMF: by value
  • Per-piece handling or labeling: by units
  • Duty: each SKU’s own value × its own rate

Example: 3,000 dollars of ocean freight split by volume. A SKU that takes 6 CBM of a 20 CBM shipment carries 900 dollars.

Splitting freight by value instead moves cost onto small, pricey items and off bulky ones, so bulky SKUs look more profitable than they are.

What customs fees go into landed cost in the USA?

Besides duty, most formal entries pay a merchandise processing fee (MPF), and ocean cargo pays a harbor maintenance fee (HMF).

  • MPF: 0.3464% of the entered value, at least 34.58 dollars and at most 670.86 dollars per formal entry, from October 1, 2026 (19 CFR 24.23, CBP Dec. 26-14)
  • Informal entry MPF: 2.77 dollars when automated and not prepared by CBP, for most shipments of 2,500 dollars or less (19 CFR 143.21)
  • HMF: 0.125% of the cargo value for cargo unloaded at a listed U.S. port (19 CFR 24.24)
  • MPF exemptions: goods that qualify as USMCA originating, among others in 19 CFR 24.23(c)

Duty, MPF and HMF are figured on the value under 19 U.S.C. 1401a, which leaves out international freight and insurance (19 CFR 152.102). Find each duty rate in the Harmonized Tariff Schedule and add any extra tariffs to the same rate.

Example: a 120,000 dollar ocean container pays 415.68 dollars of MPF and 150 dollars of HMF.

How do I put landed cost into Shopify and QuickBooks?

Shopify keeps one Cost per item on each variant, and its profit reports use it.

  • Drop your Shopify product export into step 4. It writes back every variant of the matched products with the new cost.
  • In Shopify, Products > Import, tick Overwrite products with matching handles. Shopify needs the URL handle and Title columns to update a product.
  • A new cost applies to orders from that day on. Past orders keep the cost they were placed with.
  • For QuickBooks Online, the SKU and cost per item file gives your bookkeeper one landed cost per item.

Shopify’s help gives the supplier price as its example of cost per item. Using landed cost instead puts freight and duty into the margin it reports. Shopify margin after fees and shipping covers the selling side, and bulk editing Shopify prices covers changing prices after a cost moves.

Is there a landed cost calculator in Excel with the formula?

The download from step 3 opens in Excel with each cost split into its own column, so every number can be checked.

To build the split yourself, put each SKU’s driver in column D and the cost in B1:

Share = =B1*D2/SUM(D2:D50)

Press F4 on B1 and on the range to lock them, copy it down, add the shares to the line value, and divide by the quantity. Example: with 900 dollars in B1 and D2 at 6 of 20 total CBM, the formula returns 270.

Questions

Is my PO uploaded anywhere?

No. Your browser reads the rows and does the math on your computer. Close the tab and they are gone.

Is duty charged on the freight too?

For U.S. imports, the value for duty leaves out international freight and insurance (19 CFR 152.102). Use the supplier price without them as the unit cost.

Where do I find the duty rate for a SKU?

Search the product in the Harmonized Tariff Schedule at hts.usitc.gov, or use the rate on your entry summary. Your customs broker can confirm the classification.

What if the PO is in another currency?

Enter the unit costs as they are on the PO and set the dollars per 1 unit of that currency. Every cost and the CSV come out in dollars.

What if the shipment came by air?

Untick the harbor maintenance fee, which applies to ocean cargo only. Split the air freight by weight.

Sources

Lines of light running into one large blue period

Walk us through one problem.

We’ll tell you what we’d fix first.

Walk us through one problem

Free. 30 minutes. A one-page note within two business days.