What it means
Cost of revenue is what it costs to deliver the product or service customers pay for. Companies that sell physical goods call it cost of goods sold, or COGS. For a software company, it's the cost of keeping the service running for paying customers and supporting them while they use it.
For SaaS that usually means hosting for the live product, third-party software built into the product, payment processing fees and the customer support team. Engineers building new features usually sit in research and development, and sales and marketing stay in operating expenses.
GAAP doesn't hand you a list for SaaS. It's a policy you write down and apply the same way every month, so that a change in gross margin reflects a change in the business. On the P&L, revenue minus cost of revenue is gross profit, and operating expenses come below it.
Acme's reclass leaves the net loss exactly where it was. On $100,000 of monthly revenue, though, it takes 9 points off gross margin, and gross margin is the number investors ask about first.
Gross margin is computed straight from this line, which is why diligence teams test the split. Hosting parked in operating expenses is the item they move back most often.
Why it matters. Gross margin is revenue less cost of revenue, and investors value a business partly on it. Put hosting in operating expenses and your gross margin looks better than it is, until diligence moves it back.
The entry, worked
Acme's payroll tool booked $9,000 of March support-team salaries to general and administrative salaries. Acme's policy puts customer support in cost of revenue.
| Account | Debit | Credit |
|---|---|---|
| Cost of revenue: support salaries | $9,000.00 | |
| G&A salaries | $9,000.00 | |
| Total | $9,000.00 | $9,000.00 |
Total expenses don't change; gross profit falls by $9,000 and operating expenses fall by the same amount.
Common questions
Does GAAP say exactly what goes in cost of revenue for SaaS?
No. It's a classification you decide and apply consistently. Investors compare against common practice, so a written policy that follows it saves an argument later.
Do development and staging environments count as hosting in cost of revenue?
Usually not. Infrastructure that serves paying customers goes to cost of revenue; environments used to build the product generally sit in research and development.
Does amortization of capitalized software go in cost of revenue?
Often, yes. Amortization of capitalized software that delivers the hosted service is commonly shown in cost of revenue; amortization of internal tools usually isn't. Pick one policy and disclose it.
Where it comes up
The glossary entries, founder guides and lessons on this site that use the term and link here.
- Cost of revenueThe direct costs of producing the goods or delivering the services sold in the period — the line gross profit is measured afterGlossary
- How to reconcile Stripe payouts to your booksA Stripe payout is charges less fees, refunds and disputes, batched across days. How to book it gross, tie it to the bank, and keep revenue right.Guide · 3 min
- How to read an income statement (P&L)Revenue, cost of revenue, gross margin, operating expenses and net income, read line by line, on accrual basis, with the mistakes founders make most.Guide · 6 min
- Chart of accounts for startups: a starting templateA starting chart of accounts for a US startup: number ranges, the expense accounts you need, and when to add an account versus a class or tracking tag.Guide · 6 min
- The income statementTwo of the five account types, laid out so each subtotal answers a different question about how the month went.Accounting · Lesson 10
- Recording the monthFourteen things happened to Northwind in September. Here is each one as an entry, with the reasoning behind it.Accounting · Lesson 5
- Closing the monthThe close proves every balance against something outside the ledger, then locks the period so the numbers can't change after sign-off.Accounting · Lesson 13
- Inventory and cost of goods soldOctober's drills, costed FIFO and by weighted average, counted against the record, and written down to what they will sell for.Accounting · Lesson 17
- Default alive or default deadWhether Northwind reaches profit on the cash it has: alive as it stands, and a hiring decision that turns on one growth rate.Finance · Lesson 2
- Budget vs actualSeptember against the budget the founders wrote in August: favorable and unfavorable by polarity, a flexed cost of revenue, and the three lines that were the budget's own mistakes.Finance · Lesson 4
- What accounts payable is: procure to payAccounts payable is what a company owes its vendors for bills received. Here it is on Northwind's first bill, from purchase order to payment.AP · Lesson 1
- AP aging and days payable outstandingNorthwind's AP aging at September 30, why it must tie to the balance sheet, and its DPO of 10.6 days read with care.AP · Lesson 7
Read further
Your whole VC tech stack, with one partner.
Lopifi is a tech stack partner for venture funds. The website comes first, quoted for your fund.
General information, not tax, legal or accounting advice. Check with a CPA before you act on it.