---
title: "Cost of revenue, explained"
description: "The costs of delivering what you sold. For a SaaS company that's usually hosting, third-party software inside the product, payment processing and customer support."
canonical: "https://lopifi.com/accounting/cost-of-revenue"
---

# Cost of revenue, explained

> The costs of delivering what you sold. For a SaaS company that's usually hosting, third-party software inside the product, payment processing and customer support.

Source: https://lopifi.com/accounting/cost-of-revenue
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Section:** Controls & close
- **Reference:** Convention
- **Mentioned in:** 12 pages

## 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.

**Moving support salaries into cost of revenue** — Balanced

| 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 revenue](https://lopifi.com/md/glossary/cost-of-revenue) (Glossary): The direct costs of producing the goods or delivering the services sold in the period — the line gross profit is measured after
- [How to reconcile Stripe payouts to your books](https://lopifi.com/md/startups/reconcile-stripe-payouts) (Guide · 3 min): A 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.
- [How to read an income statement (P&L)](https://lopifi.com/md/startups/how-to-read-an-income-statement) (Guide · 6 min): Revenue, cost of revenue, gross margin, operating expenses and net income, read line by line, on accrual basis, with the mistakes founders make most.
- [Chart of accounts for startups: a starting template](https://lopifi.com/md/startups/chart-of-accounts-for-startups) (Guide · 6 min): A 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.
- [The income statement](https://lopifi.com/md/learn/the-income-statement) (Accounting · Lesson 10): Two of the five account types, laid out so each subtotal answers a different question about how the month went.
- [Recording the month](https://lopifi.com/md/learn/recording-the-month) (Accounting · Lesson 5): Fourteen things happened to Northwind in September. Here is each one as an entry, with the reasoning behind it.
- [Closing the month](https://lopifi.com/md/learn/closing-the-month) (Accounting · Lesson 13): The close proves every balance against something outside the ledger, then locks the period so the numbers can't change after sign-off.
- [Inventory and cost of goods sold](https://lopifi.com/md/learn/inventory-and-cost-of-goods-sold) (Accounting · Lesson 17): October's drills, costed FIFO and by weighted average, counted against the record, and written down to what they will sell for.
- [Default alive or default dead](https://lopifi.com/md/learn/default-alive-or-default-dead) (Finance · Lesson 2): Whether Northwind reaches profit on the cash it has: alive as it stands, and a hiring decision that turns on one growth rate.
- [Budget vs actual](https://lopifi.com/md/learn/budget-vs-actual-variance-analysis) (Finance · Lesson 4): September 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.
- [What accounts payable is: procure to pay](https://lopifi.com/md/learn/what-is-accounts-payable) (AP · Lesson 1): Accounts 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 aging and days payable outstanding](https://lopifi.com/md/learn/ap-aging-and-days-payable-outstanding) (AP · Lesson 7): Northwind's AP aging at September 30, why it must tie to the balance sheet, and its DPO of 10.6 days read with care.

## Read further

- [Gross margin](https://lopifi.com/md/accounting/gross-margin) (Related · Finance · Metric)
- [Income statement](https://lopifi.com/md/accounting/p-and-l) (Related · US GAAP · ASC 220)
- [Chart of accounts](https://lopifi.com/md/accounting/chart-of-accounts) (Related · Convention)

- **Previous:** [Trial balance](https://lopifi.com/md/accounting/trial-balance)
- **Next:** [Cutoff](https://lopifi.com/md/accounting/cutoff)

*General information, not tax, legal or accounting advice. Check with a CPA before you act on it.*
