Cost of goods sold, explained
Cost of goods sold (COGS) is what the products you actually sold cost you. It's the number that turns revenue into gross profit.
Do the math for your own numbers: the free Cost of Goods Sold Calculator runs in your browser, no sign-up.
Open the Cost of Goods Sold CalculatorThe formula
COGS = beginning inventory + purchases − ending inventory
Worked example (one quarter)
| Item | Amount |
|---|---|
| Inventory at the start (materials and finished stock, at cost) | $1,200 |
| Purchases during the quarter | $800 |
| Inventory at the end | $900 |
| COGS | $1,100 |
If the quarter's sales were $3,000, gross profit is $3,000 − $1,100 = $1,900, a 63% gross margin.
What goes in
Materials and components, and supplies that become part of the product or its presentation. Whether your own labor and other costs belong in COGS depends on how you keep your books, so follow your accountant's or bookkeeper's approach and keep it consistent.
Why it matters
COGS shows whether rising sales are actually profitable, and it feeds inventory turnover (COGS ÷ average inventory), which shows how fast stock sells. Try both in the COGS calculator and the inventory turnover calculator.
Do this for every order, automatically. Track stock levels, get reorder alerts and see cost of goods sold without manual math.
Get the Inventory and COGS Tracker spreadsheet ($15)Questions
How often should I count inventory?
At least at the end of each period you report on, such as monthly or quarterly. A running inventory sheet makes counts faster.
Is COGS the same as expenses?
No. COGS covers the cost of products sold. Other costs like software or ads are operating expenses.
Calculators for this
- Cost of Goods Sold CalculatorCost of goods sold, gross profit and gross margin.
- Inventory Turnover CalculatorTurnover ratio and days of inventory on hand.
- Profit Margin CalculatorProfit, margin and markup, or the price for a target margin.