Fintrix Consulting LLC

E-commerce

Landed cost: what your COGS is missing

November 19, 2026 · 9 min read

← All articles
Aerial view of rows of colorful shipping containers in a port yard with a container handler
Photo via Pexels

Quick answer

Landed cost is everything it takes to get a product into your warehouse and ready to sell: the supplier's price plus inbound freight, duties and tariffs, customs broker fees, insurance in transit and similar charges. Under GAAP those costs belong in inventory and reach cost of goods sold (COGS) only when the item sells. If you book them as overhead the month you pay them, your per-unit cost and gross margin are both wrong.

Your supplier invoice says the mugs cost $6.00 each. That's the number in your product list, your pricing spreadsheet and probably your Shopify cost field. But the mugs didn't teleport into your warehouse. Somebody paid for the ocean freight, the truck from the port, the customs broker and the duty on the entry. Add those up and each mug may have cost you closer to $8.40.

That $2.40 gap is what this post is about. It's where a lot of e-commerce margins quietly disappear, and it's why a business that looks profitable by product can still be losing money overall.

$6.00

What the supplier invoice says each unit cost (example below)

$8.40

What it actually cost to land in your warehouse

12 points

Gross margin you'd overstate on that product

What goes into landed cost?

The GAAP rule (ASC 330-10-30-1) is that inventory cost is the sum of what you spend, directly or indirectly, to bring goods to their existing condition and location. The IRS says much the same in Publication 538: the invoice price, minus discounts, plus transportation and other charges to acquire the goods.

In practice, for an online seller buying finished goods, that means:

CostPart of landed cost?Notes
Supplier invoice, less trade discountsYesThe starting point
Inbound freight (ocean, air, truck to your warehouse)YesOften called freight-in
Duties and tariffs on the importYesIncluding new or higher tariffs
Customs broker and entry feesYesPart of getting the goods in
Cargo insurance in transitYes
Inspection or testing before you accept the goodsUsually yesIf it's needed to get the goods ready to sell
Freight to move stock to an Amazon or 3PL warehouseUsually yesGetting goods to where they're sold from
Storage once the goods are sitting in your warehouseNoA period cost
Shipping to customersNoA cost of selling, recorded when you sell
Marketplace fees, ads, payment processingNoSelling costs

PwC's guide adds two useful points. A surge in shipping prices is still a normal cost and goes into inventory. Only abnormal freight and handling (duplicate moves, like relocating stock after a warehouse flood) is expensed straight away. And tariffs incurred to acquire specific goods are part of their cost, even when they're new or bigger than last year's.

Why does it matter if I just expense freight and duties?

Two reasons, and the second is the expensive one.

Your monthly profit swings for no reason. Pay $9,000 of freight and duties in March for stock you'll sell through June, and March looks terrible while April to June look great. Neither is true.

Your per-unit cost is too low, so your prices may be too. If your pricing, your ads budget and your "which products make money" analysis all run off the $6.00 invoice price, every one of those decisions is built on a cost that's too low (by $2.40 a unit on the bottles in the example below). That's how a store grows revenue and shrinks its bank balance at the same time.

Lenders and buyers care too. A gross margin that jumps around with shipment timing is one of the first things a quality-of-earnings review picks apart.

How do you allocate shared costs across products?

Some landed costs belong to one product line. Duties usually do, because each product has its own tariff classification and rate on the customs entry. Assign those directly.

Others are shared by everything in the container: the freight bill, the broker fee, the insurance. Those need an allocation method. The common ones:

  • By value. Each product takes a share in proportion to its supplier cost. Simple, and sensible for insurance and value-based fees.
  • By weight or volume. Closest to how freight is actually priced. Best when products differ a lot in size.
  • By quantity. Each unit takes the same amount. Only fair when the units are similar.

There's no single right answer. Pick the one that best matches what drives the cost, write it down, and use it every time. Switching methods shipment to shipment makes your margins impossible to compare.

A worked example: one container, two products

Say you run a hypothetical online store selling drinkware and travel gear. One shipment arrives with:

  • Insulated bottles: 2,000 units at $6.00 = $12,000; 1,000 kg in total
  • Travel backpacks: 500 units at $24.00 = $12,000; 500 kg in total

The costs to land it:

  • Duties, per the customs entry: $2,400 on the bottles and $3,000 on the backpacks ($5,400), assigned directly
  • Ocean freight and trucking: $3,000
  • Customs broker and entry fees: $450
  • Cargo insurance: $150

That's $3,600 of shared costs. You allocate them by weight, since freight is the biggest piece: bottles carry 1,000 of the 1,500 kg (two thirds, $2,400), backpacks one third ($1,200).

BottlesBackpacksTotal
Supplier cost$12,000$12,000$24,000
Duties (direct)$2,400$3,000$5,400
Freight, broker and insurance (by weight)$2,400$1,200$3,600
Landed cost$16,800$16,200$33,000
Units2,000500
Cost per unit on the invoice$6.00$24.00
Landed cost per unit$8.40$32.40

From supplier invoice to landed cost

Whole shipment, both products

  • Adds cost
  • Decrease
  • Total
$0$10k$20k$30k$40kSupplier invoices: $24,000$24kSupplierinvoicesDuties: +$5,400+$5.4kDutiesOcean freight, trucking: +$3,000+$3kOceanfreight,truckingBroker fees: +$450+$450Broker feesInsurance: +$150+$150InsuranceLanded cost: $33,000$33kLanded cost

Hypothetical example.

Show the numbers
Supplier invoices$24,000
Duties+$5,400
Ocean freight, trucking+$3,000
Broker fees+$450
Insurance+$150
Landed cost$33,000

Now the part that hurts. The bottles sell for $20 and the backpacks for $60. At invoice cost, the bottles look like a 70% margin product. At landed cost they're 58%. The backpacks drop from 60% to 46%.

Gross margin per unit: invoice cost vs landed cost

Bottles sell for $20, backpacks for $60

  • Using invoice cost
  • Using landed cost
0%20%40%60%80%Bottles · Using invoice cost: 70%Bottles · Using landed cost: 58%Backpacks · Using invoice cost: 60%Backpacks · Using landed cost: 46%BottlesBackpacks

Hypothetical example. Before marketplace fees, ads and shipping to customers.

Show the numbers
 Using invoice costUsing landed cost
Bottles70%58%
Backpacks60%46%

Notice the allocation choice matters. By value instead of weight, each product would take $1,800 of the shared costs: bottles $8.10 a unit, backpacks $33.60. Same $33,000 in total, different story by product. That's why you pick a method on purpose.

If you then sell 1,200 bottles and 300 backpacks in the month, COGS is 1,200 × $8.40 + 300 × $32.40 = $19,800, not the $14,400 the invoice prices would give you. The other $13,200 stays on the balance sheet as inventory (800 bottles at $8.40 and 200 backpacks at $32.40) until it sells. Our COGS calculator walks through the same math for a whole period.

How do you record landed cost in the books?

The cleanest setup most small sellers can run without special software:

A simple landed cost routine

When the bills arrive

  • Code freight, duty, broker and insurance bills for a shipment to a landed cost clearing account, not to an expense account
  • Tag each bill with the shipment or PO number

When the shipment is received

  • Total the clearing account for that shipment
  • Assign duties to the product lines on the customs entry
  • Allocate shared costs with your chosen method (weight, volume or value)
  • Move the total from clearing into inventory and update each product's unit cost

At month end

  • Check the clearing account only holds shipments still in transit
  • Record COGS at landed unit cost for what sold
  • Make sure the unit costs in Shopify or your inventory app match the books

If bills arrive after you've already started selling the shipment (a broker invoice three weeks late is normal), allocate them when they come in. The share that relates to units already sold goes to COGS; the rest goes to inventory.

What about taxes?

For tax, inventory cost also includes freight-in and the other charges to acquire the goods. Bigger businesses must also capitalize extra indirect costs under the uniform capitalization rules of section 263A (think a share of purchasing and warehouse costs). Small businesses are exempt from 263A if their average annual gross receipts for the three prior years are $32 million or less (the 2026 limit).

Small businesses also get simpler inventory options under section 471(c), such as following the method in their own books. Our post on cash or accrual for taxes covers the same gross receipts test. Which method fits is a question for your CPA; for most sellers, good landed cost numbers in the books make any of them easier.

Common mistakes

Freight in operating expenses. The single most common one. "Shipping" goes into one expense account, inbound and outbound together, and nobody can tell them apart later. Use separate accounts for freight-in and shipping to customers from day one.

Unit costs that never get updated. Your inventory app still says $6.00 from two years ago, so every margin report it produces is wrong. Update unit costs with each shipment.

Allocating by quantity across very different products. A bottle and a backpack shouldn't carry the same freight per unit.

Forgetting tariff changes. If the duty rate on a product changed, last season's landed cost is out of date. Re-check pricing when it does.

Ignoring the lower-of-cost rule. Higher landed cost can push some products' cost above what you can sell them for, net of selling costs. Then a write-down is due. See inventory reserves and write-downs.

When should you get help?

If you buy domestically from a few suppliers who ship free, landed cost is barely a project. Track freight-in separately and move on.

It's worth getting help when you import, when you hold stock at more than one location (your warehouse, a 3PL, Amazon), when you sell on several channels with different fee structures, or when you're about to raise prices or cut a product line based on margins. Updating inventory and COGS every month, including landed cost, is part of the e-commerce accounting we do at Fintrix Consulting. To see what a product really earns after fees, try the marketplace seller profit calculator.

Frequently asked questions

Is shipping to customers part of COGS?

It isn't part of inventory cost, because it happens after the sale. Many sellers show it in cost of sales and some in operating expenses. Either is fine if you're consistent and your margins say which you used.

Do tariffs go into inventory or straight to expense?

Into inventory. Tariffs and duties paid to import specific goods are part of their cost, and reach COGS as those goods sell.

Which allocation method should I use?

Whatever best matches what drives the cost. Weight or volume suits freight. Value suits insurance. Use one method consistently and write it down.

Do I need special software for landed cost?

Not to start. A clearing account per shipment plus a spreadsheet for the allocation works for most small sellers. Inventory apps help once you have many SKUs and shipments.

What if a freight bill arrives after the goods are sold?

Allocate it when it arrives. The part for units already sold goes to COGS, the rest to inventory still on hand.

The bottom line

The price on the supplier invoice isn't what your products cost. Add freight-in, duties, broker fees and insurance, allocate shared costs with a method you stick to, and carry it all in inventory until the goods sell. Then update your unit costs everywhere you price from. It's a small monthly habit, and it's the difference between margins you believe and margins that are true.

This article is general information, not advice for your situation. Rules change and details matter, so talk to us or your CPA before acting on it.

Have a question about this article?

Ask us. A real person will reply by email within one business day. Your question isn’t published.

Protected by reCAPTCHA. Google’s Privacy Policy and Terms apply.

Ready for books you can trust?

Book a free 30-minute consultation. We'll review where your finances stand today and show you exactly how we'd help.