Profit Margin Calculator

Gross Margin Calculator — Gross Profit % from Revenue & COGS
Margin Calculators

📐 Gross Margin Calculator — Revenue, COGS & Gross Profit %

Calculate gross margin %, gross profit in dollars, markup %, and the exact selling price needed to hit any target margin. Three modes: find your margin, find your price, or find your maximum COGS — all instant, all free.

Free forever 3 calculation modes Revenue breakdown table Industry benchmarks included

📐 Gross Margin Calculator

Find gross margin from revenue and COGS, reverse to a selling price, or calculate your maximum allowable cost of goods

$
Total revenue or price per unit
$
Direct cost to produce or purchase
Enables the revenue breakdown table
Label for your results (display only)
$
Your direct cost per unit or total
%
The gross margin % you need to achieve
$
Shipping, fees, commissions per unit
$
Total revenue or price per unit
%
Minimum margin you must maintain
$
Results
Gross Margin
% of revenue
Gross Profit $
revenue minus COGS
Markup %
profit as % of COGS
COGS Ratio
COGS as % of revenue
Gross Margin
Revenue
− Cost of Goods Sold (COGS)
= Gross Profit
Gross Margin %
💡
How It Works

What Is Gross Margin?

Gross margin is the percentage of revenue that remains after subtracting the cost of goods sold (COGS). It is the most fundamental profitability metric in business — the first line of defence between your revenue and actual profit. Every business must understand its gross margin before making any pricing, production, or growth decision.

If your business generates $100,000 in revenue and your COGS is $60,000, your gross profit is $40,000 and your gross margin is 40%. That 40% is what remains to cover operating expenses like salaries, rent, and marketing — and ultimately generate net profit. A business with a 10% gross margin and high overhead will always struggle, regardless of revenue growth.

Gross Margin Formulas
Gross Margin % = (Revenue − COGS) ÷ Revenue × 100
Gross Profit $ = Revenue − COGS
Required Revenue = COGS ÷ (1 − Target Margin %)
Maximum COGS = Revenue × (1 − Required Margin %)
Example: Revenue $10,000, COGS $6,000
Gross Profit = $4,000 → Gross Margin = 4,000 ÷ 10,000 = 40% → Markup = 4,000 ÷ 6,000 = 66.7%
Key Difference

Gross Margin vs Net Margin — What Each Actually Measures

Gross margin and net margin are both expressed as percentages of revenue, but they measure very different things. Gross margin only deducts the direct costs of producing or purchasing what you sell. Net margin deducts everything — COGS, operating expenses, interest, and tax.

MetricDeductionsWhat It Tells YouTypical Range
Gross MarginCOGS onlyProduct/service profitability20–80%
Operating MarginCOGS + operating expensesBusiness efficiency5–30%
Net MarginAll expenses + taxTrue bottom-line profitability2–20%

A business can have a 60% gross margin and still be unprofitable if its operating costs are excessive. Gross margin is the ceiling — net profit is the floor. Both matter, but gross margin is where sustainable profitability begins.

Gross Margin vs Markup

Why Gross Margin and Markup Are Not Interchangeable

Gross margin is calculated as a percentage of the selling price. Markup is calculated as a percentage of the cost. Confusing the two is one of the most expensive pricing errors in business — it consistently leads to underpricing.

Converting Between Gross Margin and Markup
Markup % = Gross Margin % ÷ (1 − Gross Margin %) × 100
Gross Margin % = Markup % ÷ (1 + Markup %) × 100
40% gross margin → Markup = 0.40 ÷ 0.60 × 100 = 66.7%  |  50% markup → Gross Margin = 0.50 ÷ 1.50 × 100 = 33.3%
If COGS = $50Gross Margin %Markup %Selling Price
20% margin target20%25%$62.50
30% margin target30%42.9%$71.43
40% margin target40%66.7%$83.33
50% margin target50%100%$100.00
Industry Benchmarks

What Is a Good Gross Margin by Industry?

Gross margin norms vary dramatically across industries. A 20% gross margin is excellent in grocery retail but catastrophically low for a software company. Always benchmark against your specific sector.

IndustryTypical Gross MarginKey Driver
SaaS / Software70–90%Near-zero marginal cost per user
Professional Services60–75%Direct labour is primary COGS
Branded Apparel / Fashion55–70%Manufacturing cost vs retail price gap
Ecommerce (DTC brand)40–60%Product cost + fulfilment + returns
Retail — General30–50%Wholesale cost vs selling price
Restaurants60–70%Food cost ~30–35% of revenue
Manufacturing25–40%Raw materials + direct labour
Grocery / Food Retail20–30%Low markup, high volume model
Construction15–25%Materials + subcontractor costs
Improving Gross Margin

How to Increase Your Gross Margin

1. Reduce COGS Through Supplier Negotiation

Renegotiate supplier contracts as your order volume grows. Even a 5% reduction in COGS on a 40% margin product improves gross margin to 42.9% — meaningful at scale. Consider consolidating suppliers to increase leverage and explore alternative materials or components without sacrificing quality.

2. Increase Selling Price Strategically

Price increases have a disproportionately large impact on margin because revenue rises while COGS stays fixed. A 10% price increase on a $100 product with $60 COGS raises gross margin from 40% to 45.5% — the same COGS now represents a smaller portion of a higher revenue base.

3. Shift Product Mix Toward Higher-Margin Items

Not all products carry equal margins. Identify your highest-margin SKUs and invest marketing and shelf space in promoting them. Phasing out or repricing chronic low-margin products raises blended gross margin without touching a single supplier contract.

4. Add Value to Justify Premium Pricing

Customers pay premium prices for perceived value — branding, packaging, guarantee, service, and convenience. Investing in brand differentiation lets you command higher prices on the same COGS, directly expanding gross margin without operational changes.

FAQ

Gross Margin — Frequently Asked Questions

What is included in COGS for gross margin calculation?+
COGS (Cost of Goods Sold) includes all direct costs of producing or purchasing the goods you sell: raw materials, components, direct manufacturing labour, packaging, and inbound freight from supplier. It does not include operating expenses such as salaries for non-production staff, rent, marketing, or administrative costs. Only costs that vary directly with what you sell belong in COGS.
Can gross margin be negative?+
Yes. A negative gross margin means your COGS exceeds your revenue — you are selling goods for less than they cost to produce or purchase. This is sometimes acceptable during a promotional period or market entry strategy, but is unsustainable long-term. If COGS is $80 and you sell for $70, your gross margin is −14.3% and every unit sold destroys value before overhead is even considered.
Is gross margin the same as gross profit?+
No. Gross profit is a dollar amount — the difference between revenue and COGS. Gross margin is that same dollar amount expressed as a percentage of revenue. Both come from the same calculation, but gross profit tells you how much money you made, while gross margin tells you how efficiently you made it relative to the revenue generated. A $1M gross profit on $2M revenue is a 50% gross margin.
How is gross margin different from contribution margin?+
Gross margin uses COGS as defined by accounting standards and includes all direct product costs. Contribution margin subtracts only the truly variable costs — those that change in direct proportion to each unit sold. Contribution margin is used in break-even analysis and pricing decisions. Gross margin is used in financial reporting and benchmarking. In some businesses they are identical; in others, semi-variable costs (like part-time labour) cause them to differ.
What gross margin do I need to be profitable?+
Your gross margin must exceed your operating expense ratio to generate net profit. Divide your total fixed monthly operating costs (salaries, rent, software, marketing) by your monthly revenue to get the operating expense ratio. If operating expenses are 35% of revenue, you need a gross margin above 35% just to break even at the net level. A 40% gross margin with 35% operating expenses yields only 5% net margin — viable but fragile.
Why does my gross margin vary between periods?+
Gross margin fluctuates when your product mix changes, when COGS rises (supplier price increases, raw material inflation, freight cost changes), or when you run promotions that lower effective selling price. Seasonality also plays a role — higher-volume periods may unlock volume discounts that temporarily improve COGS, while slow periods may carry inventory holding costs that inflate effective COGS.
How do I calculate gross margin for a service business?+
For service businesses, COGS is typically the direct labour cost (billable hours × hourly cost rate), plus any direct materials consumed in delivery. If you charge $150/hour and pay a consultant $60/hour to do the work, the gross margin on that hour is ($150 − $60) ÷ $150 = 60%. Overhead like office rent, management salaries, and software are operating expenses, not COGS.
Should I calculate gross margin per product or for the whole business?+
Both. Business-level gross margin tells you overall product profitability. Product-level gross margin reveals which items are cross-subsidising others. A blended 40% gross margin might hide products earning 70% alongside products earning 5% — the low-margin products are diluting your overall result. SKU-level margin analysis is essential for pricing reviews, range rationalisation, and identifying your most strategically valuable products.