The direct costs of producing and delivering your product or service, subtracted from revenue to calculate gross profit.
Gross Profit = Revenue - COGS
Gross Margin % = (Revenue - COGS) รท Revenue ร 100
Cost of Goods Sold (COGS) represents the direct costs of producing and delivering your product or service. For SaaS companies, this typically includes hosting, third-party software, and customer support costs.
COGS is subtracted from revenue to calculate gross profit. It excludes operating expenses like sales, marketing, and R&D, which come out of gross profit.
Cloud infrastructure (AWS, GCP, Azure). Third-party software and APIs integrated into the product. Customer support and success teams directly serving customers. DevOps and site reliability engineering. Payment processing fees.
COGS directly determines your gross margin, which is a key indicator of business model quality. High COGS means low margins and less money for growth. Optimizing COGS improves profitability without cutting investment.
For ecommerce, COGS includes product cost, shipping, packaging, and fulfillment. Margins are much tighter than SaaS, making COGS optimization critical for profitability.
SaaS COGS breakdown:
Total COGS = $112,000
If revenue is $500,000:
Gross Profit = $388,000
Gross Margin = 77.6%
Explore other financial terms and metrics
Get complete financial clarity in under 10 minutes. No more broken spreadsheets, no more QuickBooks chaosโjust the insights you need to scale with confidence.