Cost of Goods Sold Calculator
Calculate cost of goods sold for a period: beginning inventory + purchases + direct labor + manufacturing overhead − ending inventory.
Last updated: October 2026
Cost of Goods Sold
$190,000.00
This calculator gives an estimate for general information only. It is not financial, tax or investment advice. Check the figures with a qualified professional before making decisions, and follow the rules that apply where you live.
Formula below · 1 source (IRS) · Updated Oct 2026
Compare with similar
About this calculator
Cost of goods sold (COGS) is the cost of the inventory you actually sold during a period. Under a periodic inventory count it is worked out from the inventory at both ends of the period:
COGS = beginning inventory + purchases (+ direct labor + manufacturing overhead) − ending inventory
Beginning inventory plus everything added during the period is the cost of goods available for sale; whatever is still on hand at the end was not sold, so it is subtracted. With the defaults: $25,000 + $150,000 + $30,000 + $20,000 − $35,000 = $190,000.
Resellers and manufacturers
A retailer or wholesaler enters 0 for labor and overhead: purchases (net of returns and discounts, plus freight-in) are its only addition. A manufacturer adds the production labor and factory overhead that went into finished goods. Selling, marketing and office costs never belong in COGS.
Why it matters
COGS is subtracted from revenue to give gross profit, and US businesses report it on their tax return (for example Schedule C, Part III for sole proprietors, which follows the same layout). Because ending inventory is subtracted, an inventory count or valuation that is too high understates COGS and overstates profit. The cost flow method (FIFO, LIFO, average cost) decides which costs land in ending inventory and which in COGS.
How to use
Enter the inventory value at the start and end of the period and the costs added in between. Example 1 (manufacturer, defaults): $25,000 + $150,000 + $30,000 + $20,000 − $35,000 = $190,000. Example 2 (retailer): beginning inventory $40,000, purchases $210,000, labor and overhead 0, ending inventory $50,000. COGS = $40,000 + $210,000 − $50,000 = $200,000. With $320,000 of sales, gross profit is $120,000 (37.5% margin). Example 3: a quarter with $30,000 opening stock, $50,000 materials, $20,000 direct labor, $10,000 overhead and $15,000 closing stock gives COGS of $95,000.
Frequently asked questions
What is the formula for cost of goods sold?
COGS = beginning inventory + purchases (and, for a manufacturer, direct labor and manufacturing overhead) − ending inventory. Beginning $40,000 + purchases $210,000 − ending $50,000 = $200,000.
What is included in COGS?
The cost of the products sold: purchase cost or materials, freight-in, direct production labor and factory overhead such as production utilities and equipment depreciation. Selling, general and administrative expenses (advertising, office rent, management salaries) are operating expenses, not COGS.
How does ending inventory affect COGS?
Every dollar of ending inventory reduces COGS by a dollar. Overstating ending inventory lowers COGS and inflates gross profit and taxable income; understating it does the opposite.
Do service businesses have COGS?
Businesses that sell no goods have no inventory, so the inventory formula does not apply. Many report a cost of revenue or cost of services instead, made up of the direct labor and materials used to deliver the service.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.