Rounding Robin

Home › Accounting › Cost of Goods Sold (COGS) Calculator

Cost of Goods Sold (COGS) Calculator

Enter the inventory figures for the period. Add revenue to see gross profit.

$
$
$
$
Cost of goods sold$155,000.00
Goods available for sale
$190,000.00
Gross profit
$105,000.00
Gross margin
40.38%

Formula

COGS = Beginning inventory + Purchases − Ending inventory
Gross profit = Revenue − COGS

How it works

What you started with plus what you bought is everything you could have sold. Whatever is not still on the shelf at the end was sold, lost or written off, and that is the cost of goods sold.

Purchases should include freight in and other costs of getting stock ready to sell, less returns and discounts. The inventory figures depend on your costing method, such as FIFO or weighted average.

Worked example

Using the starting figures above (Beginning inventory: $40,000.00; Purchases during the period: $150,000.00; Ending inventory: $35,000.00; Revenue: $260,000.00), the calculator returns:

Common questions

Does COGS include labour?

For a manufacturer, direct labour and factory overhead are part of inventory cost and so flow into COGS. For a retailer, COGS is mainly the purchase cost of the goods. Selling and office wages are operating expenses, not COGS.

Related calculators

Something look wrong, or missing a calculator you need? Send feedback.

Results are estimates for general information. They are not financial, tax or legal advice. Check important figures with a qualified professional before acting on them.