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.

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

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.