Calculator

Free Profit Margin Calculator

Calculate profit margin, markup and profit from cost and revenue. Includes reverse modes to find the selling price you need for a target margin, or the maximum cost you can pay.

Live calculation 100% offline 3 modes Margin & markup

Input

Cost (what you paid) 60
$
Revenue (what you sold for) 100
$
Common target margins
Currency

Results

Profit
$0.00
—
Profit margin
0.00%
Profit ÷ Revenue
Markup
0.00%
Profit ÷ Cost
Cost
—
Profit
—
Revenue
—
Formula breakdown
—
—
Cost
Profit
Cost 60% Profit 40%

About Profit Margin and Markup

Profit margin and markup are the two most common ways to describe the profitability of a sale — and they are almost always confused with each other. They use the same numbers (cost, revenue and profit) but divide by different denominators, so they always give different percentages. Understanding the difference is essential for pricing anything correctly.

The three core numbers

TermMeaningFormula
CostWhat you paid to acquire or produce the item—
RevenueWhat you sold the item for—
ProfitThe difference between revenue and costProfit = Revenue − Cost

Margin vs markup — the crucial difference

MetricFormulaDenominator
MarginProfit ÷ Revenue × 100Revenue (what the customer paid)
MarkupProfit ÷ Cost × 100Cost (what you paid)

Worked example: cost $60, sold for $100

The same sale has a 40% margin and a 66.67% markup. Both are correct — they describe the same transaction from different reference points. Markup tells you how much you added on top of the cost; margin tells you what fraction of the selling price is profit.

Conversion table

If you know one percentage, you can always find the other:

MarginEquivalent markup
10%11.11%
20%25.00%
25%33.33%
30%42.86%
40%66.67%
50%100.00%
60%150.00%
70%233.33%
80%400.00%

Notice how the gap widens as margin increases. At 50% margin the markup is exactly 100% (double the cost). At 80% margin the markup is 400% (5× the cost). This is why talking about margins without specifying which one can lead to serious pricing mistakes.

Why margin cannot reach 100%

Because margin is calculated as a fraction of revenue, and profit can never equal revenue (unless cost is zero), margin approaches but never reaches 100%. A 99% margin means the cost is 1% of the selling price. Markup, on the other hand, has no upper bound — a $1 cost sold for $1000 is a 99,900% markup.

Target margin vs target markup

When setting prices, businesses usually work from a target margin (because margins compare directly to operating costs and profitability ratios) rather than a target markup. But many traditional retailers work from "keystone" or "2×" markup, which is a 100% markup — equivalent to a 50% margin.

To find the selling price from a target margin:

Revenue = Cost ÷ (1 − Margin)

For a $60 cost at a 40% target margin: 60 ÷ 0.60 = $100. For a 50% margin: 60 ÷ 0.50 = $120 (a 100% markup). For an 80% margin: 60 ÷ 0.20 = $300 (a 400% markup).

Common use cases

Retail Pricing

Set prices to achieve a target margin on every SKU.

SaaS Metrics

Report gross margin to investors and boards.

Wholesale & Distribution

Compare markup tiers across customer segments.

Restaurant Menu

Price dishes to a target food cost percentage.

Business Analysis

Check profitability of past sales and orders.

Negotiation

Find the maximum cost you can pay to hit a margin target.

Privacy and accuracy

This profit margin calculator runs entirely in your browser. All calculations happen locally in JavaScript with no server calls. Nothing is uploaded, stored or logged — safe for confidential pricing, cost data and business financials.

Frequently Asked Questions

What is profit margin?
Profit margin is the percentage of revenue that remains as profit after subtracting the cost. It is calculated as Profit ÷ Revenue × 100. For example, if you buy an item for $60 and sell it for $100, your profit is $40 and your margin is 40/100 = 40%.
What is markup?
Markup is the percentage added to the cost to arrive at the selling price. It is calculated as Profit ÷ Cost × 100. In the same $60 cost, $100 sale example, markup = 40/60 = 66.67%. Markup is always higher than margin for the same transaction (except at very low percentages).
What is the difference between margin and markup?
Both use the same profit figure, but divide by a different denominator. Margin divides by revenue (what the customer paid) and answers "what fraction of the sale price is profit?" Markup divides by cost (what you paid) and answers "how much did I add on top of my cost?" A 40% margin is always equivalent to a 66.67% markup — they describe the same sale from different angles.
How do I find the selling price for a target margin?
Use the formula Revenue = Cost ÷ (1 − Margin). For a $60 cost and a 40% target margin: 60 ÷ 0.60 = $100. For a 50% margin: 60 ÷ 0.50 = $120. For an 80% margin: 60 ÷ 0.20 = $300. Use "Find the selling price" mode in this calculator for this exact calculation.
Can margin ever reach 100%?
No. Margin is calculated as profit ÷ revenue, and profit can never equal revenue (that would require zero cost). Margin approaches 100% asymptotically as cost approaches zero, but never reaches it. A 99.9% margin means the cost is only 0.1% of the revenue — but not zero. Markup, by contrast, has no upper limit and can be thousands of percent.
Why is 50% margin the same as 100% markup?
If you buy at $60 and sell at $120, profit = $60. Margin = 60/120 = 50%. Markup = 60/60 = 100%. The 100% markup means you doubled your cost, but only half the selling price is profit — so the margin is 50%. This is why retailers who "double the cost" (keystone pricing) have 50% margins, not 100%.
Is this profit margin calculator free?
Yes. It is 100% free, requires no sign-up, and runs entirely in your browser. No length limits, no watermarks, no premium tier.
Is my data sent to a server?
No. All calculations happen locally in JavaScript. Nothing is uploaded, stored or logged — safe for confidential pricing, cost data and business financials.
How do I handle a loss (negative margin)?
If you sell for less than cost, profit is negative and the margin becomes negative. This tool shows negative margins with a warning. In accounting, a loss is usually expressed as a positive percentage with the word "loss" (e.g. "20% loss") rather than as a negative margin. Both conventions refer to the same figure.
What is a good profit margin?
It depends entirely on the industry. Grocery stores typically run on 2–5% net margins. Restaurants average 3–5%. Retail apparel runs 5–10%. Software and SaaS companies often hit 70–90% gross margins. Consulting firms run 20–40%. There is no universal "good" number — what matters is whether the margin covers your operating costs and leaves a return for the business.

Related Calculators

Done!