Gross Margin
What is gross margin in software?
Gross margin is the percentage of software revenue left after direct delivery costs. It measures delivery efficiency before product development, marketing, and administration.
Direct costs can include cloud hosting, AI model usage, payment processing, and customer support.
Gross margin formula and a SaaS example
Subtract cost of revenue from revenue, then divide gross profit by revenue and multiply by 100.
- Subtract cost of revenue from subscription revenue to find gross profit.
- Divide gross profit by revenue, then multiply by 100 to find gross margin.
- An app earning $10,000 in subscriptions with $7,000 in delivery costs has $3,000 gross profit and a 30% gross margin.
- A 30% margin means the product retains 30 cents per revenue dollar before operating expenses. Whether that is good depends on its delivery model and costs.
What counts as cost of revenue for an app?
Consistent classification matters more than a universal category for every cost.
| Usually direct cost of revenue | Usually indirect operating cost |
|---|---|
| Cloud compute, storage, and bandwidth tied to usage | Product and engineering salaries |
| AI API inference and third-party data calls | Marketing and sales programs |
| Payment processing and frontline customer support | Finance, legal, and general administration |
Why gross margin matters for SaaS and AI products
This metric shows whether revenue can scale faster than the cost to serve users.
- It tests whether pricing covers variable usage costs.
- It exposes expensive features, prompts, integrations, or customer segments.
- It supports infrastructure planning as users grow.
- It helps evaluate customer-level unit economics.
Limits of gross margin as a software metric
Gross margin is useful but does not show complete financial health.
- Companies may classify support, cloud commitments, and implementation work differently.
- Free users can create infrastructure costs without matching revenue.
- Bundled subscriptions can hide individual feature costs.
- A high gross margin does not prove net profitability after payroll and customer acquisition costs.
Gross margin vs. gross profit vs. net profit
These measures answer different questions.
| Metric | What it shows |
|---|---|
| Gross profit | Revenue minus direct delivery costs, stated as a dollar amount. |
| Gross margin | Gross profit as a percentage of revenue. |
| Net profit | What remains after all operating expenses, taxes, and other costs. |
Compare margin trends over time and with products that have similar hosting, AI, and support needs.
Improving gross margin without harming the product
Improve costs through measurement and product-aware decisions, not indiscriminate cuts.
- Track cost per active user, request, and AI-generated output.
- Optimize database queries, compute workloads, storage, and caching.
- Set AI usage limits or paid tiers for high-cost features.
- Review vendor pricing and remove underused services.
- Align plan prices with variable costs and customer value.
Gross margin when building with Emergent
When testing an AI-powered product, plan for every integration and user action cost. Emergent helps teams build and iterate full-stack products with an AI app builder, while a tailored AI dashboard builder can surface usage and cost signals for gross-margin decisions.
on Emergent today

