What it means
Cost of revenue answers a simple question: what did it cost us to actually supply the sales we booked? It sweeps in materials, the wages of the people who build or deliver the product, freight, and any third-party fees triggered by a sale.
Costs that would continue whether or not you sold anything, such as the finance team's salaries or the office lease, sit outside it. The distinction matters because gross profit is the first honest signal of whether a business model works.
If cost of revenue absorbs 80 cents of every dollar of sales, no amount of discipline further down the income statement will rescue the company. Investors and lenders usually look at this line before they look at anything else.
Service and software companies tend to report cost of revenue rather than cost of goods sold, because their direct costs are not really goods. For a subscription business the line typically holds cloud hosting, customer support, implementation staff, payment processing fees and any licences resold to customers.
Where the line gets drawn is a genuine judgement call, and companies differ. Some put an entire support function into cost of revenue while others split it between cost of revenue and operating expenses, which makes cross-company gross margin comparisons less reliable than they appear.
Read the accounting notes before you compare two firms' margins. One further nuance is that cost of revenue should move roughly in step with revenue.
If sales grow 40% while cost of revenue grows 65%, something in delivery is getting more expensive per unit, and that is worth investigating before the next pricing round.
In practice
Real-world examples.
Example
A meal-kit delivery company reports revenue of $30,000,000 and cost of revenue of $19,500,000, giving a 35% gross margin. Ingredients, packing labour and refrigerated courier fees all sit in that line, while marketing and head office do not. When courier rates rise, the finance team can show the board exactly how many margin points are at stake.
Example
A managed IT services firm bills clients a monthly retainer. Its cost of revenue holds the salaries of the engineers assigned to client accounts plus the hardware and licences it buys on their behalf, but not the sales team or the recruitment budget. Splitting it that way reveals that one client contract runs at a 12% gross margin while the average is 41%.
Example
A furniture manufacturer moving into direct-to-consumer sales finds its gross margin falling even as revenue climbs. Adding last-mile delivery and returns handling into cost of revenue explains the drop, and the company responds by raising the free-delivery threshold rather than cutting the product spec.
Formula
Calculation
Cost of Revenue = direct materials + direct labour + delivery and fulfilment costs + third-party costs tied directly to sales.
Take a subscription software business with annual revenue of $5,000,000. Its direct costs are cloud hosting of $600,000, customer support salaries of $450,000, third-party licence fees of $250,000, payment processing fees of $150,000 and an implementation team costing $350,000.
Cost of revenue = $600,000 + $450,000 + $250,000 + $150,000 + $350,000 = $1,800,000.
Gross profit = $5,000,000 - $1,800,000 = $3,200,000.
Gross margin = $3,200,000 / $5,000,000 = 64%.
If hosting costs then rise to $900,000 while everything else holds, cost of revenue becomes $2,100,000, gross profit falls to $2,900,000 and the gross margin drops to 58%.Case study
Seen in the real world.
Kettleford Analytics is a fictional data-tools company used purely as an illustrative example. It reported revenue of $8,000,000 and cost of revenue of $3,600,000, a gross margin of 55%, and its board was comfortable because comparable listed businesses reported margins in the same range.
During diligence for a funding round, an adviser noticed that the twelve-person onboarding team, whose work exists only because customers buy the product, had been recorded inside operating expenses. Moving that $700,000 of salary into cost of revenue lifted the line to $4,300,000 and cut the reported gross margin to 46.25%. Nothing about the business had changed; only the classification had.
The illustrative point is uncomfortable but useful. Kettleford's real unit economics had always been weaker than its slide deck implied, and once the gross margin was restated the management team redesigned onboarding into a lighter, partly self-serve process rather than continuing to grow a cost that scaled one-for-one with new customers.
Watch out
Common mistakes.
- Using cost of revenue and cost of goods sold interchangeably in all situations. Cost of goods sold is the narrower physical-product concept, while cost of revenue also captures service delivery and distribution costs.
- Parking delivery-related salaries in operating expenses to flatter the gross margin. It inflates a headline number that sophisticated readers will recalculate anyway, and it hides the true cost of serving each customer.
- Assuming cost of revenue is entirely variable. Hosting commitments, minimum support staffing and contracted freight capacity all carry a fixed element that does not fall when sales dip.
Questions
People also ask.
What is the difference between cost of revenue and operating expenses?
Cost of revenue rises and falls with what you sell, while operating expenses such as rent, marketing and administration continue largely unchanged whether sales go up or down.
Does depreciation belong in cost of revenue?
It does when the asset is used directly in production or delivery, such as factory machinery or servers, and it belongs in operating expenses when the asset supports the wider business.
Why do two companies in the same sector report very different gross margins?
Often because they draw the line in different places, so always read the accounting policy note before treating a margin comparison as meaningful.
From the founder's library

Take it further with the book.
Build your financial confidence beyond this definition. Shihan's full-length guide, Accounting Fundamentals, takes the same plain-English approach and turns it into a complete, practical playbook for non-finance managers, business owners and students - with chapter-end quiz answers and presentation slides included.
25% off with code MMHQ25, applied at checkout. Priced in USD - checkout may show the equivalent in your local currency.
View the book and save 25%