Gross Margin Calculator
Calculate gross margin and gross profit from revenue and COGS. Convert between margin and markup, compare against industry benchmarks, and see how margin improvements affect profitability at scale.
Enter Revenue & COGS
Margin vs. Markup Converter
Formula: Markup = Margin / (1 - Margin)
Margin vs. Markup Reference Table
| Gross Margin | Markup | Multiplier | Example |
|---|---|---|---|
| 20% | 25.0% | 1.25x cost | $125 sell / $100 cost |
| 25% | 33.3% | 1.33x cost | $133 sell / $100 cost |
| 30% | 42.9% | 1.43x cost | $143 sell / $100 cost |
| 33.3% | 50.0% | 1.50x cost | $150 sell / $100 cost |
| 40% | 66.7% | 1.67x cost | $167 sell / $100 cost |
| 50% | 100.0% | 2.00x cost | $200 sell / $100 cost |
| 60% | 150.0% | 2.50x cost | $250 sell / $100 cost |
| 70% | 233.3% | 3.33x cost | $333 sell / $100 cost |
| 75% | 300.0% | 4.00x cost | $400 sell / $100 cost |
| 80% | 400.0% | 5.00x cost | $500 sell / $100 cost |
A 50% gross margin means you keep half of every dollar of revenue. The equivalent 100% markup means you charge double your cost. They describe the same pricing — just from different perspectives.
Gross Margin Calculator: The Complete Guide
Everything you need to know about gross margin, gross profit, markup, and how they affect your business valuation.
Gross margin is the percentage of revenue that remains after subtracting the cost of goods sold (COGS). It measures how efficiently a company turns revenue into profit before accounting for operating expenses, taxes, and interest. A company with $1 million in revenue and $400,000 in COGS has a gross margin of 60%.
Why it matters for valuation:
- Pricing power indicator — High gross margins suggest a company can charge premium prices relative to its production costs, often due to brand strength, intellectual property, or network effects.
- Scalability signal — Companies with high gross margins (like software at 70-80%) have more room to invest in growth because each incremental dollar of revenue contributes more to the bottom line.
- Competitive moat proxy — Consistently high margins relative to peers suggest sustainable competitive advantages that protect profitability over time.
- DCF model input — Gross margin directly feeds into income statement projections in a discounted cash flow model. Getting it wrong cascades through your entire valuation.
In a DCF analysis, gross margin assumptions for each projection year drive gross profit, which flows into operating income, EBITDA, and ultimately free cash flow. A 5% difference in gross margin over a 5-year projection can swing your fair value estimate by 20% or more, making it one of the most sensitive inputs in any valuation model.
Gross margin and markup both describe the relationship between cost and selling price, but they use different denominators and serve different purposes. Confusing the two is one of the most common mistakes in financial analysis and pricing strategy.
Key differences:
- Gross margin = (Revenue - COGS) / Revenue — Expressed as a percentage of the selling price. A $100 product with $40 in costs has a 60% gross margin.
- Markup = (Revenue - COGS) / COGS — Expressed as a percentage of the cost. That same $100 product with $40 in costs has a 150% markup.
When to use each:
- Gross margin is preferred in financial analysis, investor presentations, and valuation models because it normalizes profitability as a share of revenue, making it easy to compare across companies of different sizes.
- Markup is more common in pricing decisions and retail operations because it starts from the cost basis, which is what purchasing and operations teams work with daily.
The conversion formulas are: Margin = Markup / (1 + Markup) and Markup = Margin / (1 - Margin). A 50% margin equals a 100% markup. A 33.3% margin equals a 50% markup. These are not interchangeable — always clarify which metric is being discussed in financial conversations.
Gross margins vary dramatically across industries because of fundamental differences in business models, input costs, and pricing dynamics. Comparing your gross margin to the wrong industry benchmark is meaningless — a 30% margin that looks terrible for a software company is outstanding for a grocery retailer.
Typical gross margins by industry:
- Software / SaaS (65-85%) — Near-zero marginal cost of serving additional users. Cloud infrastructure costs are the primary COGS component. Best-in-class companies like Adobe or Atlassian regularly exceed 80%.
- Pharmaceuticals (60-80%) — High margins on patented drugs offset massive R&D spending. Generics compress margins significantly after patent expiration.
- Restaurants (55-65%) — Food cost typically runs 28-35% of revenue. Labor (often classified as an operating expense) is the bigger profitability challenge.
- Healthcare services (50-60%) — Equipment, supplies, and direct care costs vary widely by specialty. Outpatient services generally carry higher margins than hospitals.
- Manufacturing (25-40%) — Raw materials, direct labor, and factory overhead create significant COGS. Aerospace and defense tend to run higher within this range.
- Retail (20-30%) — Thin margins offset by volume. Luxury retail can achieve 60%+ while discount retailers operate at 20-25%.
When benchmarking, compare against direct competitors, not just industry averages. A niche software company competing against enterprise incumbents might have a very different cost structure than the industry median. Also track your own gross margin trend over time — improving margins indicate operational efficiency gains and pricing power.
A 1% gross margin improvement sounds small, but it flows directly to the bottom line with no additional operating expenses. For a company generating $100 million in annual revenue, a 1% margin improvement adds $1 million in gross profit — money that drops straight through to operating income and free cash flow.
The compounding effect on valuation:
- Direct profit impact — At $100M revenue, 1% margin improvement = $1M additional annual gross profit. Over a 5-year DCF projection, that compounds to $5M+ in cumulative additional cash flow.
- Valuation multiple effect — If the company trades at 15x earnings, that $1M annual improvement could add $15M to enterprise value. At SaaS multiples of 10x revenue, the impact is even more dramatic.
- Terminal value amplification — Since terminal value often represents 60-80% of a DCF valuation, a permanently higher margin base compounds significantly in the terminal period.
- Investor perception — Margin expansion signals improving unit economics and operational efficiency, often leading investors to assign higher forward multiples.
This is why margin analysis is one of the most sensitive assumptions in any DCF model. Professional analysts typically run sensitivity tables showing how changes of +/- 1-3% in gross margin affect the final per-share fair value estimate. Our what-if analyzer above lets you see this impact for any revenue level.
Calculating gross margin from financial statements is straightforward in theory but requires careful attention to how companies classify their costs. The basic formula is Gross Margin = (Revenue - COGS) / Revenue x 100, but the devil is in the details of what each company includes in COGS.
Step-by-step process:
- Find revenue (top line) — On the income statement, this is labeled as Revenue, Net Revenue, Net Sales, or Total Revenue. Use the net figure (after returns and allowances).
- Identify COGS — Listed as Cost of Goods Sold, Cost of Revenue, or Cost of Sales. For service companies, this might be Cost of Services. For SaaS companies, look for Cost of Revenue which typically includes hosting, customer support, and third-party software costs.
- Calculate gross profit — Subtract COGS from Revenue. Many income statements show this as a separate line item labeled Gross Profit.
- Compute the margin — Divide Gross Profit by Revenue and multiply by 100 to get the percentage.
Common pitfalls: Some companies include depreciation and amortization in COGS while others classify it as an operating expense. Stock-based compensation may or may not be included. When comparing across companies, check the notes to the financial statements to understand what is included in each line item. GAAP and IFRS also have slightly different classification rules.
These three margin metrics form a cascading waterfall that flows from the top of the income statement to the bottom. Each one tells a different story about a company's economics, and all three are critical inputs in building an accurate DCF valuation model.
The margin waterfall:
- Gross margin (Revenue - COGS) / Revenue — Measures production efficiency and pricing power. This is the starting point for all downstream profitability. In a DCF model, gross margin assumptions are typically set per-segment in the Revenue Build sheet.
- Operating margin (Revenue - COGS - OpEx) / Revenue — Adds SG&A, R&D, and other operating expenses. Shows how efficiently the company runs its overall business. A company with 70% gross margin but 10% operating margin is spending heavily on growth (common in early-stage SaaS).
- Net margin (Revenue - all expenses - taxes) / Revenue — The bottom-line percentage after interest, taxes, and one-time items. Feeds into EPS calculations but is often less useful for valuation than EBITDA or free cash flow.
In a well-built DCF model, you project gross margin in the Revenue Build, then layer on operating expense assumptions in the Income Statement to derive operating income. Cash flow adjustments (D&A add-back, CapEx, working capital changes) then convert operating income into free cash flow, which is what you actually discount back to present value. Getting gross margin right is essential because every subsequent calculation builds on it.
Ready to build a professional valuation model?