About COGS Calculator
Cost of goods sold (COGS) is the direct cost of the inventory a business sold during a period. Under the periodic inventory method, COGS = beginning inventory + net purchases − ending inventory. Beginning inventory plus purchases is the cost of goods available for sale. If you enter sales, gross profit = sales − COGS and gross margin = gross profit ÷ sales × 100. The result depends on how your inventory is valued.
How to use COGS Calculator
- Fill in "Beginning inventory", "Net purchases", "Ending inventory" and "Sales".
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about COGS Calculator
What counts as net purchases?
Purchases of goods for resale during the period, plus freight in, minus purchase returns, allowances, and discounts received. Operating expenses such as rent, marketing, and office salaries are not part of COGS.
Runs in your browser. Page last updated .