Cost of revenue
In accounting, cost of revenue means the direct costs of producing the goods or delivering the services sold in the period — the line gross profit is measured after.
Also called COGS.
The costs of delivering what customers pay for.
For SaaS: hosting, embedded software, processing fees, support.
Revenue less these costs is gross profit.
Authority: Reg S-X 5-03 (opens in a new tab). Sources
A real example, booked
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.
The full explainerMistakes people make
What goes wrong in a real set of books, and what an accountant reviewing them catches.
Leaving all hosting in operating expenses, which flatters gross margin until diligence moves it.
Putting engineering time spent building new features into cost of revenue.
Changing the split from month to month, so gross margin moves for no business reason.
The lessons that teach this
From the free founder back-office course, taught on one company's books, with exercises to work it yourself.
- Recording the monthFourteen things happened to Northwind in September. Here is each one as an entry, with the reasoning behind it.12 min
- The income statementTwo of the five account types, laid out so each subtotal answers a different question about how the month went.10 min
- 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.10 min
- 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.10 min
- Budget vs actual › The flexed budgetNorthwind's cost of revenue against a budget restated at the revenue actually earned: a favorable total hiding an unfavorable cost per sale.5 min
Cost of revenue, in use
Quoted from the 2 documents that use the word: what it does to an interface, in the spec's own words.
Revenue → COGS → Gross profit → Operating expenses → Operating income → Other → Net income.
If the chart of accounts has no COGS, the component omits the gross profit subtotal rather than showing a gross margin equal to revenue, which is a lie by omission.
For founders
The same idea written for a founder: what it costs a startup that ignores it, and what to do in a real month.
- Cost of revenueThe 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.
- 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.
- 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.
- 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.
More worked entries
Worked journal entries that use the term, each computed and proved to balance.
- Inventory write-downWhen inventory's net realizable value falls below its cost, debit an inventory write-down expense (often within cost of goods sold) and credit Inventory for the difference.
- Sale on accountFor a sale on credit, debit Accounts receivable and credit Revenue for the price; under a perpetual inventory system also debit Cost of goods sold and credit Inventory for what the goods cost. When the customer pays, debit Cash and credit Accounts receivable.
- Inventory purchaseWhen inventory is bought on credit under a perpetual system, debit Inventory and credit Accounts payable. If an early-payment discount is taken, debit Accounts payable for the full bill, credit Cash for what is paid and credit Inventory for the discount.
What it is not called
Each of these means something else. Use one here and an accountant reading the product notices.
- expenses unqualified
- opex
Components that render this
These components name it in their spec, grouped and labeled exactly as the catalog shows them.
Components that render the terms it depends on
Few components name this concept outright, but it's built from terms they do name. These render revenue, period.
4Swaps & FX
Family spec5Ledger & tables
Family spec- PeriodPickerFiscal-aware. Never assumes January.
- FluxAnalysisPeriod-over-period explanations.
- ReportHeaderEntity, statement, period, basis, currency, as-of. Every figure states its basis.
- StatementTableThe shared shell: hierarchy, periods, rules.
- StatementToolbarBasis, period, comparison, currency, consolidation.
9Accounting core (GL)
Family spec11Payables (AP)
Family spec12Close, controls & consolidation
Family spec13Metrics & analysis
Family specAlso in Statements
Work with this concept
The calculators that compute it and the ledger payloads that carry it.
- Journal entry for a sale on accountFor a sale on credit, debit Accounts receivable and credit Revenue for the price; under a perpetual inventory system also debit Cost of goods sold and credit Inventory for what the goods cost. When the customer pays, debit Cash and credit Accounts receivable.
- Journal entry for an inventory purchaseWhen inventory is bought on credit under a perpetual system, debit Inventory and credit Accounts payable. If an early-payment discount is taken, debit Accounts payable for the full bill, credit Cash for what is paid and credit Inventory for the discount.
- Journal entry for an inventory write-downWhen inventory's net realizable value falls below its cost, debit an inventory write-down expense (often within cost of goods sold) and credit Inventory for the difference.
Defined in Lexicon. This page is generated from that document, so the two can't disagree.