Gross Margin Calculator
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
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.
With $100,000 revenue and $18,000 COGS, gross margin is 82.0%.
Inputs
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.
References
Frequently Asked Questions
Is 50% gross margin good?
Gross margin vs net margin?
What should I include in COGS?
Why do investors focus on gross margin?
Related Calculators
More Financial Health Calculators
Financial Health
Accounting Software Cost Calculator
Calculate total accounting software cost over years including setup. Enter subscription and setup hours for an instant result.
Financial Health
Accounts Payable Turnover Calculator
Calculate accounts payable turnover and days payable outstanding from supplier purchases and average AP. Free educational tool.
Financial Health
Accounts Receivable Turnover Calculator
Calculate accounts receivable turnover and days sales outstanding from credit sales and average AR. Enter net credit sales and see the result instantly.
Financial Health
Adjusted EBITDA Calculator
Calculate adjusted EBITDA with add-backs for owner compensation, one-offs, and non-recurring items. Enter reported ebitda and see the result instantly.
Financial Health
Affiliate Commission Calculator
Calculate affiliate commission earnings from clicks, conversion rate, order value, and commission percentage. Free educational tool.
Financial Health
Affiliate Marketing Income Calculator
Calculate affiliate marketing income from clicks, conversion rate, and commission per sale or per-order commission rate.
Explore Other Financial Tools
Mortgage
Housing Affordability Index Calculator
Calculate the price-to-income ratio for housing affordability in your area. Enter median home price and median household income for an instant result.
Savings
Monthly Savings to Lump Sum Calculator
Calculate the lump sum today that produces the same future value as ongoing monthly savings. Enter horizon and return to see equivalent lump sum needed today.
Income
Executive Compensation Calculator
Calculate total executive compensation including base, bonus, equity, perks, and pension. Enter base salary and target bonus for an instant result.