Explore / Pricing and finances / Unit economics

Unit economics · Starting Up

How do I calculate profit margin and ROI?

Checked 16 November 2026

Profit margin is profit divided by revenue, as a percentage. ROI is what an investment returned minus what it cost, divided by what it cost, as a percentage. Margin divides by the money that came in; ROI and markup divide by the money that went out.

The steps6 steps

  1. Take revenue for the period, excluding the GST you collected.

    The official page on corporatefinanceinstitute.com

  2. Subtract the cost of goods sold to get gross profit, then every other expense (rent, salaries, ads, interest, tax) to get net profit.

    The official page on corporatefinanceinstitute.com

  3. Divide each profit by revenue: that is gross margin and net margin.

    The official page on corporatefinanceinstitute.com

  4. For ROI, subtract the investment's cost from what it returned and divide by the cost.

    The official page on corporatefinanceinstitute.com

  5. To compare investments held for different lengths of time, annualise the ROI.

    The official page on corporatefinanceinstitute.com

  6. In Excel, with revenue in B2 and cost in C2, margin is =(B2-C2)/B2 formatted as a percentage.

    The official page on corporatefinanceinstitute.com

The figuresEach with where it was read

Where it differs

  • India

    Work on prices excluding GST, since the GST you collect is not your revenue. On Amazon or Flipkart, take off the referral commission and shipping fees before you call anything margin.

What goes wrong

  • Calling markup margin: a 50% markup is only a 33.3% margin.

  • Comparing the ROI of investments held for different lengths of time without annualising it.

  • Judging your net margin against a general rule of thumb (CFI calls 10% average, 20% high and 5% low) instead of firms in your own trade.

A worked example

CFI's T-shirt seller has $700,000 of revenue, $200,000 of cost of goods sold and $400,000 of other expenses. Gross profit is $500,000, a 71.4% gross margin; net income is $100,000, a 14.3% net margin. Markup divides the same $500,000 by the $200,000 cost: 250%.

CFI's investor buys a property for $500,000 and sells it two years later for $1,000,000: a 100% ROI, or about 41% a year once annualised.

Go deeper6 sources

  • Profit Margin: Definition, Formula, Types and Examples

    Corporate Finance Institute · corporatefinanceinstitute.com · Article · ~10 min read

    Sets out the three margins with their formulas (gross profit margin, operating profit margin and net profit margin, each as profit divided by revenue times 100), works an example and offers an Excel template.

  • Return on Investment: Formula, Meaning, and How to Calculate It

    Corporate Finance Institute · corporatefinanceinstitute.com · Article · ~10 min read

    Explains the ROI formula, works an example, shows how to annualise ROI so investments of different lengths compare fairly, and lists its limits.

  • Profit Margin: How to Calculate It and Raise It

    Shopify · shopify.com · Article · ~12 min read

    A product seller's guide to gross, operating and net profit margin with the formula for each and ways to raise them, linked to Shopify's free profit margin calculator.

  • Profit margin calculator

    Shopify · shopify.com · Tool · Calculator

    A free calculator: enter your cost and either a price or a target margin and it returns the other, which is the fastest way to see the difference between markup and margin.

  • What is the difference between gross margin and contribution margin?

    Harold Averkamp (AccountingCoach) · AccountingCoach · Article · 5 min read

    This is the cleanest side-by-side we found: it defines both margins in plain language and then walks the exact same $600,000 sales figure through both formulas, so you see gross margin land at 46.7% and contribution margin at 73.3% on identical numbers. The punchline is the one founders miss: gross margin strips out all product costs (fixed and variable), while contribution margin isolates only the variable costs, which is what actually tells you whether one more sale earns money. Treat it as your starting point for the vocabulary, not the last word on your own P&L.

  • Contribution Margin vs. Gross Margin: What's the Difference?

    Shopify · Article · About 8 minute read

    This is the cleanest plain-language separation of the two margins we found, and it walks through both formulas with actual dollar numbers instead of jargon. It is written for operators who are not finance people, which is exactly where most early founders sit. Treat it as your starting point for getting the definitions straight before you decide which number to steer by.