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.
- Goods available for sale
- $190,000.00
- Gross profit
- $105,000.00
- Gross margin
- 40.38%
Formula
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:
- Cost of goods sold: $155,000.00
- Goods available for sale: $190,000.00
- Gross profit: $105,000.00
- Gross margin: 40.38%
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
- Inventory Turnover CalculatorCalculate inventory turnover and days of inventory on hand from cost of goods sold and average inventory.
- Weighted Average Cost CalculatorCalculate weighted average cost per unit across several purchases, then cost of goods sold and ending inventory at that cost.
- Profit Margin CalculatorWork out gross profit margin, profit in dollars and markup from your cost and selling price.
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.