Margin Calculator – Calculate Profit Margin and Markup

Work out profit, margin and markup from cost and revenue.

Margin Calculator What is this? ↓
About the Margin Calculator

What is the Margin Calculator?

A margin calculator converts between cost, selling price, profit, margin and markup.

Why use this calculator?

Businesses need to price products so that margins cover overhead and profit. Confusing margin with markup leads to underpricing and thin profits.

How to use it

  1. Enter the cost of the item.
  2. Enter the selling price.
  3. See profit, margin and markup instantly.

Formula

Margin = (revenue − cost) ÷ revenue; Markup = (revenue − cost) ÷ cost.
Margin and markup are different percentages of different bases and should not be used interchangeably.
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit as a percentage of revenue; markup is profit as a percentage of cost. A 50% markup equals only a 33% margin.
What is a good profit margin?
It varies by industry. Software and services often run high margins, while retail and grocery operate on thin single-digit margins.
Can I print or share my result?
Yes. Use your browser's print function or screenshot the result. The page is designed to print cleanly.
What if my inputs are outside the typical range?
The calculators accept a wide range of values, but extreme inputs may produce unrealistic results. Double-check the units you are using.
How often is the calculator updated?
We review formulas and rates periodically to keep them aligned with current standards and published data.
Is this calculator free to use?
Yes. Every calculator on this site is completely free, with no hidden fees, no subscriptions and no limits on how many times you can use it.
How accurate are the results?
We use standard, widely accepted formulas and calculate in your browser using double-precision arithmetic. Results are rounded for readability, so treat them as reliable estimates rather than a guarantee. Real-world factors can vary the true figure.
Can I add this calculator to my own website?
Yes. Open this calculator page and use the "Add to your website" box in the sidebar to copy a ready-made iframe snippet, then paste it into any HTML page.
Does it work on a phone or tablet?
Yes. The layout is fully responsive, so it works on desktops, laptops, tablets and mobile phones, and every input adapts to touch screens.
Is the information I type kept private?
Yes. All calculations run locally in your browser. Nothing you enter is uploaded, stored or shared with anyone.

Related reading: Finance Tips

All articles →