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.

Download the Excel template

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:

  1. Purchase total: quantity × purchase cost per unit.
    =C17*D17
  2. 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)
  3. 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:
    =$B$11*C17*I17/SUMPRODUCT($C$17:$C$41, $I$17:$I$41)
    By quantity, use C17/SUM($C$17:$C$41); by value, the purchase total over the sum of purchase totals; by weight, SUMPRODUCT with the weight column. The template picks the right one from the basis you choose for each cost.
  4. Landed total: purchase total + duty + every share.
    =K17+L17+SUM(M17:P17)
  5. Landed cost per unit: the landed total ÷ quantity.
    =Q17/C17
  6. 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.

SKUPurchaseDutyShipment costs Landed / unitPriceMarginPrice for 35%
T-shirt$2,520.00$252.00$520.38$5.49$24.0043.4%$19.98
Yoga mat$1,560.00$78.00$1,070.42$13.54$39.0038.7%$36.09
Mug$840.00$67.20$476.70$3.46$18.0040.8%$15.92
Shipment$4,920.00$397.20$2,067.50Landed 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

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.