CalcHub

Free calculator tools. Fast, simple, no sign up.

Cost of Goods Sold (COGS): Formula and How to Calculate It for Retail

Cost of goods sold, or COGS, is the direct cost of the products a business sells. It is the first cost subtracted from revenue, and it sets the gross...

Cost of goods sold, or COGS, is the direct cost of the products a business sells. It is the first cost subtracted from revenue, and it sets the gross profit.

How it works

The formula is opening stock plus purchases minus closing stock. A shop starts the month with $5,000 of stock, buys $8,000 more, and ends with $4,000, so its COGS is 5000 + 8000 - 4000, which is $9,000. If the shop sold $15,000 of goods, its gross profit is $6,000 and its gross margin is 40 percent. COGS includes the purchase price, freight, and any direct costs of getting the goods ready to sell. It does not include rent, wages, or marketing, which are operating costs.

Tracking COGS shows whether buying prices or waste are eating the margin, and it is the number a tax return asks for.

Worked example

A shop has opening stock of $2,000, purchases of $6,000, and closing stock of $1,500. Its COGS is 2000 + 6000 - 1500, which is $6,500.

What to watch out for

The classic mistake is counting unsold stock as a cost. Stock still on the shelf is an asset, not COGS.

Try it yourself

Opening stock $3,000, purchases $7,000, closing stock $2,500. What is COGS? (Answer: $7,500.)

Putting it together

Before acting on any money idea, run the numbers for your own amounts. The examples here use round figures to show the method, and your own figures will give a different answer. Compare at least two options side by side, and look at the total cost over the full period, not just the monthly figure. A small difference each month adds up over years.

A question to ask yourself

What if the numbers change? Run the same calculation with your own income, price, or loan amount. The answer will differ, but the method will hold, and the comparison between options is what matters.