CalcWorldHub
Free online calculator · no signup

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

4,000 tools
Cost of goods sold calculator — Money & finance inputs and calculation method
Cost of goods sold calculator: inputs and calculation method.

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.

  1. Beginning inventory ($) Purchases ($) Other direct costs ($) Ending inventory ($) Net sales ($)
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

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

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.

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.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units