Cost of goods sold calculator
This simplified worksheet totals the entered goods available for sale, subtracts ending inventory, and then subtracts estimated COGS from net sales for gross profit.
Calculator
How to use this calculator
Estimate period cost of goods sold from beginning inventory, purchases, direct costs, and ending inventory, then compare with net sales.
- Beginning inventory ($) Purchases ($) Other direct costs ($) Ending inventory ($) Net sales ($)
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Cost of goods sold calculator
This simplified worksheet totals the entered goods available for sale, subtracts ending inventory, and then subtracts estimated COGS from net sales for gross profit.
Inputs and units
- Beginning inventory ($)
- Purchases ($)
- Other direct costs ($)
- Ending inventory ($)
- Net sales ($)
Formula and method
Formula: COGS = beginning inventory + purchases + other direct costs − ending inventory. Gross profit = net sales − COGS.
Worked example
$12,000 beginning inventory + $28,000 purchases + $2,000 direct costs − $9,000 ending inventory = $33,000 COGS. At $60,000 net sales, gross profit is $27,000.
Interpreting the result
COGS is the entered inventory cost recognized for the period; gross profit is net sales less that estimate. It does not mean cash remaining after operating expenses.
Assumptions and limits
Tax and accounting treatment can depend on inventory method, labor, freight, withdrawals, and other direct costs. Use records and applicable accounting or tax guidance for reporting.
Sources and method notes
- The IRS example subtracts ending inventory from goods available for sale to find cost of goods sold; accounting treatment can include additional items. IRS Publication 334: cost of goods sold
Frequently asked questions
Why is ending inventory subtracted?
Goods still on hand at period end were not included in the cost of goods sold for that period.
Is gross profit net income?
No. It excludes operating expenses, taxes, interest, and other costs not entered here.
How do I use the Cost of goods sold calculator?
Beginning inventory ($) Purchases ($) Other direct costs ($) Ending inventory ($) Net sales ($)
What is a worked example of Cost of goods sold?
$12,000 beginning inventory + $28,000 purchases + $2,000 direct costs − $9,000 ending inventory = $33,000 COGS. At $60,000 net sales, gross profit is $27,000.
What does the Cost of goods sold calculator calculate?
Estimate period cost of goods sold from beginning inventory, purchases, direct costs, and ending inventory, then compare with net sales.
See the calculation methodology.
Good calculators show their work.
CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.