SaaS CalcSuite
Business

What Is Gross Margin? A Simple Explanation With

SaaSCalculatorz Team8 min read

Gross Margin in Plain English

Gross margin tells you what percentage of each dollar of revenue you keep after paying the direct cost of making or delivering what you sold. If you sell a handmade candle for $20 and the wax, wick, jar, and packaging cost you $8, your gross profit is $12 and your gross margin is 60%. It is the single most important measure of whether your core product economics work.

Gross margin ignores everything else: rent, marketing, salaries, taxes. That is deliberate. It answers one question cleanly: is the thing I sell priced high enough relative to what it costs me to produce? If the answer is no, no amount of clever marketing will fix the business.

The Gross Margin Formula

The formula is simple:

Gross Margin = (Revenue - Cost of Goods Sold) / Revenue x 100

Cost of Goods Sold, or COGS, means only the direct costs tied to each sale: materials, direct labor, packaging, and for resellers, the wholesale cost of the product. It does not include rent, advertising, or your salary unless you pay yourself per unit produced.

Worked example: a Shopify store sells a product for $45. The supplier charges $18 per unit, shipping the product to the customer costs $5, and packaging costs $2. COGS is $25. Gross profit is $20, and gross margin is $20 / $45 x 100 = 44.4%. Our Shopify profit calculator runs this math automatically, including platform and payment fees.

Typical Gross Margins by Business Type

What counts as a good gross margin depends entirely on the industry. These are broad typical ranges, not targets carved in stone:

Business TypeTypical Gross Margin RangeWhy
Software / SaaSOften 70-90%Near-zero cost to serve one more customer
Professional servicesOften 50-70%Main cost is people's time
Ecommerce / retailOften 30-60%Product and shipping costs eat margin
RestaurantsOften 60-70% on food, lower overallFood costs are controllable; labor is not in COGS
ManufacturingOften 25-45%Materials and factory costs are significant

Compare yourself to businesses like yours, not to software companies. A 40% gross margin is excellent for a physical product business and terrible for a SaaS company.

Gross Margin vs Markup: Do Not Confuse Them

Markup and margin sound similar but calculate differently, and mixing them up causes real pricing mistakes. Markup is profit as a percentage of cost; margin is profit as a percentage of price. A product that costs $50 and sells for $100 has a 100% markup but a 50% margin.

The practical rule: when someone says they want a 50% margin, they usually mean margin on price, which requires doubling the cost. If you mistakenly apply a 50% markup instead, you will price at $75 and earn only a 33% margin. Always clarify which one a conversation is about.

Using Gross Margin in Pricing Decisions

Gross margin is not just a reporting metric; it is a pricing tool. If you know the margin you need, you can work backwards to the price: Price = COGS / (1 - Target Margin). A product with $25 in direct costs and a 50% target margin must sell for $50. A 40% target means $41.67. This single formula prevents the most common pricing error in small business: setting prices by gut feel and discovering the margin too late.

It also disciplines discounting. A 20% off sale on a 50%-margin product still leaves a 37.5% margin, which is survivable. The same discount on a 30%-margin product leaves just 12.5%, which barely covers overhead. Before approving any promotion, run the discounted price through the margin formula and confirm the business still earns its keep.

Finally, use margin targets to evaluate new products before you launch them. If the required price to hit your target margin is above what customers will pay, you have learned something valuable for the cost of a spreadsheet: either the costs must come down or the product should not launch.

How to Improve Your Gross Margin

  • Raise prices strategically: Even small increases flow almost entirely to gross profit. Test price sensitivity before assuming you cannot charge more.
  • Negotiate supplier costs: Volume commitments and alternative suppliers can shave meaningful percentages off COGS.
  • Reduce waste and returns: Every return or defective unit is COGS with zero revenue. Tighten quality control.
  • Shift the product mix: Promote your highest-margin products and consider dropping chronic low-margin losers.
  • Bundle: Bundles raise average order value while the incremental COGS of the add-on item is small, lifting blended margin.

Gross margin is where profitability starts. Track it monthly, know your number by heart, and never launch a product without calculating it first. To see how gross margin connects to pricing strategy, read our SaaS pricing models explained guide, and model your own numbers with the SaaS pricing calculator.

Start today: pull your last three months of sales and direct costs, compute the margin, and you will know more about your business than most owners ever do.

You might also like

Related Business Guides

Get smarter about your margins.

Get weekly insights on pricing psychology, profit margins, and online business economics.

No spam. Unsubscribe at any time. Read our Privacy Policy.