COGS Calculator (Cost of Goods Sold) Free

Enter your opening stock, what you bought in the period and your closing stock. Add revenue to see gross profit.

🧮 Inputs

Fill in the fields — results update live.

📈 Result

Updates live as you type.

🧮Fill in the fields to see your result.

The COGS formula

COGS = opening inventory + purchases − closing inventory. It is the cost of the goods you actually sold in the period. Gross profit is revenue minus COGS, and gross margin is gross profit as a percentage of revenue. A reliable closing figure needs regular stock counts or a perpetual inventory system.

FAQ

Frequently asked questions

What is included in purchases?

The cost of goods bought for resale, plus freight-in and import costs that are part of landing the goods. Overheads like rent are normally not part of COGS for a trading business.

Does COGS include VAT?

No. Recoverable input VAT is not part of cost. Use VAT-exclusive purchase values.

Know your COGS every day, not every quarter

POS sales, purchases and stock movements update cost of sales automatically. Pyalm Books is free while it is in beta, so you can move this calculation into real books at no cost.

Try Pyalm Books free

Need a tool like this built around your own workflow? Custom software · AI automation