SaaS Gross Margin Calculator

Gross margin is the foundation of SaaS profitability, and this calculator works out yours from revenue and the cost of delivering your service. Gross margin is the share of revenue left after the direct costs of providing the product, the cost of goods sold, are taken out. For a software business those costs are not raw materials but things like cloud hosting and infrastructure, customer support, third-party software baked into the product, payment processing, and the cost of any services delivered to keep customers running. What remains is gross profit, the money available to fund sales, marketing, product development and, ultimately, profit. SaaS is prized precisely because its gross margins are high, commonly in the 70 to 80 percent range and sometimes higher, since serving an extra customer costs very little once the software exists. A margin well below that range suggests heavy infrastructure or support costs that will limit how profitable the business can ever become. This calculator makes it clear. You enter your revenue and your cost of goods sold for the period, and it returns your gross margin percentage, the gross profit in dollars, and the inputs for reference. The results update as you type. Use it to benchmark your margin, to track it over time as you scale, or to feed lifetime-value and unit-economics calculations, which rely on gross margin to count profit rather than revenue. Gross margin is revenue minus cost of goods sold, divided by revenue. The healthiest SaaS businesses keep cost of goods sold lean so that most of each new dollar of revenue flows through to gross profit, which is what gives software its attractive economics and its ability to fund rapid growth. Watch the trend as much as the level, since rising hosting or support costs can quietly erode margin as you grow.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Premium Homes: warmer, drier, healthier. No condensation, ever.
Advertise on this page
75%
gross margin
Gross profit$75,000
Cost of goods sold$25,000
Revenue$100,000

Gross margin = (revenue - cost of goods sold) / revenue. For SaaS, cost of goods sold includes hosting, support and services. 70-80% is the typical healthy range.

How it works

Gross margin subtracts the cost of goods sold from revenue to get gross profit, then divides that by revenue to express it as a percentage. For SaaS, cost of goods sold covers the direct costs of delivering the service, such as hosting, support, third-party software and payment processing.

Worked example

With revenue of $100,000 and cost of goods sold of $25,000, the gross profit is $75,000. The gross margin is $75,000 divided by $100,000, which is 75 percent, comfortably within the typical healthy SaaS range of 70 to 80 percent.

Related calculators