COGS Calculator
Result
COGS Calculator Calculate Cost of Goods Sold (COGS) using beginning inventory, purchases, and ending inventory. — free online calculator.
Formula
- Compute inventory-based cost of goods sold and gross margin. Revenue must be nonzero for the margin calculation.
- The main inputs are Beginning Inventory, Purchases / Manufacturing Cost, Ending Inventory, Revenue. Enter them in the units and format shown in the calculator.
- Use monetary amounts, rates and time periods exactly as labeled; the result reflects the assumptions entered on this page.
- Changing any input above recalculates the result with the same calculation engine used by this page.
Example: COGS
- Beginning Inventory: 50000
- Purchases / Manufacturing Cost: 200000
- Ending Inventory: 40000
- Revenue: 350000 for gross margin
50,000 + 200,000 − 40,000 = 210,000 COGS; 350,000 revenue gives 140,000 gross profit and 40% gross margin.
Sample result: Calculating…
Frequently asked questions
What does the COGS calculate?
COGS Calculator Calculate Cost of Goods Sold (COGS) using beginning inventory, purchases, and ending inventory. — free online calculator.
Which values should I enter?
Enter Beginning Inventory, Purchases / Manufacturing Cost, Ending Inventory, Revenue using the units and format shown beside each field.
What formula does this calculator use?
The calculator uses the following relationship: COGS = beginning inventory + purchases − ending inventory; gross profit = revenue − COGS; gross margin (%) = gross profit / revenue × 100..
Why might my result differ from another source?
Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.
Does the result update automatically?
Yes. Changing an input updates the result using the same calculation engine shown on this page.