Plain definition
Definition of Gross Margin
Gross margin is the percentage of revenue a software business keeps after subtracting the direct hosting, API, payment, and support costs required to deliver the product.
Gross Margin (%) = ((Revenue - Cost of Goods Sold) / Revenue) x 100Worked example
Say a made-up meeting transcription tool called VoiceLoom earns $4,000 in recognized monthly subscription revenue. Its direct delivery costs, known as Cost of Goods Sold (COGS), total $1,120: $620 for speech-to-text and LLM API tokens, $240 for cloud compute and audio file storage, $140 for payment processor fees, and $120 for transactional email and webhook infrastructure required to run active accounts. Subtracting $1,120 from $4,000 leaves $2,880 in gross profit, giving a gross margin of ($2,880 / $4,000) x 100 = 72.0%.
Costs that do not scale directly with delivering the product, such as $500 in search ads, $150 for bookkeeping software, and founder pay, sit in operating expenses below gross profit. Now watch how fast variable costs can shift unit economics: if VoiceLoom turns on a heavier AI summary model that adds $480/month in token bills at the same $4,000 revenue, COGS climbs to $1,600, gross profit falls to $2,400, and gross margin drops twelve points to 60.0% ($2,400 / $4,000).
Why it matters when you launch
Classic CRUD software often carries small per-user hosting bills, so founders sometimes forget to check variable costs until usage spikes. Modern apps powered by LLMs, voice APIs, scraping proxies, or GPU video rendering can lose money on their heaviest users if flat pricing sits too low.
Knowing your real gross margin on v1 protects your pricing tiers and feeds accurate numbers into LTV, CAC Payback Period, and valuation math. When one power user burns $28 in API credits on a $19/month unlimited plan, adding usage caps, credit packs, or a higher tier stops growth from eroding profit.
Common mistakes
- Leaving out per-user AI token fees, SMS charges, or payment processor cuts when estimating COGS, which makes low-priced plans look profitable when they barely break even.
- Mixing marketing ads, product development tools, or general office software into COGS instead of separating direct delivery expenses from operating overhead.
- Setting unlimited usage on flat-rate launch tiers without measuring the variable cost of your top 5% heaviest accounts.
- Quoting gross margin from a month when free cloud startup credits covered hosting bills, hiding the real margin drop once credits expire.
Tools and guides that use it
Free tool
SaaS Pricing CalculatorWork back from a revenue goal to the customers and traffic you'd need.Free tool
CAC, LTV & Payback Period CalculatorCalculate Customer Acquisition Cost (CAC), Lifetime Value (LTV), and exact months to break even on paid distribution.Founder guide
Micro-SaaS Pricing Playbook: Free Trials, Lifetime Deals and TiersHow to choose a pricing model for a small SaaS: picking a first price, trials vs freemium, value metrics, tiers, annual plans, raising prices and when lifetime deals make sense.Founder guide
How to Validate a SaaS Idea Before You Build (2026)A practical way to test a SaaS idea with real people before you write the code: problem interviews, what people already pay for, waitlists and pre-sales.Related glossary terms
Official sources
Pritam Ghosh runs Hauntboard and maintains this glossary.
Published · Updated
Building something real? Launch it in public.
A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.