E-commerce accounting

    How to account for inventory and cost of goods sold as a small business

    Many small sellers expense every inventory purchase and file on that basis. That usually overstates deductions in growth years and makes margins meaningless. Here is how inventory and COGS should flow, the simpler options small businesses have under Section 471(c), and how to handle counts and write-offs.

    Free initial consultation · No obligation

    • Last reviewed October 18, 2026
    • Sources linked below

    How do I account for inventory and cost of goods sold?

    Record inventory purchases as an asset at landed cost, then move cost to COGS as items sell: beginning inventory plus purchases minus ending inventory. Count inventory at least yearly. Businesses under the Section 448(c) test ($32 million for 2026) can use simpler Section 471(c) methods. Your Virtual CPA, a licensed CPA firm, can set this up. Request a free consultation.

    The basic flow: purchases to inventory to COGS

    Inventory is an asset until it sells. When you buy goods to resell, record them as inventory at cost. Cost means the invoice price less trade discounts, plus freight-in, duties and other charges to get the goods (Treas. Reg. § 1.471-3). For the import side, see tariffs, landed cost and COGS.

    When a unit sells, its cost moves from inventory to cost of goods sold. For a period, the formula is:

    COGS = beginning inventory + purchases − ending inventory

    You also need a cost flow method to decide which units sold. IRS Publication 538 describes specific identification, FIFO (first in, first out) and LIFO (last in, first out). Most small online sellers use FIFO or a weighted average in their inventory software. Pick one and use it consistently.

    Valuation is generally at cost, or at the lower of cost or market. Under lower of cost or market, you compare each item separately, not the whole inventory at once.

    Section 471(c): simpler options for small businesses

    Section 471(c) exempts a business from the formal inventory rules for any year it meets 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 do not exceed $32,000,000 (Rev. Proc. 2025-32, section .30). Certain tax shelters are excluded. Sole proprietors apply the test to each trade or business.

    A qualifying business can:

    • Treat inventory as non-incidental materials and supplies. Cost is generally deducted when items are sold to customers, not when bought.
    • Follow its books. Use the method in its applicable financial statement (such as audited statements), or if it has none, the method in its books and records kept under its own procedures.

    The same test also exempts you from the uniform capitalization (UNICAP) rules under Section 263A(i).

    Neither 471(c) option is a license to deduct a big December inventory buy. If your books track inventory on hand, a books-and-records method generally follows that tracking. Plan purchases with that in mind. See year-end tax planning.

    Physical counts, shrinkage and write-offs

    Count. Publication 538 says you must take a physical inventory at reasonable intervals, and the book amount must be adjusted to agree with the actual inventory. Count at year end at least. For FBA or 3PL stock, reconcile the platform’s inventory reports to your records.

    Shrinkage. Missing units found in a count reduce inventory and increase COGS. If you claim a loss through COGS, you cannot claim it again as a casualty or theft loss (Pub. 538).

    Damaged or slow goods. Under Treas. Reg. § 1.471-2(c), goods that cannot be sold at normal prices because of damage, imperfections, style changes, odd lots or similar causes are valued at bona fide selling price less direct cost of disposition, and never below scrap value. Bona fide selling price means an actual offering of the goods within 30 days after the inventory date. You carry the burden of proof.

    Destroyed or donated goods. When goods are destroyed, scrapped or donated, they leave inventory and their cost flows out. Keep disposal records, such as destruction reports from Amazon or your 3PL, photos and donation receipts.

    Platform reimbursements for lost or damaged FBA units are recoveries, not sales. Record them against the loss.

    Fixing inventory that was expensed

    If you have been expensing purchases, or used a method you do not qualify for, the fix is usually a change in accounting method on Form 3115. The Form 3115 instructions list automatic change procedures for many small-business inventory changes.

    A method change usually comes with a Section 481(a) adjustment that catches up the difference. Depending on whether it increases or decreases income, the IRS rules generally spread it over time or take it in one year.

    Catching up the books first helps. See catch-up bookkeeping.

    How it works with us

    Best for: Online and product sellers whose books expense inventory on purchase, who have never done a year-end count, or who are unsure which inventory method they use for tax.

    1. Free initial consultation. Tell us your channels, inventory software and how your books handle purchases today.
    2. Fees quoted upfront, in writing. Transparent, fair fees in an engagement letter before work starts.
    3. Method review. We confirm whether you meet the § 448(c) test and which method fits.
    4. Cleanup. We rebuild inventory and COGS, and prepare Form 3115 if a method change is needed.
    5. Ongoing. Monthly e-commerce accounting with count reconciliations and SKU margins.

    Inventory methods available to small businesses: who they fit and the tradeoffs

    MethodWho it fitsTradeoff
    Full inventory accounting (§ 471) with FIFO, specific ID or average costAny seller. Required above the § 448(c) threshold. Best when you need lender-ready or audited financials.Most work: per-unit cost tracking and counts. Gives the most accurate margins.
    § 471(c) applicable financial statement methodSellers under the threshold that have audited or similar financial statements.Tax follows the statements, so the statements must handle inventory properly.
    § 471(c) books-and-records methodSellers under the threshold without audited statements, with consistent internal records.Follows how your books actually track inventory. Weak records make it hard to support.
    § 471(c) non-incidental materials and suppliesSmall sellers that want a simple tax method.Cost is generally deducted when items are sold, not when bought. Little timing benefit for most resellers.
    LIFOLarger sellers with rising costs and strong systems.Complex rules and elections. Rarely a fit for small online sellers.

    Expert CPAs. Personal attention.

    Not sure your inventory and COGS are right for tax? Bring last year’s return and your inventory report to a free initial consultation and we’ll review your method.

    Frequently asked questions

    COGS = beginning inventory + purchases (including freight-in, duties and other acquisition costs) − ending inventory. Ending inventory comes from a count of what is on hand, valued at cost. Illustrative example: $20,000 beginning + $90,000 purchases − $30,000 ending = $80,000 COGS.

    Generally no. Inventory is deducted through COGS as it sells, even for small businesses using the Section 471(c) options. Treating inventory as non-incidental materials and supplies generally means deducting the cost when you sell the items, not when you pay for them.

    Section 471(c) lets a business that meets the Section 448(c) gross receipts test skip the formal inventory rules. It can treat inventory as non-incidental materials and supplies, or follow its applicable financial statement or its books and records. For tax years beginning in 2026, the test is $32 million or less in average annual gross receipts for the prior three years (Rev. Proc. 2025-32).

    Yes, when it is supported. Goods you destroy, scrap or donate leave inventory, and their cost flows through COGS. Damaged, out-of-style or odd-lot goods can be valued at a bona fide selling price less disposal costs, but not below scrap value, if you actually offered them for sale within 30 days after the inventory date (Treas. Reg. § 1.471-2(c)). Keep records of what was disposed and how.

    Not for inventory costing. Platform subscription, referral, payment processing and fulfillment fees are selling expenses. Some sellers show them above gross profit in management reports to see contribution margin. That is a reporting choice and does not change the tax inventory cost.

    Follow title. IRS Publication 538 says purchased goods belong in your inventory if title has passed to you, even if the goods are still in transit. Check your supplier terms (Incoterms) to see when title and risk pass.

    Count, then adjust. When a physical count shows fewer units than your records, reduce book inventory to the count and record the difference in COGS. Publication 538 says the book amount must be adjusted to agree with the actual inventory. Do not also claim the same loss as a separate casualty or theft deduction.

    Often yes. Changing how you account for inventory, including adopting a Section 471(c) method, is usually a change in accounting method filed on Form 3115. Many small-business inventory changes can use the IRS automatic consent procedures. A CPA should confirm which change applies.