
How cost of goods sold works
A simple retailer calculates COGS by taking the inventory it had at the start of the period, adding purchases made during the period, and subtracting the inventory left at the end. That result is the cost of the items actually sold. A manufacturer adds the cost of raw materials and the labor used to build the products, then adjusts for work still in progress.
COGS does not include every expense. Rent for the office, marketing and the owner’s insurance are usually operating expenses instead. The line between direct and indirect costs depends on the business model, so consistency matters more than any single rule.
COGS feeds the gross profit line on the income statement. Gross profit is revenue minus COGS, and it shows how much is left from sales to cover the other costs of running the business. A change in COGS can shift profit quickly, so tracking it each month is useful.
Inventory valuation methods also affect COGS. Costs can rise and fall over time, and the method used to assign them to sold goods changes the reported figure. Choose a method with your accountant and apply it the same way each period.
Example
This is an example. A gift shop starts the year with $30,000 of inventory, buys $120,000 of merchandise during the year, and ends with $25,000 of inventory on hand.
COGS is $30,000 + $120,000 − $25,000, which equals $125,000. If the shop had revenue of $200,000, its gross profit is $200,000 − $125,000, which equals $75,000. That $75,000 must cover rent, wages, insurance and the other costs of running the shop before any profit remains.
Why COGS matters
COGS shows whether your pricing covers the cost of the goods you sell. A business that prices too low may sell a lot and still lose money on each item. Knowing the cost of each product lets you set prices that protect margin and reveal which products deserve more shelf space.
The figure also matters for taxes and lending. Lenders often review gross margin when they consider a loan, and the cost of goods sold affects taxable income. Clean inventory counts make these calculations more reliable.
Consider how returns, damaged goods and discounts affect COGS. Returns from customers reduce sales, and damaged or expired items may need to be written off. Recording those events accurately prevents the cost of goods from looking lower than it really is. Shipping costs to bring goods to your store may be included in the cost of inventory under some accounting methods, which changes the figure. Ask your accountant how your method treats freight, customs and handling charges. Many owners track COGS per product line as well as in total. That view shows which products earn the most gross profit per dollar of sales, and it helps with decisions about pricing, promotions and reorders. Compare COGS as a percentage of sales each month, because a rising percentage can signal supplier price increases, theft or pricing that has not kept pace with costs. Keep a short note of each supplier price change with its date, so the effect on margins is easy to trace.
Common mistakes
- Putting operating costs in COGS. Rent and marketing are usually separate expense lines.
- Skipping the inventory count. Without an accurate ending count, COGS is wrong.
- Using retail prices. COGS should reflect what you paid or what it cost to make the goods.
- Changing methods without notice. A new valuation method can distort comparisons with past periods.
Questions
How do you calculate cost of goods sold?
Add beginning inventory and purchases, then subtract ending inventory. For a manufacturer, include the materials and direct labor used to make the products sold.
Is COGS the same as overhead?
No. COGS covers direct costs tied to the goods sold, while overhead covers the broader costs of running the business. Mixing them can distort your gross margin.
How often should you track COGS?
Monthly tracking gives you the earliest warning when costs rise. Many owners also perform a full inventory count at least once a year.
Related on BizOwnerEdge
- Inventory Turnover Calculator
- How to make a small business budget for 2027
- Franchise Cost Calculator
- Workers Comp Cost Calculator
- How to do a Year-End inventory count (and why it changes your taxable profit)
- How to improve inventory turnover without running out of stock




