How to Calculate SaaS Gross Margin Percentage

Gross Margin Percentage measures the proportion of total revenue remaining after deducting direct production expenses or software Cost of Goods Sold (COGS). For software companies, healthy gross margins typically fall between 75% and 85%.

High gross margins provide the cash flow capacity needed to invest heavily in customer acquisition, engineering talent, and product expansion.

Calculate your gross profit margin and COGS ratio. Model revenue, COGS, and markup.

Open Gross Margin Calculator

The Gross Margin Percentage Formula

Gross margin percentage is computed by subtracting COGS from total revenue and dividing by total revenue:

Gross Margin % = [(Total Revenue - COGS) / Total Revenue] x 100

Let us walk through a practical calculation:

Markup vs Gross Margin Formula

While gross margin measures profit relative to total revenue, markup measures profit relative to COGS:

Markup % = (Gross Profit / COGS) x 100

With $80,000 gross profit and $20,000 COGS: ($80,000 / $20,000) x 100 = 400.00% Markup.

Calculate your company's margin numbers using our free Gross Margin Calculator.

Published by the QuixCalc Team. Financial calculations verified against accounting standards. Last updated: August 2026.

Featured & Listed On
Fazier badge
Featured on Twelve Tools
Featured on Findly.tools
TinyLaunch Badge
QuixCalc β€” Featured on Smol Launch
Featured on TheDevToolsDir
NoLogin Verified