A little context. A clearer answer.
When this calculator is useful
Add opening inventory, net purchases and signed adjustments to obtain available cost. Subtract closing inventory for cost of goods sold. Subtract COGS from net sales for gross profit; divide by net sales for margin. Negative available cost or closing stock above available cost is rejected for this simple model. For a related calculation, try Production batch cost with setup and rejects.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Opening inventory | Value of inventory on hand at the start of the period. Opening inventory: 0…1000000000000 money | 3,150 USD |
| Net purchases | Purchases entering inventory during the period after applicable reductions. Net purchases: 0…1000000000000 money | 13,005 USD |
| Cost adjustment | Signed adjustment to period inventory cost before closing stock is deducted. Cost adjustment: -1000000000000…1000000000000 money | 0 USD |
| Closing inventory | Value left in inventory at period end. Closing inventory: 0…1000000000000 money | 8,895 USD |
| Net sales | Sales for the same period against which cost of goods sold is compared. Net sales: 0…1000000000000 money | 11,340 USD |
How the calculation works
- Change the inputs to explore your own scenario. Opening inventory: 0…1000000000000 money; Net purchases: 0…1000000000000 money; Cost adjustment: -1000000000000…1000000000000 money; Closing inventory: 0…1000000000000 money; Net sales: 0…1000000000000 money.
- G=B+P+J; COGS=G−E; GP=S−COGS; margin=100×GP/S
- Periodic merchandise inventory in one currency and accounting period. Net purchases already include appropriate freight and purchase returns/discounts. Enter signed cost adjustments separately without double counting. Ending inventory is an independently valued book amount. No FIFO/LIFO valuation, manufacturing allocation, cash flow or tax filing is inferred.
G=B+P+J; COGS=G−E; GP=S−COGS; margin=100×GP/SA worked example
OpenStax example: 3150 opening +13005 purchases −8895 ending =7260 COGS. Net sales11340 give gross profit4080 and gross margin≈35.97883598%. The entered ending inventory is supplied, not revalued by this tool.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Periodic merchandise inventory in one currency and accounting period. Net purchases already include appropriate freight and purchase returns/discounts. Enter signed cost adjustments separately without double counting. Ending inventory is an independently valued book amount. No FIFO/LIFO valuation, manufacturing allocation, cash flow or tax filing is inferred.
Frequently asked questions
Does the tool choose an inventory valuation method?
No. Supply a consistently valued closing inventory amount from your records.
Where do purchase returns and freight go?
Use their appropriate net effect in net purchases or the separate adjustment, once only.
What happens with zero sales?
Gross profit remains sales minus cost; gross margin is unavailable because its denominator is zero.