E-commerce accounting

    Should tariffs be included in COGS? Landed cost for online sellers

    Tariffs changed fast in 2025 and 2026, and many sellers are still expensing duties the day they pay them. Here is where tariffs, freight and brokerage belong, how landed cost turns into COGS, and the small-business tax rules that can simplify it.

    Free initial consultation · No obligation

    • Last reviewed October 18, 2026
    • Sources linked below

    Should tariffs be included in COGS?

    Yes. Tariffs and customs duties are part of your inventory cost, along with inbound freight and customs brokerage, and they become cost of goods sold when the goods sell. Duty on unsold units stays in inventory. Your Virtual CPA, a licensed CPA firm, can build per-shipment landed cost into your books and tax return. Request a free consultation.

    The short rule: tariffs are inventory cost

    The tax rule is old and simple. Treas. Reg. § 1.471-3(b) says the cost of purchased merchandise is the invoice price, less trade discounts, plus “transportation or other necessary charges incurred in acquiring possession of the goods.” Customs duties and tariffs are necessary charges. So are inbound freight and customs brokerage.

    GAAP books follow the same idea. Costs to get inventory to its location and ready for sale are part of inventory.

    The practical effect: a tariff is not an expense on the day you pay CBP. It becomes part of each unit’s cost. You deduct it through cost of goods sold (COGS) when the unit sells.

    As of October 2026, tariff rates and programs keep changing. The Supreme Court held on February 20, 2026 that IEEPA does not authorize tariffs (Learning Resources, Inc. v. Trump, No. 24-1287). That ruling covered IEEPA tariffs only. Other duties still apply. The accounting rule above does not change with the rate. If you get an IEEPA refund, see is a tariff refund taxable.

    How to calculate landed cost per unit

    Landed cost is everything you paid to get one unit into your warehouse or to the Amazon or 3PL dock. The formula:

    Landed cost per unit = (supplier cost + inbound freight + duties and tariffs + brokerage and customs fees + inbound insurance + freight to your warehouse or fulfillment center) ÷ units received

    Illustrative example. A seller imports 1,000 units. Supplier invoice $8,000. Ocean freight $1,200. Duty $2,000. Brokerage and customs fees $300. Truck to the 3PL $500. Total $12,000, so landed cost is $12.00 per unit.

    • The seller sells 700 units this year. COGS is 700 × $12.00 = $8,400.
    • 300 units are unsold at year end. Ending inventory is 300 × $12.00 = $3,600.
    • Of the $2,000 duty, $1,400 reached COGS this year. $600 is still in inventory.

    If the bookkeeper had expensed the $2,000 duty when it was paid, this year’s profit would be understated by $600 and next year’s overstated by $600. Margin by SKU would also be wrong.

    Calculate landed cost per shipment (per lot), not with a single annual average, when tariff rates change during the year. Two lots of the same SKU can carry very different duty.

    Small-business rules: §471(c) and the §263A exemption

    Two Internal Revenue Code provisions matter for small sellers. Both use the Section 448(c) gross receipts test. For tax years beginning in 2026, an entity meets the test if its average annual gross receipts for the prior three tax years are $32,000,000 or less (Rev. Proc. 2025-32, section .30). Certain tax shelters cannot use either rule.

    • No UNICAP. Section 263A(i) exempts qualifying taxpayers from the uniform capitalization rules. That means you do not have to add a share of warehousing, purchasing and handling overhead to inventory for tax. You still include direct acquisition costs like duty and freight-in.
    • Simpler inventory methods. Section 471(c) lets a qualifying business treat inventory as non-incidental materials and supplies, or follow the method in its books and records (or its applicable financial statement, if it has one). Neither option lets you deduct inventory the day you buy it. See inventory accounting for small businesses.

    Sellers above the threshold must apply Section 263A. For resellers, that generally means capitalizing more indirect costs, such as storage and purchasing, into inventory.

    Who is the importer of record?

    The importer of record (IOR) is the party on the customs entry that is responsible for paying duty to U.S. Customs and Border Protection. Many small brands are the IOR without realizing it, because their freight forwarder or broker files entries in their name.

    • You are the IOR. You pay duty directly or through your broker. Record it as a separate line on each shipment’s landed cost.
    • Supplier ships DDP. The supplier or its agent is usually the IOR. Your landed cost is the total DDP price plus any freight you pay after delivery.
    • Small parcels. As of October 2026, the $800 de minimis exemption is suspended. CBP made the suspension indefinite in interim final rules effective June 24, 2026 (FR Doc. 2026-12670). Low-value shipments now go through formal or informal entry and can carry duty.

    Knowing who the IOR is matters for your books and for refunds. CBP pays IEEPA refunds to the importer of record, according to its IEEPA refund guidance.

    How it works with us

    Best for: Shopify, Amazon and multichannel brands that import inventory and are not sure their COGS includes duty, freight and brokerage.

    1. Free initial consultation. Tell us how you source, ship and sell.
    2. Fees quoted upfront, in writing. Transparent, fair fees in an engagement letter before work starts.
    3. Landed cost build. We tie supplier invoices, freight bills and customs entries to each shipment and SKU.
    4. Books and tax. We post inventory and COGS in your books and carry the right method to your tax return.
    5. Ongoing. Monthly e-commerce accounting keeps margins current as tariffs change.

    Which import and selling costs go into inventory (and COGS)?

    CostInventory, then COGS when sold?Or expense when incurred?Notes
    Supplier invoice (less trade discounts)YesNoTreas. Reg. § 1.471-3(b).
    Customs duties and tariffsYesNoNecessary charge to acquire the goods. Track per shipment.
    Inbound freight (factory to your warehouse, 3PL or FBA)YesNoFreight-in is part of cost.
    Customs brokerage and entry feesYesNoCharges to get possession of the goods.
    Inbound cargo insuranceYesNoAcquisition cost.
    Shipping orders to customersNoYesSelling or fulfillment expense.
    Marketplace referral and payment feesNoYesSelling expense.
    Warehouse storage, purchasing staff, handlingOnly if Section 263A appliesYes, for most small sellersSmall businesses meeting the § 448(c) test are exempt from UNICAP under § 263A(i).

    Expert CPAs. Personal attention.

    Not sure your COGS includes duties and freight? Bring a recent shipment’s supplier invoice, freight bill and customs entry to a free initial consultation and we’ll walk through your landed cost.

    Frequently asked questions

    Yes. Customs duties and tariffs you pay to bring goods in are part of what the goods cost you. Under Treas. Reg. § 1.471-3(b), inventory cost includes transportation and other necessary charges to acquire the goods. The duty sits in inventory until the item sells, then it moves to cost of goods sold.

    Yes, but usually not in the year you pay them. If you keep inventory, the tariff is recovered through cost of goods sold as you sell the goods. Tariffs on units still in the warehouse at year end stay in ending inventory and reduce next year’s taxable income instead.

    No. Landed cost is what one unit cost you to get into your warehouse: supplier price plus inbound freight, duties, brokerage and similar charges. COGS is the landed cost of the units you actually sold during the period. Unsold units stay on the balance sheet as inventory.

    For tax inventory costing, no. Freight to get goods to you (freight-in) is an inventory cost. Shipping orders out to customers is a selling or fulfillment expense. Many sellers show it in a separate line above gross profit for margin tracking, which is a management reporting choice.

    Probably not. Section 263A(i) exempts taxpayers that meet the Section 448(c) gross receipts test, other than certain tax shelters. For tax years beginning in 2026, the test is average annual gross receipts of $32 million or less for the prior three years (Rev. Proc. 2025-32).

    Under DDP (delivered duty paid) terms, the seller or its agent usually acts as importer of record and pays the duty, then builds it into your price. Your landed cost is still what you paid in total. You simply do not see a separate duty line. That matters for refunds, because CBP refunds go to the importer of record.

    Pick a reasonable, consistent basis. Duty is usually assigned by the line it was assessed on in the customs entry. Freight is often spread by weight, volume or value. Keep the worksheet for each shipment so you can support the numbers later.