Sweekly Apps

Landed cost calculator for a whole shipment

A real delivery has several products, and the freight, duty and broker fees have to be split across them. This one does the split and gives you the landed cost per unit for each product.

1. Split method and exchange rate

2. Products in this shipment

Unit cost in the supplier's currency. Weight only if you split by weight. Units on hand and current cost only if you want the new weighted average.

ProductQtyUnit costWeight per unitUnits on hand beforeCurrent cost

3. Extras for the whole shipment (your currency)

CostAmount

Everything runs in this page. Nothing you type is sent anywhere or stored.

How the numbers are worked out

  1. Unit cost in your currency = supplier unit cost × exchange rate.
  2. Each product's share of the extras = total extras × (its basis ÷ the sum of all bases). The basis is its goods value, its unit count or its total weight, by the method you chose. Shares are rounded to the cent so they add up to the extras exactly.
  3. Landed cost per unit = unit cost + its share of the extras ÷ its quantity.
  4. New weighted average (optional) = (units on hand × current cost + quantity received × landed cost per unit) ÷ (units on hand + quantity received).

Which split to use: duty is usually charged on value, so split it by value; freight is usually priced on weight or volume, so heavy, cheap items should carry more of it; per-shipment fees such as a broker's are often split by quantity. If your extras mix these, run the calculator once per kind of cost and add the shares up, or use the spreadsheet below, which has one method per cost line.

Spreadsheet template

Download the template (.xlsx). It opens in Excel and in Google Sheets (File → Import). It uses the same formulas, with a split method for each cost line.

Putting the result into Shopify

Shopify keeps one cost per item for each variant. Type the landed cost per unit (or the new weighted average, if you average) into that field for each variant you received. Receiving a purchase order does not change that field (Shopify's help, read 12 November 2026), so if you receive purchase orders often, doing this by hand for every delivery is where mistakes creep in.

Costdock does this step from Shopify's own purchase orders: it turns each delivery into a receipt, lets you add the freight and duty, shows the new cost per item before anything changes (weighted average or latest landed cost), writes it, and can undo it.

Costdock: Landed & Avg Cost, by Sweekly Apps LLC

Moving off Stocky? Read landed cost per unit after Stocky.