How cost of goods sold is worked out
The periodic formula is opening stock plus purchases less closing stock. If you started the month with 30,000 of stock, bought 50,000 and ended with 35,000, the goods you sold cost 45,000. A business that tracks stock continuously does not need the formula: each sale takes the cost of the units that left the shelf, and the ledger adds them up as it goes.
What goes into the cost matters. The purchase price is only the start; freight, duty and insurance to bring goods in are part of their landed cost. Rent, sales salaries and marketing are not. They are operating expenses, below the gross profit line.
Why it matters, and common mistakes
Revenue less COGS is gross profit, the figure that tells you whether your prices cover what you sell. A shift of two or three points in gross margin often matters more than any saving on overheads.
COGS also depends on your inventory valuation method, since FIFO, weighted average and standard cost give different figures for the same sales when prices move. The common mistakes are booking inbound freight as an overhead, which flatters gross margin, and never writing down damaged or expired stock, which leaves the loss for an awkward stock count later.
Cost of goods sold in Tilenza
In Tilenza Inventory, each item is valued by FIFO or weighted average, with standard cost for items you choose. With posting switched on, every movement writes a balanced journal to Finance covering stock, goods received not yet billed and the cost of goods sold, so COGS is in the ledger as the goods leave rather than worked out at month end.