Module 07 · Inventory Accounting and COGS in Practice

How to Calculate Cost of Goods Sold From an Income Statement

Find cost of goods sold on an income statement, or work it out from net sales and gross profit, with a full March example, formulas and checks to run.

11 min readLesson 2 of 10 in this moduleUpdated 2026-11-09

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:

  1. Sales (revenue), less returns and allowances, gives net sales.
  2. Cost of goods sold, also labelled cost of sales or cost of revenue.
  3. Gross profit, which is net sales minus cost of goods sold.
  4. Operating expenses (rent, wages, utilities, marketing).
  5. 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, MarchAmount ($)
Sales72,000
Less: sales returns2,000
Net sales70,000
Opening inventory18,000
Purchases46,000
Less: purchase returns1,500
Less: purchase discounts500
Net purchases44,000
Add: freight-in2,000
Net cost of purchases46,000
Cost of goods available for sale64,000
Less: closing inventory21,000
Cost of goods sold43,000
Gross profit27,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 statementAmount ($)
Net sales70,000
Cost of goods sold43,000
Gross profit27,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:

StepCalculationResult ($)
1. Net purchases46,000 − 1,500 − 50044,000
2. Net cost of purchases44,000 + 2,000 freight-in46,000
3. Goods available for sale18,000 + 46,00064,000
4. Cost of goods sold64,000 − 21,00043,000
5. Check against gross profit70,000 − 43,00027,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:

CalculationResult ($)
Net cost of purchases46,000
Less: increase in inventory (21,000 − 18,000)3,000
Cost of goods sold43,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 profitAmount ($)
Gross profit27,000
Rent5,000
Wages9,000
Utilities1,200
Other operating expenses2,300
Total operating expenses17,500
Operating profit9,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.

Do not use gross sales

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.

  1. Arithmetic closes. Net sales − COGS = gross profit, to the dollar.
  2. 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.
  3. 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.
  4. Opening inventory agrees with last period's close. March opening of $18,000 should equal February's closing balance.
  5. No operating expenses in COGS, no COGS in operating expenses. Scan the lines for items that belong on the other side of gross profit.
Periodic versus perpetual statements

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.

How Reyuko produces the COGS line

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.

Frequently asked questions

How do I calculate cost of goods sold from an income statement?

Look for a line labelled cost of goods sold, cost of sales or cost of revenue. If it is missing but you know net sales and gross profit, subtract gross profit from net sales. For example, net sales of $70,000 less gross profit of $27,000 gives COGS of $43,000. If the statement shows inventory and purchase lines instead, add opening inventory and net purchases (with freight-in), then subtract closing inventory.

Where is cost of sales on the income statement?

Cost of sales sits directly below net sales (revenue) and above gross profit. It is the first expense deducted, because it represents the direct cost of the goods or services sold. Operating expenses such as rent, wages and marketing come after gross profit. If your statement lists expenses by nature rather than function, you may need to rebuild cost of sales from purchases and the change in inventory.

Can I work out COGS if I only know the gross margin percentage?

Yes. Multiply net sales by one minus the gross margin. With net sales of $70,000 and a margin of 38.571%, COGS is $70,000 × 0.61429, or $43,000. Rounding the margin to 38.6% gives $42,980, so use the unrounded margin or the dollar amounts when accuracy matters. Do not confuse margin with markup, which is calculated on cost, not on selling price.

How do I calculate sales revenue from cost of goods sold?

Add gross profit to COGS. Net sales equal COGS plus gross profit, so $43,000 plus $27,000 gives $70,000. If you know COGS and the gross margin instead, divide COGS by one minus the margin: $43,000 divided by 0.61429 equals $70,000. If you want gross sales before returns, add sales returns back, which here makes $72,000.

Is freight included in cost of goods sold?

Freight you pay to bring inventory to your business (freight-in) is part of the cost of the stock, so it increases COGS once the goods are sold. Freight you pay to deliver goods to customers (freight-out) is normally a selling expense and appears below gross profit. Local accounting rules and your own policy can affect how you classify it, so check what applies to you.

Why does my income statement COGS not match my purchases?

COGS reflects what you sold, not what you bought. Purchases are adjusted for returns, discounts and freight-in, and then for the change in inventory. If you bought $46,000 of stock but inventory rose by $3,000, only $43,000 became cost of goods sold. A mismatch is normal; it only signals a problem if the inventory movement does not explain it.

Put this into practice in Reyuko

Reyuko posts inventory, cost of goods sold and gross profit from the same ledger, so the numbers in this lesson are the numbers on your reports.

Download Reyuko freeSee what's included