If your income statement already shows a line called cost of goods sold, cost of sales or cost of revenue, that line is your COGS. If it does not, calculate it as net sales minus gross profit. For example, net sales of $70,000 and gross profit of $27,000 give COGS of $43,000. When the statement shows the full cost of goods sold section, you can rebuild the same number from opening inventory, purchases and closing inventory.
Key takeaways
- COGS sits directly under net sales on the income statement, and gross profit is what remains after it: net sales − COGS = gross profit.
- Work backwards when only two figures are given: COGS = net sales − gross profit, or COGS = net sales × (1 − gross margin %).
- A detailed statement builds COGS from opening inventory, net purchases, freight-in and closing inventory. Returns, discounts and freight-in all change the answer.
- Use net sales, not gross sales, in every margin check. Sales returns and allowances come off the top first.
- Rent, salaries, marketing and other operating expenses are not COGS. They appear below gross profit.
Where does cost of goods sold appear on an income statement?
An income statement is a list that runs from the top line down to profit, and COGS sits in the first third of it. A typical small-business layout looks like this:
- Sales (revenue), less returns and allowances, gives net sales.
- Cost of goods sold, also labelled cost of sales or cost of revenue.
- Gross profit, which is net sales minus cost of goods sold.
- Operating expenses (rent, wages, utilities, marketing).
- Operating profit, then interest, tax and net profit.
COGS is therefore the bridge between what you sold and what you kept after paying for the goods themselves. If you want the bigger picture of how this statement fits with the balance sheet and cash flow, see the three financial statements explained. For the concept of COGS itself, the main lesson on cost of goods sold covers what counts and what does not.
A few labels you will meet for the same line:
- Cost of goods sold: the usual label for a business that buys or makes products.
- Cost of sales: the same idea, often used by businesses that sell services as well as goods.
- Cost of revenue: common for businesses that mix products and services.
Some statements classify expenses by their nature (materials, wages, depreciation) instead of by function, and then there is no single COGS line at all. In that case you have to rebuild it, which is covered below.
Our example: Lakeside Home Goods in March
Throughout this module we use a fictional furniture and home-goods shop called Lakeside Home Goods. Here is its March income statement in the detailed format, with the whole COGS section shown. The figures in this example are fictional.
| Lakeside Home Goods, March | Amount ($) |
|---|---|
| Sales | 72,000 |
| Less: sales returns | 2,000 |
| Net sales | 70,000 |
| Opening inventory | 18,000 |
| Purchases | 46,000 |
| Less: purchase returns | 1,500 |
| Less: purchase discounts | 500 |
| Net purchases | 44,000 |
| Add: freight-in | 2,000 |
| Net cost of purchases | 46,000 |
| Cost of goods available for sale | 64,000 |
| Less: closing inventory | 21,000 |
| Cost of goods sold | 43,000 |
| Gross profit | 27,000 |
| Gross margin (gross profit ÷ net sales) | 38.6% |
Many statements show this section in compressed form, with only one COGS number. Both versions give the same gross profit, so you can often work from the short form without losing anything.
Method 1: read the COGS line directly
If the statement shows a COGS line, you are done. In Lakeside's short-form statement, the lines are:
| Short-form income statement | Amount ($) |
|---|---|
| Net sales | 70,000 |
| Cost of goods sold | 43,000 |
| Gross profit | 27,000 |
Before you trust it, spot-check two things. First, confirm the line is labelled for the right period; a year-to-date statement shows year-to-date COGS, not one month. Second, confirm that net sales less COGS equals the gross profit shown. If that arithmetic does not close, one of the numbers has been mislabelled or a subtotal is missing.
Method 2: calculate COGS from net sales and gross profit
Sometimes you only have the top of the statement, perhaps from a loan application, a management summary or an exported report. If net sales and gross profit are both shown, subtract.
COGS = Net sales − Gross profit
Use net sales (after returns and allowances), not gross sales.
For Lakeside: $70,000 − $27,000 = $43,000.
This is also how you handle the common search question of how to calculate sales revenue with cost of goods sold. The relationship works in both directions: net sales = COGS + gross profit, so $43,000 + $27,000 = $70,000.
What if you only know the gross margin percentage?
When a report gives a margin and not a dollar figure of gross profit, convert it.
COGS = Net sales × (1 − Gross margin %)
Gross margin % = gross profit ÷ net sales.
Lakeside's exact margin is $27,000 ÷ $70,000 = 38.571%. So COGS = $70,000 × (1 − 0.38571) = $43,000. Be careful with rounding. If you use the rounded 38.6% from the table, you get $70,000 × 0.614 = $42,980, which is $20 away from the true figure. For a quick estimate that is fine. For bookkeeping, use the unrounded margin or, better, the dollar amounts.
Also note that gross margin is not markup. A 38.6% margin on selling price corresponds to a markup of about 62.8% on cost ($27,000 ÷ $43,000). If a report quotes markup and you treat it as margin, you will misstate COGS badly. The lesson on markup vs margin walks through the conversion.
Method 3: rebuild COGS from the detailed section
When the statement shows the inventory and purchase lines, you can verify COGS yourself, or find it when the total line is missing. The classic periodic formula is:
COGS = Opening inventory + Net cost of purchases − Closing inventory
Net cost of purchases = purchases − returns − discounts + freight-in.
Step by step for Lakeside, with every intermediate figure:
| Step | Calculation | Result ($) |
|---|---|---|
| 1. Net purchases | 46,000 − 1,500 − 500 | 44,000 |
| 2. Net cost of purchases | 44,000 + 2,000 freight-in | 46,000 |
| 3. Goods available for sale | 18,000 + 46,000 | 64,000 |
| 4. Cost of goods sold | 64,000 − 21,000 | 43,000 |
| 5. Check against gross profit | 70,000 − 43,000 | 27,000 |
Goods available for sale is a useful stepping stone. It is everything you could have sold in the month: stock you started with plus stock you brought in. Whatever is not on the shelf at the end was either sold or lost, and the formula treats all of it as sold.
How each purchase line moves the answer
It helps to see which items raise COGS and which lower it, because mistakes here are common.
- Purchases raise COGS. They add to goods available for sale.
- Freight-in raises COGS. Getting stock to your door is part of what the stock cost you. Freight-out, which delivers goods to customers, is normally a selling expense and is not part of COGS.
- Purchase returns and discounts lower COGS. You gave goods back or paid less.
- Opening inventory raises COGS. It is stock you had available to sell.
- Closing inventory lowers COGS. It is stock you still own.
If you want the full explanation of each component, the lesson on how to calculate cost of goods sold goes through them one at a time, and cost of goods sold explained covers the inventory-costing side.
Method 4: find COGS when the statement groups expenses by nature
Some businesses present expenses by what they are: raw materials, changes in inventory, staff costs, depreciation. There may be no line called COGS. You then reconstruct it from the "changes in inventories" and "purchases" lines.
The logic is the same as the periodic formula. Purchases of goods plus a decrease in inventory (or minus an increase in inventory) is the cost of the goods that were consumed or sold. For Lakeside, inventory rose from $18,000 to $21,000, an increase of $3,000, so:
| Calculation | Result ($) |
|---|---|
| Net cost of purchases | 46,000 |
| Less: increase in inventory (21,000 − 18,000) | 3,000 |
| Cost of goods sold | 43,000 |
An increase in inventory means you bought more than you sold, so not all purchases became cost. A decrease works the other way and adds to cost. Nothing new here; it is the same equation rearranged.
What does not belong in COGS on the income statement?
COGS is narrow on purpose. If you see these lines, they sit below gross profit as operating expenses, and they should not be added into a COGS rebuild:
- Rent of your shop or office.
- Wages of sales staff and administration, unless your policy places direct production labor in COGS.
- Marketing, software subscriptions, bank fees and insurance.
- Freight-out to customers.
Here is Lakeside's statement continued below gross profit, again using fictional figures:
| Below gross profit | Amount ($) |
|---|---|
| Gross profit | 27,000 |
| Rent | 5,000 |
| Wages | 9,000 |
| Utilities | 1,200 |
| Other operating expenses | 2,300 |
| Total operating expenses | 17,500 |
| Operating profit | 9,500 |
Operating profit is $27,000 − $17,500 = $9,500. If someone mistakenly pushed rent into COGS, gross profit would look smaller and operating expenses smaller by the same amount, and operating profit would be unchanged. That is the dangerous part: the bottom line stays right while the gross margin you use for pricing becomes wrong. The lesson on the four layers of profit explains why gross and operating profit answer different questions, and gross margin vs net margin compares the ratios.
Margin checks and the "net sales − gross profit" shortcut only work with net sales. If you start from $72,000 gross sales, COGS comes out as $45,000, which is $2,000 too high. Always subtract sales returns and allowances first.
Sanity checks before you trust the figure
A COGS figure from an income statement can be wrong without looking wrong. Run these quick checks.
- Arithmetic closes. Net sales − COGS = gross profit, to the dollar.
- Margin is plausible for the business. Compare it with last month and with the same month last year. A sudden swing of several points usually points to a missed invoice, a miscount of closing inventory or a returns entry posted in the wrong period.
- Closing inventory agrees with the balance sheet. The closing figure used in COGS must equal the inventory on the balance sheet of the same date. Lakeside's is $21,000 on both.
- Opening inventory agrees with last period's close. March opening of $18,000 should equal February's closing balance.
- No operating expenses in COGS, no COGS in operating expenses. Scan the lines for items that belong on the other side of gross profit.
Under a periodic system, COGS is a calculated figure, so anything missing from the closing count (damage, theft, errors) is automatically counted as cost of goods sold. Under a perpetual system, COGS is posted sale by sale, and shrinkage is usually recorded separately when you count stock. That means the two systems can show a different COGS line for the same business if shrinkage exists. Lesson 5 shows both side by side in the COGS worked example.
What if the statement has no inventory lines at all?
Some businesses, such as consultancies and agencies, report a "cost of sales" made up of direct labor and subcontractor fees. There is no inventory, so there is no opening and closing balance. Read the line directly; the formula is simply net revenue minus cost of sales equals gross profit. The retail-style rebuild above only applies to businesses that hold stock. For how COGS changes by business model, see COGS by business type.
Where the numbers come from, and the next step
An income statement reports COGS; it does not create it. The figure is the output of your inventory records and ledger. If you also want to see how the same number is found from raw ledger balances, the next lesson shows how to calculate COGS from a trial balance. And if you need the journal entries behind each purchase and sale, start with inventory accounting journal entries.
Reyuko uses a perpetual system. Each sales invoice posts revenue, the receivable and tax, and also Dr COGS / Cr Inventory (or Cr GSNI when a Delivery Order has already moved the stock). The cost used is set per product: Average, FIFO, LIFO or FEFO. Stock adjustments and stock-take shortages post Dr Inventory shrinkage expense / Cr Inventory, so they show separately from COGS. Because the income statement is drawn from the same ledger, the COGS line you read there is the sum of those postings.
Reyuko