Your COGS is wrong, and the first sign is usually a margin that moves for no reason. Gross margin on a product line swings three points between months with no price change and no supplier change, finance restates last quarter after a freight invoice shows up, and the board deck shows a blended margin that nobody on the operations team recognizes from the warehouse. A COGS calculation that drifts like this is not a reporting problem. It is a data problem that starts upstream of the ledger.
Cost of goods sold is the cost of the inventory a brand sold in a period, and for a consumer goods company it has to include everything it took to get that unit onto the shelf: the supplier's price, freight, duty, insurance, and handling, allocated to the units that actually sold. Most cost of goods sold errors come from one of five places, and all five share a cause: the systems that know what things cost are not the systems that know what shipped. This guide walks through each error, how to fix it, and how DOSS, the AI-native operations platform for consumer goods, keeps COGS right at close.
Error 1: Landed Cost Is Missing or Estimated
The most common COGS error is using the supplier invoice price as unit cost and leaving freight, duty, and handling out until the bills arrive. For a brand importing product, those costs routinely add 15% to 30% on top of the factory price, and they land weeks after the goods do. If the inventory was received at factory cost, every unit sold before the freight invoice posts is undercosted, and the correction hits as a lump in a later period.
Estimating a flat landed cost percentage is better than ignoring it and still wrong, because the real number varies by shipment. A container that was 60% full, a surcharge in a peak season, or a tariff change on one product category changes the per-unit cost for that lot and no other.
The fix is landed cost by lot. Each receipt carries its own freight, duty, and handling, allocated across the units in that shipment by value, weight, or volume, so the unit cost on the inventory record is the real cost of that unit. When the freight invoice arrives late, it adjusts that lot, not the whole catalog. This is what makes landed cost tractable rather than a month-end estimate, and it is why lead time on the freight invoice stops distorting the period it lands in.
Error 2: Inventory Valuation Does Not Match Physical Reality
COGS is derived from inventory movement, so if the inventory record is wrong, COGS is wrong by the same amount. A brand that carries inventory across its own warehouse, two 3PLs, and Amazon FBA typically has four counts, each in a different system, pulled into a spreadsheet that is stale by the time it is finished. Shrink, damage, returns to stock, and transfers in transit all show up as variances at month end, and the variance gets forced into COGS to make the balance sheet tie.
The fix is one inventory ledger that records every movement as it happens: receipts, transfers, commitments, shipments, returns, and adjustments, by location and lot, with on-hand, committed, available, and in-transit as separate positions. When 3PL counts reconcile against that ledger daily instead of monthly, the variance is small and attributable. A stockout or an overstock becomes visible when it happens, and the inventory valuation finance closes against is the same number operations is looking at.
Perpetual inventory is the standard here. A periodic count at month end tells you what happened; a perpetual ledger tells you why.
Error 3: Costing Method Is Inconsistent Across Lots and Channels
A COGS calculation goes wrong when the costing method is applied unevenly. A brand decides on FIFO, but the 3PL ships whatever is closest to the dock, the system relieves inventory at an average cost, and the lot that was actually shipped carried a different landed cost from the lot the ledger assumed. For products with expiry dates, FEFO adds another layer: the oldest-expiring lot should ship first, and its cost should follow it.
The fix is to tie cost relief to the lot that physically moved. Lot traceability does this: when a shipment is confirmed against lot 2026-0417, the ledger relieves that lot's quantity at that lot's landed cost. The costing method becomes a fact about what shipped rather than an accounting convention applied after the fact. This matters most for food, beverage, beauty, and wellness brands where lot tracking is already required for recalls, and it keeps COGS consistent whether a unit sold through DTC or wholesale.
Error 4: BOMs and Kits Carry Stale Component Costs
For brands that assemble, bundle, or manufacture, COGS is often wrong because the bill of materials used to cost the finished good has not been updated since launch. An ingredient went up 12%, packaging was resourced, a component was substituted, and the BOM still rolls up to the cost from eighteen months ago. Kits and bundles have the same problem in reverse: the bundle sells at one price and relieves inventory at a cost that does not reflect what was actually packed.
The fix is BOMs with component cost rollup and version history, held in the same master data as the items themselves. When a component's landed cost changes, the finished good's cost changes with it, and when a BOM is revised, the version is recorded so last quarter's COGS can be explained against this quarter's. Bundle and kit decomposition should happen at the point of sale or fulfillment, so the units relieved are the components that shipped. De Soi rolls 50 to 60 raw ingredients into month-end COGS automatically, with ingredient-level visibility, which is what this looks like when it works.
Error 5: Channel and Customer Allocation Is Done at Month End
Even when total COGS is right, COGS by channel or by customer is often wrong because it is allocated at month end from a revenue split. Wholesale orders ship in cases from one warehouse, DTC orders ship in units from a 3PL with pick fees, and marketplace orders carry fulfillment fees the brand never sees on an invoice. Allocating COGS by revenue share flattens all of that, and finance concludes that a retailer account is profitable when the real cost to serve says otherwise.
The fix is to attribute COGS at the order line. Each line relieves specific inventory at a specific landed cost, from a specific location, and the channel and customer are already on the order. Contribution margin to the line-item level falls out of that without an allocation step, and the question "is this account worth it" gets answered from the orders rather than a spreadsheet two closes later. The reorder point and purchasing decisions that follow are then based on margin by channel, not blended margin.
Why Spreadsheets and Legacy ERPs Keep Getting COGS Wrong
Spreadsheets get COGS wrong because they are built after the fact from exports that disagree, and they are stale as soon as they are done. There is no ledger, no lot, and no audit trail, so the number is whatever the last person who edited the sheet believed.
Legacy ERPs get it wrong for a different reason. They were built ledger-first, with inventory, purchasing, and orders as modules attached to the financial core, and they sync with channels, 3PLs, and freight systems in overnight batches. The record they hold is a version of the business that drifts from the real world, so finance checks the numbers against reality before trusting them, and the checking is where the month goes. Changing how landed cost is allocated or how a BOM rolls up means a consultant and a change order. Point solutions each hold part of the truth and leave the reconciling to the team.
The contradiction is that a brand needs a system complete enough to run the whole operation and adaptable enough to change every time the business does. Until recently those were different products.
How DOSS Keeps COGS Right
DOSS keeps COGS right by making cost a property of the inventory that moved, on the same system that moved it. DOSS is the AI-native operations platform for consumer goods, built for Operations and Finance leaders at brands doing $10M to $250M in revenue across DTC, wholesale, retail, and marketplaces, and it gives them a single source of truth for procurement, inventory, and orders.
Inventory Management runs as an immutable ledger with on-hand, committed, scheduled, available, in-transit, and WIP positions, lot traceability with FIFO and FEFO, expiration and QC hold, daily 3PL snapshot reconciliation, and landed cost by lot. Procurement ties the PO, the receipt, and the invoice together with three-way match and AI packing-slip parsing, so freight and duty attach to the lot they belong to. Unified Master Data holds BOMs with component cost rollup and version history, and maps every channel's identifiers to one SKU . Every shipped order line relieves specific inventory at its real cost, with the channel and customer already attached.
Connected Finance turns that into clean financial inputs in real time: journal entries for revenue, COGS, and inventory valuation, plus customer invoices, credit memos, and three-way-matched vendor bills, posted to the GL the brand already uses. The GL stays. Contribution margin shows to the line-item level, landed cost included. Dossbot, the DOSS agent, answers questions such as which lots carried the highest landed cost last month against live data with drill-down links, and it can resolve data errors with user confirmation. Snackwise cut its month-end inventory close from 40 hours to 2 without changing its GL. Typical go-live is four to six months.
Conclusion
COGS is wrong when the system that knows what things cost is not the system that knows what shipped. Fix landed cost at the lot, run one inventory ledger that matches the shelf, relieve cost by the lot that moved, keep BOM costs current, and attribute cost at the order line. Each of those is a data decision before it is an accounting decision.
DOSS makes those decisions once, on a system of record that matches the real world, and hands finance a COGS number that is right at close instead of restated a quarter later. If your margin moves for reasons nobody can explain, book a demo and bring last month's variance. That is where the fix starts.


