Financial Statements

Cost of Goods Sold (COGS)

The direct costs attributable to delivering your product or service — for SaaS, this typically includes hosting, infrastructure, and payment processing.

RunwayCal P&L view showing COGS separated from operating expenses

What is Cost of Goods Sold (COGS)?

COGS (Cost of Goods Sold) represents the direct costs of delivering your product to customers. For a physical product company, COGS includes raw materials, manufacturing, and shipping. For a SaaS company, COGS includes hosting/cloud infrastructure, payment processing fees, and direct customer support.

COGS is subtracted from revenue to calculate gross profit, which is why it's important to categorize correctly. Including too many costs in COGS deflates your gross margin; including too few inflates it.

The key test for whether a cost is COGS: would this cost go away if you had zero customers? If yes, it's likely COGS. If no (like engineering salaries or office rent), it's an operating expense.

Why it matters

COGS determines your gross margin, which determines the fundamental economics of your business. If COGS is 50% of revenue, you only have 50 cents per dollar to cover everything else — and that's a challenging business to scale.

For SaaS companies, keeping COGS low (meaning high gross margins) is a core advantage. As you scale, COGS should grow slower than revenue because of the inherent leverage in software delivery.

Formula

COGS = Direct costs of delivering the product/service
Gross Profit = Revenue - COGS

Example

Your SaaS company has $50,000 in monthly revenue. COGS: AWS hosting $3,000, Stripe processing fees $1,500, customer support team member $5,000. Total COGS = $9,500. Gross profit = $40,500. Gross margin = 81%.

How RunwayCal helps

RunwayCal lets you categorize expenses so COGS items are separated from operating expenses. This separation feeds into the P&L statement and gross margin calculation on the Financial Statements page.

Learn more about the product →

Common mistakes

  • 1Including R&D or engineering salaries in COGS (these are operating expenses for software companies)
  • 2Not accounting for infrastructure costs that scale with customers (like bandwidth or API calls)
  • 3Classifying sales commissions as COGS instead of sales expense

Separate direct costs from operating expenses

RunwayCal helps you categorize costs correctly so your gross margin and P&L reflect the true economics of your business.

Track your financials → Start free