How to use Cost of Goods Sold Calculator
- Enter Opening inventory value at cost for the beginning of your period.
- Enter Net purchases for the same period after the returns, allowances and inventory-cost adjustments you intend to include. This field is a prepared total, not a purchase ledger.
- Enter Closing inventory value at cost at the end of that period, using the same valuation basis. Do not substitute sales revenue or retail selling prices.
- Select Calculate result. Goods available is opening inventory plus net purchases; Cost of goods sold subtracts closing inventory. Review the cost-share table and copy the result if needed. There is no download file.
Example: Cost of Goods Sold Calculator
Opening stock of $20,000 plus $50,000 net purchases gives $70,000 goods available at cost. Keeping $15,000 as closing inventory leaves $55,000 COGS.
Options
- Inventory at cost
- Use opening and closing inventory values measured on the same cost basis. Retail selling prices belong to a different calculation.
- Net purchases
- Enter the purchase total after the adjustments you intend to include. This page does not decide which shipping, return or discount entries belong in that figure.
- Currency display
- Choose a monetary label for the three entered balances and calculated cost amounts. Percentage shares use Goods available as their denominator and do not change with the currency label.
Supported inputs and limits
- Inputs must be nonnegative and no more than 1,000,000,000,000 each, with up to 25 digits and 12 decimal places.
- Grouping commas and a leading $ are accepted; use a period for decimals and one currency throughout.
- Closing inventory cannot exceed opening inventory plus net purchases.
- This is a periodic cost identity.
- Net purchases must already contain the adjustments you want; the page does not choose a valuation method, determine allowable tax costs, calculate freight/returns separately or create accounting entries.
More details
Each share divides by Goods available.
When that amount is zero, shares are undefined rather than 0% or 100%.
Monetary table amounts round to two places; very small copied-text amounts may use scientific notation.
The result does not import stock movements, connect to accounts or automatically save records.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Reconcile the period before using the total
Goods available at cost equal opening inventory plus net purchases. The closing balance is then subtracted. A count or valuation error in closing inventory changes the result directly, so keep the calculation with the records supporting all three amounts. It supplies arithmetic for a periodic inventory model, not accounting entries.
Questions about Cost of Goods Sold Calculator
Should I enter sales revenue?
No. These fields use inventory and purchase costs. Revenue belongs in a separate profit calculation.
Where do purchase returns go?
Include their effect in the net purchases figure before entering it. The tool has no separate returns or freight ledger.
Why is a negative result refused?
It means closing inventory exceeds the available cost under this simplified identity. Recheck the figures and any missing adjustments.