Calculateus

Profit Margin Calculator

Calculate gross profit margin from cost and revenue.

Result

Profit Margin
40%
Profit
$60.00
Cost: $90Profit: $60Total$150
  • Cost - $90
  • Profit - $60

About the Profit Margin

Profit margin tells you what percentage of revenue actually turns into profit after costs - a critical number for pricing decisions, but one that's often confused with markup, a related but different calculation. Our Profit Margin Calculator finds your gross margin from revenue and cost.

How It Works

The calculator subtracts cost from revenue to find profit, then divides that profit by revenue (not cost) to find the margin percentage - the key distinction that separates margin from markup, which divides by cost instead.

Margin = (Revenue − Cost) ÷ Revenue × 100

Formula & Methodology

Margin expresses profit as a share of what the customer actually paid (revenue), which is why it can never exceed 100% - even giving a product away for free above its cost approaches but never reaches a 100% margin as cost approaches zero. This is the fundamental difference from markup, which is expressed relative to cost instead and therefore has no such ceiling - a markup can be 200%, 500%, or higher, since cost can be a small fraction of the selling price.

Step-by-Step: Calculating It By Hand

  1. 1Subtract cost from revenue to find profit.
  2. 2Divide profit by revenue (not cost) to find the margin as a decimal.
  3. 3Multiply by 100 to express margin as a percentage.

Examples

Standard retail example

A $150 selling price on a $90 cost produces a $60 profit and a 40% profit margin.

Margin vs. markup on the same numbers

The same $90 cost and $60 profit represents a 66.7% markup on cost - a very different number from the 40% margin, despite describing the same sale.

Advantages

  • Correctly calculates margin (as a percentage of revenue), not markup
  • Fast way to check pricing decisions or evaluate a business's profitability
  • Works for any product, service, or business line
  • Clarifies the frequently confused margin-versus-markup distinction

Common Mistakes

  • Confusing profit margin with markup - they use different denominators and produce different percentages
  • Setting prices based on a target markup without checking the resulting margin makes sense
  • Not accounting for all costs (only direct product cost, ignoring overhead) when calculating margin
  • Comparing margin percentages across industries with very different typical cost structures

Edge Cases to Watch For

  • Gross margin (using only direct product cost) and net margin (using all costs, including overhead) are different figures - always be clear which one is being calculated or compared.
  • Margin percentages that look similar across products with very different price points can represent very different absolute dollar profits.
  • Industries have very different typical margin ranges (software margins are often far higher than retail margins), making cross-industry margin comparisons potentially misleading.
  • A margin of exactly 0% means revenue equals cost (breaking even on that sale), while a negative margin means selling below cost.

Common Use Cases

  • Checking the profitability of a specific product or sale
  • Setting prices to hit a target profit margin
  • Comparing margins across different products or business lines
  • Understanding the difference between margin and markup for pricing decisions
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

How is profit margin different from markup?

Margin is profit as a percentage of the selling price (revenue). Markup is profit as a percentage of the cost. The same dollar profit produces a lower margin percentage than markup percentage - see the Markup Calculator to convert between them.

Conclusion

Margin and markup describe the same profit using different math, and mixing them up leads to pricing mistakes - margin is profit divided by revenue, markup is profit divided by cost. Use our Markup Calculator when you're working forward from cost to a target selling price instead.