e-commerce inventory and cogs accounting
When inventory purchases hit the books as expenses before the products sell, monthly profit can swing for reasons that have little to do with demand or pricing. E-commerce inventory and cogs accounting gives founders a clearer view by matching product costs with sales and including the costs required to get goods ready for sale.
Key Takeaways
- Expensing purchases when you buy them, not when you sell them, makes monthly profit look random and hides the real economics of each order.
- Matching inventory costs to the period products actually sell gives you a margin you can trust for pricing and buying decisions.
- COGS includes freight, packaging and storage costs to get goods ready for sale, not just the wholesale price.
- Seeing true margins per product lets you drop the losers and double down on the winners before cash runs low.
- Clean inventory accounting ties your stock on hand to real cash flow, which makes investor reporting far less painful.
The practical decision is whether your books show cash leaving the bank or the economics of each order. A reliable approach connects supplier invoices, inbound logistics, inventory records, and sales across channels, so pricing and growth decisions rest on more than a bank balance.
The Founder's Blindspot: Why Cash-Basis Inventory Tracking Kills Your True Margins
In accrual accounting, inventory is generally recorded as an asset when acquired, then recognized as cost of goods sold (COGS) when the related products sell. Expensing a full purchase immediately can make the purchase month look unprofitable and later months look unusually profitable, even when sales and unit economics remain steady. The timing should follow the inventory’s movement from purchase to sale, not simply the payment date.
The Cost of Guesswork: How Expensing Inventory on Purchase Distorts Profitability
Imagine a brand pays a supplier for a large production run in March, then sells those units over the following months. If the entire purchase is charged to March’s expenses, that month absorbs costs tied to future sales. Later, revenue from those units may appear with too little product cost attached. Gross profit, operating results, and month-to-month comparisons become harder to interpret.
This is more than a bookkeeping presentation issue. A founder reviewing distorted margins may misread a promotion, product launch, or channel’s performance. Track unsold goods as inventory, then recognize their cost as COGS when sold. That alignment makes the income statement more useful for pricing, purchasing, and evaluating SKU-level performance.
Cash vs. Accrual: Why Your P&L Looks Like a Rollercoaster
Cash accounting records activity when money moves; accrual accounting records revenue and related costs in the periods they belong. Inventory-heavy businesses can see a large cash outflow well before the related customer revenue arrives. A cash-based view can help monitor bank funds, but it does not, by itself, explain product profitability for a given month.
Use cash reporting to manage liquidity and an accrual-based profit and loss statement to assess operating performance. Keep the two views connected: purchase orders, supplier bills, receiving records, sales data, and inventory adjustments should support the balances in the ledger. This distinction helps explain why a healthy sales month can coincide with tight cash, or why a bulk purchase can depress reported profit temporarily if recorded incorrectly.
The 24% Margin Myth: The Hidden Cost of Excluding Freight and Tariffs from COGS
A supplier’s unit price is not always the full cost of acquiring a saleable product. Inbound freight, customs duties, tariffs, and preparation charges may add to the cost of goods, depending on what the charges cover and the accounting policy applied. If these costs are left out, reported gross margin can look stronger than the economics support. The “24%” in this heading is not a universal benchmark: each business needs to calculate its own fully loaded product cost.
| Tracking approach | What it records | What the P&L can show |
|---|---|---|
| Cash-basis purchase tracking | Cash paid to suppliers, often at purchase | Purchase-timing swings that can obscure product margins |
| Accrual inventory accounting | Inventory as an asset until related goods sell | COGS matched with sales, with a clearer gross margin view |
| Supplier-price-only costing | Invoice price without eligible inbound costs | Unit costs and margins that may be understated or overstated in usefulness |
Building Your Inventory Asset: What Belongs on the Balance Sheet
Inventory vs. COGS: Understanding the Fundamental Accounting Distinction
Inventory is the cost of products the business owns and has not yet sold. It appears as an asset on the balance sheet. When a unit sells, its recorded cost moves from inventory to COGS on the income statement. This balance-sheet-to-income-statement flow is the foundation of accrual inventory accounting: unsold goods remain an asset, while sold goods contribute to the period’s expenses and gross profit calculation.
Defining Your Inventory Asset: From Purchase Price to Warehouse Door
Think beyond the supplier’s invoice. The inventory asset may include eligible, directly attributable costs incurred to bring goods to their current location and condition, based on the company’s accounting policy and applicable accounting requirements. Collect the purchase invoice alongside freight bills, customs documentation, receiving records, and preparation invoices. A consistent audit trail helps explain how the balance was built and makes it easier to investigate differences between physical units and book values.
The 'Landed Cost' Equation: Calculating the True Cost to Get Inventory Ready for Sale
For a straightforward shipment, allocate qualifying inbound charges across the units received using a consistent, reasonable method. For mixed supplier orders, identify the products and quantities covered by each charge. Then select and document an allocation basis that reflects the cost driver, such as unit count, weight, or product value. A single rule may not suit every charge, so retain the calculation and supporting records.
What to Include: Purchase Price, Freight-In, Duties, Tariffs, and Prep Fees
Start with the product purchase price. Consider inbound freight, import duties or tariffs, and preparation work when those costs are directly associated with acquiring and getting the inventory ready for sale. Review charges in context: a prep invoice might include services tied to preparing units alongside services that do not belong in inventory cost. Maintain clear invoice detail and apply your policy consistently rather than capitalizing every vendor charge automatically.
What to Exclude: Outbound Shipping, Storage Fees, and Marketplace Costs
Separate costs incurred to bring inventory in from costs of selling, shipping orders to customers, or holding stock after it is ready for sale. Outbound postage, marketplace commissions, advertising, and ongoing storage are generally analyzed separately from product acquisition cost; categorize them according to their nature and accounting policy. For Amazon FBA, distinguish eligible inbound preparation or delivery charges from recurring storage fees and fulfillment charges. This keeps product margin from absorbing expenses that arise after inventory is ready for sale.
Valuing Your Stock: FIFO, Weighted Average, and Avoiding Costly Errors
Your inventory method determines which costs flow into COGS as products sell and which remain on the balance sheet. That choice affects reported gross margin, the value assigned to unsold stock, and potentially taxable income. For e-commerce inventory and cogs accounting, select a method that fits how your products move, apply it consistently, and confirm the treatment with a qualified accounting or tax professional. A spreadsheet that changes costing logic from one month to the next can make SKU performance difficult to trust.
Inventory Valuation Methods Explained: FIFO vs. Weighted Average Cost
FIFO assigns the cost of the oldest units in inventory to the units sold first. Weighted average calculates a blended unit cost from the goods available. Both methods systematically move product cost from inventory to COGS, but they can produce different results when supplier prices change. Choose based on your inventory data, purchasing patterns, and applicable accounting requirements, not on which method makes a single month look better.
The Mechanics of FIFO: First In, First Out for a Predictable Cost Flow
Under FIFO, each purchase or production batch retains its own unit cost. When sales occur, the system assigns costs from the oldest remaining batch first. If a brand buys the same SKU at different prices across several orders, FIFO generally matches early sales to older costs while newer units remain valued at newer costs. It can fit stock physically rotated in purchase order, though the accounting method should not be assumed to mirror warehouse handling automatically. Clear batch records support the calculation.
The Mechanics of Weighted Average: Smoothing Out Price Fluctuations
Weighted average combines the cost and quantity of comparable units available, producing one blended cost per unit. A basic formula is: weighted average cost per unit = total cost of units available ÷ total units available. If a business holds the same SKU from multiple purchases at different prices, the blended figure spreads those costs across the units. This can reduce sharp cost changes between batches, while making it less clear which purchase lot supplied a particular sale. Consistent product definitions and timely receiving data keep the calculation meaningful.
Why Specific Identification Isn't Practical for Most E-commerce Brands
Specific identification assigns the actual cost of each particular item to its sale. It can work when units are individually distinguishable and their costs are tracked separately, such as with serialized or one-of-a-kind goods. For large volumes of interchangeable products, linking each online order to the exact purchased unit can create more recordkeeping than the decision value justifies. If products differ by model, condition, or other meaningful attributes, separate SKU records may still be necessary even when each unit does not receive unique cost tracking.
The Impact of Valuation on Gross Margin and Taxable Income
When costs rise, FIFO may assign older, lower costs to current sales while newer, higher costs remain in inventory. Weighted average blends price changes across available units. The resulting COGS and ending inventory values can differ, changing reported gross profit for the period. Taxable income may also be affected, subject to applicable rules and the business’s accounting treatment. Model the effect before selecting a method, document the policy, and seek qualified tax guidance rather than switching methods to manage reported results.
Handling Write-Downs: When Cost Exceeds Net Realizable Value (NRV)
Damaged, expired, obsolete, or slow-moving goods may no longer be expected to recover their recorded cost through sale. Review these items by SKU and condition, gather support such as inspection notes or current selling-price evidence, and assess whether a write-down is required under the applicable accounting framework. Net realizable value generally refers to the expected selling price less the costs needed to complete and sell the item. Record approved adjustments consistently, with a clear explanation and supporting documentation.
Choosing a Method: Practical Trade-Offs
Pros
- FIFO: Keeps purchase-batch costs visible and may align with physical stock rotation.
- Weighted average: Offers a blended unit cost that can temper purchase-price fluctuations.
Cons
- FIFO: Requires reliable batch-level quantities and costs to calculate remaining layers.
- Weighted average: Can obscure cost differences between individual purchase lots.
Reconciliation and Accuracy: Your Path to Audit-Ready Inventory Accounting
Reliable e-commerce inventory and cogs accounting depends on records that agree across sales channels, warehouses, and the general ledger. Reconciliation connects those records, surfaces missing or duplicated activity, and gives founders a more dependable view of stock and gross profit. Treat it as an operating process, not a year-end scramble: assign an owner, set a close schedule, and retain reports and explanations that support each adjustment.
The Monthly Reconciliation Workflow: Connecting Your Books to Reality
At month-end, establish a cutoff date and gather the same core records each period: inventory subledger balances, sales and refund reports, purchase and receiving documents, fulfillment activity, and warehouse or 3PL inventory statements. Compare inventory detail with the general ledger, then investigate significant changes against receipts, shipments, returns, and adjustments. Document each difference’s source and who approved its resolution. A consistent close checklist helps distinguish a timing issue from a posting error or real stock loss.
Step-by-Step: Reconciling Multi-Channel Inventory (Amazon, Shopify, 3PLs)
Use a repeatable sequence for each sales channel and location:
- Set the cutoff: Confirm the period covered by each marketplace, store, and warehouse report.
- Match movements: Compare receipts, customer shipments, transfers, returns, and cancellations with inventory-system activity.
- Check exceptions: Investigate units marked as reserved, in transit, damaged, or awaiting inspection instead of treating them as available stock.
- Tie to the ledger: Reconcile the resulting inventory quantities and values to the accounting records, documenting any timing differences.
- Resolve and retain: Post supported corrections and save reports, calculations, and approvals with the close records.
Keep SKU identifiers and location names consistent across systems. For a product bundle or mixed shipment, preserve the component detail so a quantity match does not conceal an inaccurate unit record.
Journal Entries: Moving Inventory from Asset to COGS on Sale
When units sell, the accounting records generally reduce the inventory asset and recognize the corresponding cost in COGS. A basic entry debits COGS and credits inventory for the recorded cost of the units sold. The sales entry is separate: it records revenue and any applicable receivable, payment, or marketplace clearing activity. The inventory system should supply the quantities and cost basis for the cost entry, while the general ledger records the financial effect. Reconcile both sides rather than assuming marketplace deposits equal sales or COGS.
Troubleshooting Common Discrepancies: Stock Counts vs. Ledger Balances
When a physical count does not match the books, check cutoff timing first. Goods may have shipped before the count, arrived after the reporting date, or moved between locations without a recorded transfer. Next, review returns, damaged units, duplicate receipts, fulfillment adjustments, and SKU mapping. Correct the underlying process as well as the balance; otherwise, the same variance may recur. For a material or unexplained difference, preserve the count evidence and supporting records, then have the appropriate accounting owner review the adjustment before posting.
The Cypher Approach: Technology-Enabled Financial Clarity for Growth
Cypher combines dedicated finance experts, tailored processes, and modern cloud tools to support connected accounting and reporting. For a growing e-commerce business, that can mean organizing channel and inventory data into a repeatable close process, with monthly reporting that helps leaders examine cash, margins, and operating performance together. Define clear data owners and reconciliation controls before channel complexity outpaces the close.
Frequently Asked Questions
Does inbound shipping count as COGS or an operating expense?
Inbound shipping generally becomes part of inventory cost and flows to COGS when the related products are sold. E-commerce inventory accounting should include eligible freight-in, duties, tariffs, and preparation charges needed to bring goods to their current location and condition. Outbound shipping to customers is typically evaluated separately under the company’s accounting policy.
When should an e-commerce business record COGS, upon purchase or upon sale?
An e-commerce business generally records COGS when the related inventory is sold, not when the supplier is paid. Products purchased but still unsold remain inventory assets on the balance sheet. This timing matches product costs with sales, giving founders a more useful view of gross margin and SKU performance.
How do you calculate landed cost per unit across mixed supplier orders?
Landed cost per unit equals allocated purchase cost plus eligible inbound charges, divided by the units received. E-commerce inventory accounting should assign shared freight, duties, and preparation costs using a documented basis such as unit count, weight, or product value. Keep the allocation schedule with invoices and receiving records for later reconciliation.
What is the difference between perpetual and periodic inventory tracking?
Perpetual inventory tracking updates inventory and COGS as purchases, sales, and adjustments occur, while periodic tracking calculates inventory and COGS at set intervals using a physical count or estimate. Perpetual systems can provide more timely SKU-level visibility, while periodic systems may fit simpler operations with fewer transactions.
How should Amazon FBA prep fees and storage fees be categorized on the P&L?
Amazon FBA prep fees may be included in inventory cost when they directly prepare products for sale, while FBA storage fees are generally recorded as operating expenses. E-commerce accounting should apply a consistent policy based on the service provided and applicable accounting guidance. Keep Amazon statements and fee detail available to support classification and period matching.
How do inventory adjustments affect e-commerce COGS?
Inventory adjustments increase or decrease COGS, or a separate inventory adjustment expense, when book quantities differ from confirmed physical quantities. E-commerce inventory accounting should document the reason, such as damage, shrinkage, returns, or counting differences, and apply the same treatment consistently. Regular reconciliations help connect warehouse records, sales channels, and the general ledger.

