← All insights

Landed cost: how do you calculate it and get it into stock value?

A worked landed-cost calculation for one import container, which charges belong in it, how to split them across items, and how the ERP keeps stock value and margin right when invoices arrive late.

  1. 01Purchase
  2. 02Ship
  3. 03Clear
  4. 04Receive
  5. 05Cost
Short answer

Landed cost is the full cost of getting purchased goods into your warehouse: the supplier price plus freight, insurance, duty, customs fees, brokerage and delivery to your door. Calculate it per shipment, then split each charge across items by the basis that drives it: duty by the actual duty on each line, freight by volume or weight, value-based fees by value. The ERP must add those charges to stock value at receipt, and correct it when late invoices arrive.

A distributor imports a container of hose reels and brass fittings, adds the freight and duty bills to the receipt and spreads them by value, because that is the default. Hose reels show a healthy margin, so sales discounts them to win a contract. Months later, finance notices that the reels take up four-fifths of every container. Their real cost was four dollars a unit higher than the ERP said, and the contract barely covers it. This guide works through one shipment from supplier invoice to stock value, shows which allocation basis suits which charge, and sets out the records the ERP needs from the forwarder, broker and accounts payable.

What is landed cost, and which charges belong in it?

Landed cost is what an item really cost by the time it is on your shelf and ready to sell. It starts with the supplier price and adds every charge you paid to get the goods there: international freight, cargo insurance, customs duty, customs fees, the broker who cleared them and the haulier who delivered them from the port. Without those charges, stock value and gross margin are both wrong, and they are wrong by different amounts for different items.

The accounting rule behind it is the same idea. Under IAS 2 Inventories, the cost of purchased stock includes the purchase price, import duties and other taxes that cannot be recovered, and transport, handling and other costs directly attributable to buying the goods, less trade discounts and rebates. Taxes you can reclaim, such as import VAT for a VAT-registered UK business, stay out. Your accountant should confirm the policy for your reporting framework. The table shows how the common charges usually fall.

Common import charges and whether they belong in landed cost
ChargeUsually in landed cost?Why
Supplier price, less trade discounts and rebatesYesThe base cost of the goods.
International freight and fuel surchargesYesA direct cost of bringing the goods to your location.
Cargo insurance for the voyageYesDirectly attributable to the purchase.
Customs duty, including additional tariffsYesA non-recoverable import tax.
Customs fees, such as the US merchandise processing and harbor maintenance feesYesCharged because the goods were imported.
Customs broker and forwarder handling feesYesPaid to clear and move this shipment.
Port charges, demurrage before release, and delivery from port to warehouseYesPart of getting the goods to the warehouse. Demurrage caused by your own delay is a policy decision, and many businesses expense it.
Import VAT or GST you can reclaimNoRecovered through the tax return, so it is not a cost of the goods.
Your own receiving labour and warehouse rentPolicy decisionSome businesses add a standard handling rate per unit; many leave it in overheads. Choose once and apply it consistently.
Storage after receipt, and outbound shipping to customersNoCosts of holding or selling stock, not of buying it.

How do you calculate landed cost? A worked example

The formula is simple: landed cost per unit equals the supplier price per unit plus that unit’s share of each import charge. The hard part is the share. The illustrative shipment below is one 40-foot container shipped by sea to a US port for a plumbing distributor. All prices, fees and duty rates are invented for the example except the two US customs fee rates, which are linked to their sources. Check your own duty rates in the Harmonized Tariff Schedule or, for the UK, the UK Trade Tariff.

Goods on the shipment (illustrative)
ItemUnitsSupplier priceGoods valueVolumeWeightDuty rate (illustrative)
HR-50 hose reel400$30.00$12,00020 m³ (80%)4,000 kg3.5%
BF-12 brass fitting2,000$9.00$18,0005 m³ (20%)2,000 kg4.0%
Total$30,00025 m³6,000 kg
Import charges on the shipment
ChargeAmountHow it was worked out
Ocean freight$3,600Forwarder invoice (illustrative).
Cargo insurance$150Insurer invoice (illustrative).
Customs duty$1,140HR-50: $12,000 × 3.5% = $420. BF-12: $18,000 × 4% = $720.
Merchandise processing fee (MPF)$103.920.3464% of $30,000. From 1 October 2026 the fee has a minimum of $34.58 and a maximum of $670.86 per formal entry, under CBP’s fiscal year 2027 fee notice.
Harbor maintenance fee (HMF)$37.500.125% of $30,000, charged on ocean cargo at qualifying ports under 19 CFR 24.24.
Customs broker fee$175Broker invoice (illustrative).
Port-to-warehouse delivery$650Haulier invoice (illustrative).
Total charges$5,856.4219.5% on top of the goods value.

Now split the charges two ways. The first spreads every charge by goods value, which is the default in many ERPs. The second uses the basis that actually caused each charge: duty as calculated per line, value-based fees and insurance by value, and freight and delivery by volume, because a container is usually full by space before it is full by weight.

Landed cost per unit under two allocation methods
HR-50 hose reelBF-12 brass fitting
Charges allocated, everything by value (40% / 60%)$2,342.57$3,513.85
Landed cost per unit, everything by value$35.86$10.76
Duty, actual per line$420.00$720.00
MPF, HMF, insurance and broker fee, by value$186.57$279.85
Freight and delivery ($4,250), by volume (80% / 20%)$3,400.00$850.00
Charges allocated, by cost driver$4,006.57$1,849.85
Landed cost per unit, by cost driver$40.02$9.92
Gross margin at a $45.00 / $14.00 selling price, by value20.3%23.1%
Gross margin at a $45.00 / $14.00 selling price, by cost driver11.1%29.1%

Both methods add up to the same $5,856.42, so the stock value of the whole shipment is the same. What changes is which item carries it. Spread by value, the bulky hose reels look $4.16 a unit cheaper than they are, and the dense fittings look more expensive. Sales then discounts the wrong product. The total is right and the decisions are wrong, which is why a landed-cost check should compare item margins, not just the shipment total.

Should you allocate landed costs by value, weight, volume or quantity?

Use the basis that caused the charge. If the charge would double when this item’s weight doubled, allocate by weight; if it would double when the value doubled, allocate by value. Most ERPs let you choose a basis per charge on the landed-cost document. If yours allows only one basis per document, split the charges into two documents rather than forcing everything onto value.

Which allocation basis suits which charge
ChargeBest basisItem data the ERP needsWhen to choose differently
Customs dutyActual duty per line from the customs entryTariff code and country of origin per itemAllocate by value only if the broker gives one total and all lines share a rate.
Ad valorem customs fees (MPF, HMF)ValuePurchase priceWhen MPF hits its minimum or maximum, value is still a fair split.
Ocean or road freightVolume for light, bulky goods; weight for dense goodsCarton dimensions and weight in the item masterAir freight is billed on the greater of actual and volumetric weight, so use chargeable weight.
Cargo insuranceValuePurchase price—
Broker and forwarder feesValue, or equally per customs lineNumber of lines per entryPer line suits fees charged per tariff line.
Port-to-warehouse deliverySame basis as the main freightAs for freight—
Inspection or testing of one itemDirectly to that itemWhich item triggered itNever spread an item-specific charge across the shipment.

Volume and weight allocation only work when the item master holds carton dimensions and weights. Many distributors discover during a landed-cost project that half their items have no dimensions or have dimensions for the single unit rather than the shipping carton. Fix that data first, for the items that travel in containers.

How does the duty base differ between the US and the UK?

Duty is a percentage of a customs value, and the two markets define that value differently. In the US, duty is normally charged on the transaction value, the price paid for goods sold for export to the US. International freight and insurance are excluded from it when they are included in the price and supported by evidence such as a rated bill of lading, under 19 CFR 152.103. In the UK, HMRC’s guidance on delivery costs to include in the customs value adds transport, insurance, loading and handling up to the place where the goods enter the UK.

What the duty is calculated on, US and UK (reviewed 15 October 2026)
United StatesUnited Kingdom
Duty baseTransaction value of the goods; documented international freight and insurance excludedGoods price plus transport, insurance and handling up to the place of introduction into the UK
Same shipment, $30,000 goods and $3,750 freight and insuranceDuty calculated on $30,000Duty calculated on about $33,750, converted to sterling
Customs fees on top of dutyMPF on formal entries; HMF on ocean cargo at qualifying portsNo equivalent percentage fees; broker and port charges still apply
Import sales taxNone at the borderImport VAT, reclaimable by VAT-registered importers, for example through postponed VAT accounting; excluded from landed cost when recoverable
Where to find duty ratesHarmonized Tariff Schedule; additional tariffs change oftenUK Trade Tariff

For the ERP, the practical consequence is that duty cannot be estimated with one formula for both markets. A business importing into both should hold the duty basis on the import route or the supplier’s country, and estimate on that basis until the broker’s actual figures arrive. Duty rates and additional tariffs change, so estimates should read the rate from a maintained table, not from a number typed into a spreadsheet last year. This article explains costing, not customs advice: your broker owns the classification and the declaration.

What happens when the freight invoice arrives after the stock is sold?

Goods usually arrive before all the bills do. The broker’s duty invoice may take a week; a freight forwarder’s final invoice can take a month or more. Meanwhile the warehouse has received the goods and sales is shipping them. If the ERP waits for every invoice before costing the receipt, stock sits at supplier price only and every early sale shows an inflated margin.

The usual answer is to cost the receipt with estimated charges, then true up when the invoices arrive. Continuing the example: the receipt was costed with an estimated freight charge of $3,000. The forwarder’s final invoice, five weeks later, is $3,600. By then 300 of the 400 hose reels and 1,200 of the 2,000 fittings have been sold.

Truing up a $600 freight difference after part of the stock is sold (illustrative)
HR-50 hose reelBF-12 brass fitting
Share of the $600 difference, by volume$480$120
Share of units already sold300 of 400 (75%)1,200 of 2,000 (60%)
To cost of goods sold$360$72
To remaining stock value$120 (100 units, +$1.20 each)$48 (800 units, +$0.06 each)

ERPs differ in how they post this. Some split the difference between sold and unsold stock as above. Some add it all to the remaining units, which overstates their cost. Others post it to a purchase price variance account. Decide which treatment you want with your accountant, then test that the ERP does it, because the default is not always the one you expect. Set three rules at the same time:

  • Estimates. Estimate each charge from a rate table per route and supplier, and record it as an accrual so the liability is visible before the invoice arrives.
  • Tolerance. Agree a variance, for example 5% or a fixed amount per shipment, below which the difference is posted without review and above which someone checks the invoice before it is applied.
  • Cut-off. Decide what happens to invoices that arrive after a month-end close, so a late freight bill does not reopen a closed period.

Which records move between the forwarder, broker, accounts payable and the ERP?

Landed cost touches more parties than any other purchasing process. The supplier, the forwarder, the customs broker, the haulier and accounts payable each hold one piece, and the ERP needs all of them tied to the same shipment. The map below follows the example container. Each step names who decides and what passes on.

Container MSKU-4471 to stock value
  1. 01
    Order the goodsBuyer in the ERP

    Purchase order PO-8812, two lines, Incoterm FOB, supplier currency and expected ship date

  2. 02
    Book the shipmentForwarder, recorded in the ERP

    Shipment reference, container number, bill of lading and the purchase order lines on board

  3. 03
    Clear customsCustoms broker

    Entry number, tariff code and duty per line, MPF and HMF (in the US, the CBP Form 7501 entry summary)

  4. 04
    Receive the goodsWarehouse in the ERP or WMS

    Receipt against PO-8812 with quantities by line and the shipment reference

  5. 05
    Cost the receiptFinance in the ERP

    Landed-cost document linking the receipt to estimated charges, each with its allocation basis

  6. 06
    Match the invoicesAccounts payable

    Supplier, forwarder, broker and haulier invoices matched to the shipment; differences trued up to stock or cost of goods sold

One shipment reference links every invoice to the receipt it costs. Without it, charges are matched to receipts by hand.

The shipment reference is the integration point. If the forwarder and broker put it on their invoices, or send their data electronically against it, accounts payable can match each bill to the right receipt without a spreadsheet. If they do not, landed cost becomes a monthly reconciliation exercise and the estimates are never corrected. The invoice matching itself is part of the purchase-to-pay control; the stock side of the receipt is covered in the inventory replenishment guide.

How do you set up landed cost in the ERP and prove it works?

Five moves from supplier-price stock values to trusted landed cost
  1. 01
    Agree the costing policy

    Which charges are capitalised into stock, the allocation basis per charge, and how late differences are posted. Sign it off with finance.

  2. 02
    Fix the item data

    Carton dimensions, weights, tariff codes and country of origin for every imported item, starting with the highest-volume lines.

  3. 03
    Build the estimate tables

    Freight, insurance and fee rates per route and supplier, with duty read from maintained rates, so receipts are costed on arrival.

  4. 04
    Link invoices to shipments

    Ask the forwarder and broker to quote the shipment reference, or take their data electronically, and match invoices to it in accounts payable.

  5. 05
    Reconcile and review

    Each month, compare estimated with actual charges by route and adjust the rate tables; review item margins after each true-up.

Before relying on the result, run these checks with copies of real shipments:

Landed-cost tests to run before go-live
#TestPass when
1Receive a two-item shipment with freight allocated by volume and duty by line.Each item’s unit cost matches a hand calculation to the cent.
2Post a freight invoice $600 above the estimate after part of the stock is sold.The difference goes to cost of goods sold and stock in the agreed proportions.
3Post an invoice for a charge that was never estimated, such as an inspection.It is allocated to the item that caused it, not across the shipment.
4Receive one shipment against two purchase orders.Charges split across both orders’ lines on the shipment.
5Post a late invoice after the period has closed.It lands in the open period under the agreed cut-off rule.
6Compare stock value after receipt with the sum of supplier and charge invoices.They agree, apart from charges still open as accruals.

Landed cost is also a test of the ERP itself; the distribution ERP software guide lists it among the checks to run in a demonstration. The accounting and reporting service describes how Harmatiq connects purchasing, customs and finance records so that stock value and margins reflect what goods really cost.

Find the handoff that needs fixing.

Bring one real order, the systems it crosses and the exceptions your team handles manually. We can turn that journey into an implementation scope.

Discuss your workflow