Skip to content
ToolsOrbit
Business & Finance

Profit Margin Calculator

Enter any two of cost, revenue and margin to get profit, margin and markup, with the formula shown for every result.

What the item costs you

What you sell it for

Profit
60
Margin
60%
of revenue
Markup
150%
of cost
Cost per unit of revenue
40%
100% minus margin

Margin = (100 - 40) / 100 x 100 = 60% Markup = (100 - 40) / 40 x 100 = 150%

Runs in your browser. Nothing you enter is uploaded.

How to use the margin calculator

  1. 1

    Pick a mode. Use Cost + revenue when you know what you paid and what you sold for, Cost + margin to price a product, and Revenue + margin to find the most you can afford to spend.

  2. 2

    Type the figures. Use the same currency and the same unit (per item, per order or per month) for both numbers.

  3. 3

    Read the results: profit, margin as a share of revenue, and markup as a share of cost.

  4. 4

    Check the formula line under the results. It shows your numbers inside the equation so you can verify it by hand.

  5. 5

    Copy the summary or share the link to send the exact calculation to a colleague.

How it works

Margin and markup describe the same profit from two angles. Margin compares profit with revenue (what the customer paid). Markup compares profit with cost (what you paid).

Profit = revenue - cost

Margin % = (revenue - cost) / revenue x 100

Markup % = (revenue - cost) / cost x 100

Price from a target margin = cost / (1 - margin / 100)

Cost from revenue and margin = revenue x (1 - margin / 100)

Worked example

A product costs $40 to make and sells for $100. Profit is $60. Margin is 60 / 100 = 60%. Markup is 60 / 40 = 150%. Same $60 of profit, two very different percentages.

To hit a 60% margin on a $40 cost, price = 40 / (1 - 0.60) = $100. If you multiplied cost by 1.6 instead, you would price at $64 and the margin would be only 37.5%. Dividing by (1 - margin) is the step most people get wrong.

Margin versus markup: why the difference matters

Margin answers "what share of each sale is profit?" Markup answers "how much did I add on top of my cost?" Because the denominator is different, the same sale always has a higher markup than margin. A 50% markup is a 33.3% margin. A 100% markup is a 50% margin. A 300% markup is a 75% margin. Margin can never reach 100%, because that would mean the product cost nothing.

Confusing the two is expensive. A shop owner who hears "you need a 40% margin" and multiplies cost by 1.4 ends up with a 28.6% margin and wonders where the money went. Accountants, lenders and marketplaces usually talk in margin. Suppliers, retailers and pricing spreadsheets usually talk in markup. This calculator shows both so you can translate between them.

Gross, operating and net margin

What this tool calculates is gross margin: revenue minus the direct cost of the thing sold. It is the right figure for pricing a product, comparing two suppliers or checking whether a discount still leaves room for profit. Operating margin goes further and subtracts overheads such as rent, salaries and software, and net margin subtracts everything, including interest and tax. If you enter total revenue and total costs for a period instead of per-unit figures, the same formula gives you an overall margin for that period.

Benchmarks depend heavily on the industry. Grocery and fuel retail run on thin gross margins and make it up in volume, while software and digital products often keep most of each sale as gross profit. Compare your margin with businesses that sell the same kind of thing, not with a single universal number.

Pricing with a target margin

The "Cost + margin" mode is the one to use when setting prices. Enter the full cost of delivering the product, including packaging, payment processing fees, shipping you absorb and expected returns, then the margin you want. The result is the minimum price that achieves it. Round up from there to a price that looks natural to customers; rounding down silently eats the margin you just calculated.

Discounts hit margin harder than they look. A product with a 30% margin that goes on sale at 10% off keeps only a 22% margin, which is a third of the profit gone for a tenth off the price. Run the discounted price through the "Cost + revenue" mode before announcing a promotion, and use the break-even calculator to see how many extra units the sale has to generate to pay for itself.

Common mistakes

  • Multiplying by the margin. Cost x 1.6 does not give a 60% margin. Divide by (1 - 0.6) instead, which is what the calculator does.
  • Leaving costs out. Transaction fees, shipping, packaging and returns are part of cost. Leaving them out overstates margin, sometimes by more than the margin itself on cheap items.
  • Mixing units. Cost per unit against revenue per order of three units gives a meaningless number. Keep both figures on the same basis.
  • Comparing your margin with a markup benchmark. "Keystone pricing" is a 100% markup, which is a 50% margin. Check which one a benchmark means before you compare.
  • Ignoring the sign. If revenue is below cost, both percentages are negative. The calculator flags that as a loss rather than hiding it.

Related calculations

If you think in terms of markup, the markup calculator works from cost plus a percentage and includes a full markup-to-margin table. For quick percentage arithmetic such as "what is 15% of 240", the percentage calculator is faster. Freelancers pricing time rather than products should start with the hourly rate calculator, which already builds in a profit margin.

Frequently asked questions

What is a good profit margin?

It depends on what you sell. Businesses with high volume and low prices, such as grocery, live on small gross margins. Products with low delivery cost, such as software or digital goods, often keep most of each sale. Compare with businesses in your own category, and make sure you are comparing margin with margin, not margin with markup.

Can margin be more than 100%?

No. Margin is profit divided by revenue, and profit can never exceed revenue unless cost is negative. Markup, on the other hand, has no upper limit: a product that costs $1 and sells for $10 has a 900% markup and a 90% margin.

Why is markup always higher than margin?

Both use the same profit on top, but markup divides it by the smaller number (cost) while margin divides it by the larger number (revenue). Dividing by a smaller number gives a bigger percentage.

Does this calculate net profit margin?

It calculates the margin on the figures you enter. Enter the direct cost of a product for gross margin, or enter total revenue and total costs for a period, including overheads and tax, and the result is a net margin for that period.

How do I convert markup to margin?

Margin = markup / (100 + markup) x 100. So a 25% markup is 25 / 125 = 20% margin. To go the other way, markup = margin / (100 - margin) x 100. The markup calculator on this site has a ready-made table.

Are my figures saved or sent anywhere?

No. The calculation happens in your browser and nothing is uploaded. If you use the Share button, the inputs are placed in the link itself so the recipient sees the same result.

Runs in your browser. Nothing you enter is uploaded.

This tool runs entirely on your device. There is no server-side processing and no account. Last reviewed October 21, 2026. Read the disclaimer.