What Is Cost of Sales? Formula, Examples and Tax Tips
Learn what is cost of sales, how to calculate it with worked examples, how it differs from COGS and operating expenses, and how it affects tax and profit.

You bought 100 mugs for $1,000 and sold 60 of them this month. The money is gone from your account, the sales are in, and somewhere between those two facts sits the number your accountant will ask for: what is cost of sales for the period?
The tempting answer is 600, because only 60 mugs left the shop. The other 40 are still yours, still worth something, waiting for a customer.
That gap between what you paid and what you sold is where most owners get stuck. Cost of sales isn't a record of spending. It's a classification decision about which costs belong against this period's revenue, and the same purchase can land in different places depending on your business model and when the stock moves.
Cost of Sales Explained in Plain Terms
Start with the mugs. You pay 1,000 leaves your account**. Sixty sell in the month. Those 60 carry **400 sits on the balance sheet as inventory. It isn't a loss, and it isn't an expense yet.

Here's the definition worth memorizing, because every complication later is a variation on it:
That wording follows how IAS 2, the international standard on inventories, frames the question. The standard groups inventory cost into three buckets: purchase costs, conversion costs such as direct labor and production overhead, and other costs needed to bring the goods to their present location and condition.
The bakery version
Flour bought in January for loaves still on the shelf in February is an asset. The flour baked into a loaf that leaves the shop on Saturday morning becomes an expense the moment that sale is recorded. Same sack of flour, different accounting, decided entirely by whether a customer took it home.
Recording the cost in the same period as the revenue is what accountants call the matching principle. It stops a business from booking a huge expense in the month it restocks and showing a fake loss, then a fake profit burst when the stock finally sells. Gross profit only means something when both halves of the trade sit in the same period.
What belongs in it, and what doesn't
Advertising, office rent, insurance and general administration are operating expenses, not cost of sales. They keep the lights on, but they aren't tied to producing a specific sale. The line between the two is what tells you how much of each sales dollar was consumed by making what you sold.
One more rule from the same standard: inventory is measured at the lower of cost and net realizable value. If those 40 mugs get chipped, or the design falls out of fashion, the recorded value drops and the difference is expensed immediately rather than carried forward.
Cost of Sales Compared with Related Terms
A retailer calls it cost of sales. A US retailer files it as cost of goods sold. A consultancy books the same idea under cost of revenue. Three names, one test.
Cost of sales and cost of goods sold (COGS) are the same expense. COGS dominates American reporting and tax forms, while cost of sales appears more often in international filings and in businesses that sell work rather than objects. Nothing else separates them.
Cost of revenue stretches the idea to service businesses. Bill a client for a project and pay a subcontractor to help deliver it, and that fee is a direct cost of earning that revenue.
Operating expenses sit on the other side of gross profit. Rent, design software, marketing, admin salaries and insurance land here because they'd be paid whether or not any single sale happened.
Term | What it includes | Position on income statement | Example |
Cost of sales | Directly attributable costs of goods sold or delivered | Above gross profit | Inventory sold to a customer |
Cost of goods sold (COGS) | Same concept, the usual term in US reporting | Above gross profit | Same items as cost of sales |
Cost of revenue | Direct costs of delivering services | Above gross profit | Contractor hours billed to a client |
Operating expenses | Overhead not tied to delivering each sale | Below gross profit | Rent, software, marketing, admin salaries |
A classification case with real numbers
Say a freelance designer bills a client 1,800 to handle the illustration work on that project only, and she pays $600 a month for design software she uses across all clients.
The subcontractor fee is cost of revenue. Without that sale, the fee wouldn't exist. The software is an operating expense, because it gets paid in a month with no projects at all. Move the software into cost of sales by mistake and her gross margin looks worse than it is, while her overhead looks better.
The one-question test handles every borderline case: would this cost exist if this specific sale had not happened? If yes, it's overhead. If no, it belongs above gross profit.
Tax guidance makes the same point from the other direction. The IRS discussion of cost of goods sold and the tax gap treats the classification as a function of your revenue model and accounting policy rather than of money being spent. A consultant's airfare to a client site may be reimbursable and still not be a direct cost of the engagement, while a contractor hired for one engagement is.
Keeping this in a management schedule, not delayed summaries means you see the margin while the month is still open, rather than discovering the classification problem at year end.
Why Inventory Timing and Method Change Cost of Sales
A shop spends **30,000 of cost of sales. The purchase adds goods to inventory; cost of sales follows the goods that were sold. If the shop buys heavily and sells little, its cash balance falls while cost of sales remains lower. If it sells older stock during a month with few purchases, cost of sales can rise.
The costing method determines which unit costs are assigned to the units sold. Suppose a shop buys 100 units at 14 each. It sells 100 units and records $2,000 in revenue.
Under FIFO, the oldest costs are assigned first, giving 1,000 in gross profit. Under weighted average, the blended unit cost is 1,200 and gross profit is 1,400 and gross profit is 1,000 versus 400 difference is an allocation effect, not additional cash paid to suppliers.
Costing method | Cost of sales for 100 units | Gross profit on $2,000 revenue |
FIFO | $1,000 | $1,000 |
Weighted average | $1,200 | $800 |
LIFO | $1,400 | $600 |
The methods can produce different reported profits from identical purchases and sales because they assign different costs to the goods sold. Which methods a business may use depends on its reporting framework, so avoid assuming that every method is permitted in every case.
Three habits that keep this clean
- Write the method down: Record the costing method used and where it applies before the first stock count of the year. Clear documentation helps everyone apply it consistently.
- Apply it the same way every period: Changing methods to improve a margin figure makes periods harder to compare and adds work at tax time.
- Keep inventory purchases separate from other costs: Travel, mileage, meals, and subcontractor costs may belong elsewhere. Mixing them with stock purchases can distort cost of sales and gross margin.
If the main issue is excess stock, focus on ways to reduce inventory holding costs. The costing method determines how recorded inventory costs are allocated, while the amount of stock held is a separate business decision.
A receipt proves that a purchase happened, when it happened, and how much it cost. It does not prove the item was sold. The stock count helps establish what remains in inventory and, by extension, what has left it.
The Cost of Sales Formula with Worked Examples
Every version of this calculation, from a corner shop to a factory, reduces to one line:
Cost of sales = opening inventory + purchases or production costs − closing inventory
The IAS 2 summary of the periodic reconciliation states the same relationship in the standard's own terms for a product business. Opening inventory is last period's closing count. Purchases or production costs are what you added during the period. Closing inventory is what's still on hand, valued on your chosen method.

Business type | Opening inventory | Purchases or production cost | Closing inventory | Cost of sales |
Retail shop | $8,000 | $20,000 | $6,000 | $22,000 |
Wholesale distributor | $15,000 | $45,000 | $18,000 | $42,000 |
Small manufacturer (finished goods) | $5,000 | $20,000 | $7,000 | $18,000 |
For the manufacturer, that 10,000 of direct materials, 4,000 of allocated production overhead**. Labour and overhead are conversion costs, and they belong in inventory until the finished goods sell.
From cost of sales to gross margin
Take the retail shop. Say it rang up **22,000 of cost of sales. Gross profit is $18,000, and gross margin is 45 percent. That 45 percent is the money available to cover rent, wages, marketing and everything else before the shop makes a cent of profit.
Now walk the same numbers yourself, in this order.
- Confirm the opening inventory value from last period's closing count, not from memory or from the bank balance.
- Total purchases or production costs for the period, including only items directly attributable to the goods you sell.
- Count and value closing inventory using the method you settled on, at the lower of cost and net realizable value.
- Subtract closing inventory from the sum of opening inventory and purchases.
- Subtract the result from revenue to get gross profit, then divide by revenue for the margin.
The last step most owners skip is the reconciliation. Match the purchases figure to supplier invoices and match the closing figure to a physical count. If either side disagrees, you find out before the period closes rather than after the tax return is filed. For a second cost of sales calculation walkthrough with a different set of inputs, it helps to see the same five steps applied to someone else's books.
Tax and Reporting Rules for Cost of Sales
On a tax return the figure usually appears as cost of goods sold, and it does real work: it reduces taxable income. Get it wrong in either direction and you either overpay tax or invite questions.
For US filers, the IRS guidance in Publication 334 sets out the baseline. A small business that keeps inventory generally must use an accrual accounting method and value inventory at the beginning and end of each tax year to determine cost of goods sold on Schedule C. The same publication allows several identification approaches, including specific identification when actual costs can be matched to individual items, and FIFO or LIFO when identical goods are intermingled and can't be individually traced. Under FIFO, the earliest costs are assigned to the items sold, consumed or disposed of first.
The year-end checklist
- Keep dated purchase invoices for every inventory item, filed by supplier, so each line in the purchases total can be traced back to a document.
- Count stock at year end and value it on your chosen method, with the count sheets signed and dated.
- Record returns, supplier credits and personal withdrawals from stock. Owner drawings from inventory are not cost of sales.
- Keep the valuation method on file and apply it identically each year, so comparability survives staff changes and software migrations.
Rules differ by country and by taxpayer size, and the small-business simplifications available in one jurisdiction don't exist in another. Treat a method change as a decision to confirm locally or with an accountant before you file, not as a switch you flip to improve a number.
Services businesses without stock usually don't report a cost of goods sold line at all. Their direct delivery costs sit as cost of revenue or as ordinary expenses, which is why a consultant comparing their margin to a retailer's is comparing two different calculations.
Gross Profit and Other Metrics Built on Cost of Sales
Every margin conversation rests on two lines. Gross profit equals revenue minus cost of sales. Gross margin equals gross profit divided by revenue. Everything else in this territory is one of those two with a different input.

The scale can be startling. A quarterly filing with the U.S. Securities and Exchange Commission reported cost of sales of 9.273 million for the three months ended October 31, 2022. Those two figures put revenue near $220.277 million and gross margin around 4.2 percent, meaning roughly 95.8 cents of every revenue dollar was absorbed by cost of sales before selling, general and administrative expenses came into it.
The same filing shows how fragile the number is. A classification change moved $2.063 million of shipping costs out of selling, general and administrative expense and into cost of sales, cutting reported gross profit by exactly that amount while total spending and cash paid were untouched. Nothing about the business changed. Only the label did.
Metric | Formula | What it shows |
Gross profit | Revenue minus cost of sales | Money left to cover operating expenses and profit |
Gross margin | Gross profit divided by revenue | Share of each sales dollar kept after direct costs |
Inventory turnover | Cost of sales divided by average inventory | How often stock sells through in a period |
Days inventory outstanding | Days in period divided by inventory turnover | Average number of days stock sits before it sells |
Cost of sales ratio | Cost of sales divided by revenue | Share of each sales dollar spent on direct costs |
Those ratios turn a static figure into a trend. If you want to see how stock movement feeds them, this inventory turnover ratio calculator runs the arithmetic for you.
Track gross margin month to month rather than quarter to quarter, because a single reclassification inside a quarter can hide a real movement in pricing or supplier costs. When the number shifts by more than a couple of points, ask the classification question first and the performance question second.
Track and Reduce Cost of Sales Every Month
A supplier invoice records what you bought, not necessarily what you sold. At month end, separating unsold stock from items already sold keeps cost of sales tied to the right period. A steady routine also makes missing receipts and unusual changes easier to spot.

The month-end routine
- Gather supplier receipts and invoices for the month, and tag each with the product line or project it supports.
- Fill gaps in past expenses by importing a CSV file or bank statement, so the records cover the full period.
- Count closing stock for your main product lines and value it using your chosen inventory method.
- Reconcile purchases against receipts and sales. Items bought but not yet sold generally remain in inventory rather than becoming this month's cost of sales.
- Compare gross margin with last month. Check whether a change reflects selling prices or supplier costs, or whether a purchase has been classified differently.
A full count may take too much time if you carry many product lines. ABC classification of inventory can help you prioritize which lines to count closely and which to review less often. Keep the classification consistent, so a change in the numbers reflects stock or costs rather than a shifting process.
Where the money leaks
- Review your largest purchase lines. A modest saving on a major input can matter more than a steep cut on a minor one.
- Order smaller quantities more often for perishable or fast-changing stock to reduce spoilage and items that no longer sell.
- Bundle deliveries where possible to lower freight costs allocated to each item sold.
- Discount slow movers early if that helps sell them before they lose more value.
Smart Receipts can support receipt collection and expense reporting. Snap a receipt, and the app reads and files its details. Bookkeepers and small business owners can collect everyone's expenses at month end, while bookkeepers can bring a team into one account, categorize expenses, and export reports. Past expenses can also be imported from a CSV file or bank statement.
Cost of sales depends on both complete records and the decision about when a purchase becomes an expense. Keeping supplier receipts organized helps the bookkeeper trace that decision and reconcile the month's figures. Smart Receipts reports export as PDF or CSV files for bookkeeping, reimbursement, and tax filing. Visit Smart Receipts to start collecting every supplier receipt into one account, so your next cost of sales calculation takes an hour instead of a weekend.