SaaS Gross Margin Calculator
Calculate gross profit and gross margin for a software or subscription service using one consistent accounting period.
How to use this calculator
- Enter revenue for the period, direct service costs for the same period; check the units and use values from the same period or scenario.
- Review the result and intermediate values; change one input at a time when comparing scenarios.
- Keep the stated formula and assumptions with any result you share.
Formula and method
Gross profit = revenue − direct costs. Gross margin (%) = gross profit ÷ revenue × 100.
- Gross profit is €66,300 and gross margin is 78%.
- Accounting policies differ on which support, infrastructure, payment and personnel costs belong in cost of revenue. Use your own consistent definition.
Worked examples
Worked example
Revenue is €85,000 and directly attributable hosting/support costs are €18,700.
Gross profit is €66,300 and gross margin is 78%.
Gross profit is €66,300 and gross margin is 78%.
Understanding the result
Gross profit is €66,300 and gross margin is 78%.
Accounting policies differ on which support, infrastructure, payment and personnel costs belong in cost of revenue. Use your own consistent definition.
Important notes
Accounting policies differ on which support, infrastructure, payment and personnel costs belong in cost of revenue. Use your own consistent definition.
Use measured inputs and verify that the model matches the situation before making an operational, financial or technical decision.
Frequently asked questions
Can gross margin be negative?
Yes, if direct costs exceed revenue.
Is this operating profit?
No. It excludes other operating expenses unless you include them in the chosen direct-cost figure.
What should I check before relying on this result?
Verify units, input definitions and assumptions against your real data or the relevant product, service or professional guidance.
Related calculators
- Gross Profit Calculator — Calculate gross profit and gross margin from revenue and direct costs.
- Profit Margin Calculator — Calculate profit and profit margin from sales revenue and total costs, including negative-margin scenarios.
- Cloud Cost per Transaction Calculator — Estimate fully included cloud spend per completed transaction from a consistent cost and activity period.
- Food Cost Percentage Calculator — Calculate ingredient cost as a percentage of a menu selling price and compare the amount remaining before other operating costs.
- Office Space Cost per Employee Calculator — Estimate annual and monthly workplace cost per employee and cost per square metre.
- Printer Cost per Page Calculator — Estimate per-page printing cost from consumable cost, rated yield and paper cost.
Related explanations
Learn the method behind the number or compare the terminology before using the calculator.
- How to Calculate ROI — Learn the return on investment formula and how to interpret profit, cost, and percentage return.
- How to Calculate Break-Even Point — Learn the break-even formula for units and revenue and understand fixed costs, price, and variable costs.
- Markup — Learn what markup means, how markup is calculated from cost and selling price, and how it differs from margin.
This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.