FinToolSuite

Gross Margin Calculator

Updated April 17, 2026 · Financial Health · Educational use only ·

Gross margin, markup, and gross profit from revenue and COGS

Calculate gross margin, markup on cost, gross profit, and COGS ratio from revenue and cost of goods sold. Free and runs in your browser.

What this tool does

Enter revenue and cost of goods sold. The calculator returns gross margin percentage, gross profit units, markup on cost percentage, and COGS as a percentage of revenue.


Enter Values

Formula Used
Revenue
Cost of goods sold

Spotted something off?

Calculations, display, or translation — let us know.

Disclaimer

Results are estimates for educational purposes only. They do not constitute financial advice. Consult a qualified professional before making financial decisions.

Gross Margin Is the First Thing Anyone Reads

When an investor or lender looks at a business, gross margin is often the first number they see. It signals pricing power and structural profitability before operating expenses enter the picture. A 70% gross margin SaaS business has far more room to absorb overhead than a 20% gross margin commodity retailer. Gross margin cannot be changed by cutting costs at headquarters — it can only be moved by changing the relationship between price and what it costs to produce and deliver the product.

How Gross Margin Differs From Markup

The same business can quote either margin or markup and people confuse the two. A product costing 40 sold for 100: margin is 60 / 100 = 60%. Markup is 60 / 40 = 150%. Retailers and wholesalers typically quote markup (2x, 3x, 5x markup on cost). Finance, investors, and boards quote margin (percentage of revenue). The calculator returns both so you can translate between the two framings instantly. Note that a 50% margin equals a 100% markup — the same business, two numbers, often a source of mis-negotiation in retail contracts.

Realistic Gross Margin Ranges by Industry

Software SaaS: 70-85% gross margin. Physical goods ecommerce: 30-60%. Specialty retail: 40-55%. Grocery: 20-30%. Restaurants: 60-70% food margin before labour. Manufacturing: 25-40%. Consulting services: 50-75%. Luxury goods: 55-75%. Commodity distribution: 10-20%. A 30% margin in software is a red flag; in grocery it is industry-leading. Context matters more than absolute numbers.

What Drives Gross Margin Up or Down

Up: pricing power (brand, differentiation, scarcity), higher-value product mix, better unit economics from scale, lower-cost suppliers, automation replacing human labour in production. Down: commodity pressure, new competition, rising raw material costs, shift to lower-margin product lines, discounting or promotions. A business whose gross margin is declining is facing pressure that operating expense cuts cannot fully solve — it is a structural problem requiring pricing, product, or cost-of-goods changes.

Worked Example

SaaS business. Monthly revenue: 100,000. Cost of goods (hosting, third-party APIs, customer support directly tied to accounts): 18,000. Gross profit: 82,000. Gross margin: 82%. Markup on cost: 456%. COGS ratio: 18%. Read: this is a typical healthy SaaS. The 82% margin means most of next-dollar revenue is available for R&D, sales, and profit. Compare with an ecommerce brand at 100k revenue, 55k COGS: margin 45%, markup 82%, COGS ratio 55%. Both businesses generate the same top-line but have fundamentally different financial DNA.

When Gross Margin Is Misleading

Gross margin depends on what you include in COGS. Strict accounting definitions include only direct material and direct labour. Looser definitions include hosting, customer support, or fulfillment. A business quoting 80% gross margin on a loose definition might have 60% under strict rules. When comparing across companies, check the footnotes or investor Q&A to see what is and out of each company's COGS line. Industry peers usually align on definitions within their sector.

How to Use the Number in Daily Operations

Pricing decisions get easier when you know your target gross margin. If you need 60% margin to stay profitable after operating expenses, and a product costs 40 to produce, minimum price is 100. Discounting below 100 means the unit sale will not support the business. Promotional pricing can dip below target margin briefly if volume lift justifies it, but the calculator gives you the floor. Similarly, when considering supplier price changes, running the new COGS through this tool shows whether it helps to pass the cost to customers or absorb it.

Example Scenario

With $100,000 revenue and $18,000 COGS, gross margin is 82.0%.

Inputs

Revenue:$100,000
Cost of Goods Sold:$18,000
Expected Result82.0%

This example uses typical values for illustration. Adjust the inputs above to match a specific situation and see how the result changes.

Sources & Methodology

Methodology

Gross profit is revenue minus COGS. Gross margin divides gross profit by revenue. Markup on cost divides gross profit by COGS. COGS ratio divides COGS by revenue. Results are estimates for illustration purposes only.

Frequently Asked Questions

Is 50% gross margin good?
Depends on industry. Software: below average (70-85% is typical). Retail: good (40-55% typical). Restaurants: poor (60-70% typical for food). Context from industry peers matters more than absolute numbers.
Gross margin vs net margin?
Gross margin only subtracts COGS. Net margin subtracts all operating expenses plus taxes. Net margin is always lower. For full net margin, use the ecommerce-profit-calculator or a full P&L tool.
What should I include in COGS?
Direct materials and direct labour for manufacturing. Hosting and customer support for SaaS. Product cost and fulfillment for ecommerce. Exclude sales, marketing, administrative overhead, R&D — those are operating expenses.
Why do investors focus on gross margin?
It indicates pricing power and structural profitability. A high gross margin business has cushion to absorb unexpected costs. A low gross margin business is fragile — small cost increases or price cuts can flip it to unprofitable.

Related Calculators

More Financial Health Calculators

Explore Other Financial Tools