Skip to main content
Accounting Basics

What Is Cost of Goods Sold?

Cost of goods sold (COGS) is the direct cost of products sold in a period: opening inventory plus purchases and direct costs, minus closing inventory.

Detailed Explanation

COGS covers what it cost to buy or make the items you actually sold: materials, goods bought for resale, direct labour and other production costs. It excludes overheads such as marketing, rent for an office or general admin. Subtracting COGS from revenue gives gross profit, and gross profit divided by revenue gives gross margin. Because it is based on what was sold, not what was bought, inventory you still hold at the end of the period is taken back out. Service businesses often have little or no COGS in the tax sense, though many track a similar 'cost of sales', such as subcontractor fees on client projects, to see the true margin on each invoice.

Example

Opening inventory $8,000 + purchases $22,000 + direct labour $5,000 = $35,000. Closing inventory is $10,000, so COGS is $25,000. With $60,000 of sales, gross profit is $35,000, a 58.3% gross margin.

Why It Matters

COGS tells you whether each sale makes money before overheads. Price an invoice without knowing it and you can grow sales while losing money on every one.

Key facts

  • US sole proprietors report COGS in Part III of Schedule C (Form 1040): inventory at the beginning of the year (line 35), plus purchases less items withdrawn for personal use (36), cost of labor (37), materials and supplies (38) and other costs (39), totalled on line 40, minus inventory at the end of the year (41), gives COGS on line 42.
  • The same structure applies in any accrual-based accounts: only the cost of items sold in the period is expensed, and unsold stock stays on the balance sheet as inventory.
  • Gross margin = (revenue - COGS) / revenue. A 40% gross margin means 60 cents of every sales dollar went on the goods themselves.
  • Small businesses that meet the section 448(c) gross receipts test, $32 million for tax years beginning in 2026 under Rev. Proc. 2025-32, can use simplified inventory methods for tax. Check the rules before relying on them.
  • InvoiceQuickly does not track inventory or calculate COGS. Pro tracks expenses and can turn billable expenses into invoice lines, and the free profit margin calculator does the margin arithmetic.
  • This entry is general information, not tax advice.

How it shows up in practice

Illustrative example: a candle maker starts the year with $3,000 of wax, wicks and jars. During the year it buys $14,000 of supplies, takes $200 of candles for personal use and pays a part-time helper $6,000 to pour candles. At year end, unsold stock and supplies are worth $4,500. COGS is $3,000 + ($14,000 - $200) + $6,000 - $4,500 = $18,300. Sales were $41,000, so gross profit is $22,700 and gross margin is 55.4%. Its best-selling $24 candle costs about $10.70 in goods on the same 44.6% ratio, so a wholesale order at $13 per candle would leave only about $2.30 to cover overheads.

Common mistakes

  • Expensing all purchases as COGS, including stock still on the shelf at year end.
  • Including overheads such as advertising or office rent in COGS.
  • Leaving direct costs, such as packaging or a helper's production wages, out of COGS.
  • Skipping the year-end stock count, so the closing inventory figure is a guess.
  • Pricing wholesale orders from retail margins without working out the unit cost.

Frequently asked questions

How do you calculate cost of goods sold?

Beginning inventory plus purchases and other direct costs, minus ending inventory. Schedule C Part III lays it out as lines 35 to 42: beginning inventory, purchases, labor, materials and supplies and other costs, then subtract ending inventory.

Do service businesses have cost of goods sold?

Often not in the tax sense, because they do not sell inventory. Many still track direct costs of delivering work, such as subcontractors or materials bought for a specific client, as cost of sales to measure the margin on each job.

What is the difference between COGS and operating expenses?

COGS is the direct cost of the items sold. Operating expenses are the costs of running the business regardless of each sale, such as rent, software, marketing and admin salaries. Revenue minus COGS is gross profit; minus operating expenses too, operating profit.

How does COGS affect my invoice prices?

Your price needs to cover the unit cost plus a share of overheads and profit. Work out the cost per unit or per job first, then set the price for the margin you need. A profit margin calculator helps check a quote before you send it.

Related Resources

Last verified: 4 November 2026

Related Accounting Basics Terms

Useful, occasional notes

Get invoicing tips that actually help

Join the InvoiceQuickly update list for practical invoicing advice and product news.

No spam, ever. Unsubscribe anytime.