How to calculate landed cost in Excel
Landed cost per unit is the purchase cost plus duty plus the SKU’s share of every shipment cost, divided by the units. In a spreadsheet that takes six formulas per row. Here they are, with a free template that already has them.
One .xlsx file for up to 25 SKUs and four shipment costs. It opens in Excel, Google Sheets and Numbers. Yellow cells are inputs, grey cells are formulas. For the method itself, without a spreadsheet, see how to calculate landed cost of imported goods.
The layout
Put the shipment-wide inputs at the top and one SKU per row below them. In the template the selling assumptions are
in B5:B7 (sales fees %, other selling cost per unit, target margin %), the shipment costs in rows 11–14
(amount in column B, split basis in column C) and the SKUs from row 17: quantity in C, purchase cost per unit in D,
customs value per unit in E, duty rate % in F, weight and volume per unit in H and I, net selling price in J.
The formulas, row by row
For the SKU on row 17:
-
Purchase total: quantity × purchase cost per unit.
=C17*D17 -
Duty: quantity × customs value per unit × rate, rounded to the cent. If your broker gave you the
duty in dollars, use that amount instead.
=ROUND(C17*E17*F17/100, 2) -
Share of each shipment cost: the cost × this SKU’s part of the basis. For ocean freight split
by volume, that is the SKU’s total volume over the shipment’s total volume:
By quantity, use=$B$11*C17*I17/SUMPRODUCT($C$17:$C$41, $I$17:$I$41)C17/SUM($C$17:$C$41); by value, the purchase total over the sum of purchase totals; by weight,SUMPRODUCTwith the weight column. The template picks the right one from the basis you choose for each cost. -
Landed total: purchase total + duty + every share.
=K17+L17+SUM(M17:P17) -
Landed cost per unit: the landed total ÷ quantity.
=Q17/C17 -
Contribution per unit and the price for a target margin: what is left of the price after sales
fees, landed cost and other selling costs, and the price that leaves your target margin, rounded up to the cent.
=J17*(1-$B$5/100)-R17-$B$6=ROUNDUP((R17+$B$6)/(1-$B$5/100-$B$7/100), 2)
A worked example
The template opens with three SKUs: 600 T-shirts at $4.20, 200 yoga mats at $7.80 and 400 mugs at $2.10. Ocean freight of $1,850 is split by volume, a $175 broker fee by quantity and $42.50 of cargo insurance by value. Sales fees are 15% of price, other selling costs $4.50 per unit, and the target margin 35%. The duty rates are hypothetical (10%, 5% and 8% of customs value), not the current rates for these products.
| SKU | Purchase | Duty | Shipment costs | Landed / unit | Price | Margin | Price for 35% |
|---|---|---|---|---|---|---|---|
| T-shirt | $2,520.00 | $252.00 | $520.38 | $5.49 | $24.00 | 43.4% | $19.98 |
| Yoga mat | $1,560.00 | $78.00 | $1,070.42 | $13.54 | $39.00 | 38.7% | $36.09 |
| Mug | $840.00 | $67.20 | $476.70 | $3.46 | $18.00 | 40.8% | $15.92 |
| Shipment | $4,920.00 | $397.20 | $2,067.50 | Landed total $7,384.70 | |||
The yoga mat is the SKU to watch: it takes up most of the container, so more than half of the freight lands on it, and its landed cost per unit is 1.7 times its purchase cost. It still clears the 35% target at $39, but with the least room of the three.
Mistakes that spreadsheets hide
- Splitting everything by quantity. It is the easiest formula and usually the wrong one for freight. See how to split freight across SKUs.
- Copying purchase cost into customs value. They are often the same, but not always (for example, terms of sale or assists). Enter what your broker declares.
- Using only the base duty rate. The general rate in the HTS is the starting point. Additional duties under Chapter 99 depend on the country of origin and the entry date and are added on top. Look up the base rate on the HTS code pages and confirm the total with your broker.
- Blank inputs treated as zero. Enter 0 when a cost or confirmed duty is actually zero. The template flags missing purchase costs, invalid numbers and selling prices of zero or less. The shipment total stays blank until every SKU is complete; the message at the top points to the notes in column V.
- Missing weights or volumes. If a cost is split by weight or volume, fill it in for every SKU. The template pauses that cost’s allocation until all shares can be calculated, so one product’s missing weight does not increase the cost of the other products.
- Shares that do not add up. Check that each cost’s shares sum to the bill. The template’s total row does this; rounding each share to the cent can leave a cent or two over or under.
- Per-entry fees counted per SKU. The merchandise processing fee and harbor maintenance fee are charged once per entry. Add each once as a shipment cost and split it by value; the MPF and HMF guide has the current rates, and the template works out both from your SKUs’ customs values in cells E4 to G7.
When the spreadsheet is not enough
The landed cost calculator does the same calculation for up to 10 SKUs in the browser. It splits each cost in whole cents so the shares always add up, flags SKUs whose duty is not confirmed, and imports a CSV. The tariff impact calculator compares a tariff change, new freight or new prices side by side, which in a spreadsheet means copying the whole sheet.
Open the 3-SKU example in the calculator
The calculator’s example uses example duty lookups rather than the hypothetical rates above, so its figures differ. The rounding rules are on the methodology page.