Profit Margin Calculator

Calculate profit, margin and markup from a cost and a selling price — instantly in your browser. It shows both margin and markup, because they are not the same thing.

Calculator Tools Free No upload Instant

Loading Profit Margin Calculator…

Your browser is preparing the tool. It runs 100% locally.

Quick Answer

Enter a cost and a selling price, and the tool returns the profit, the margin and the markup. The crucial point it makes clear: margin and markup are different. Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. So a cost of 800 sold at 1,000 is a 20% margin but a 25% markup. It runs entirely in your browser.

What the Profit Margin Calculator Does

This tool takes what an item costs you and what you sell it for, and shows the profit in money plus two percentages that people constantly mix up: the margin and the markup. Seeing both side by side is the whole point.

It is the quick way to price a product correctly, or to translate between the two percentages — because aiming for a margin but applying a markup is a classic and expensive mistake.

How It Works

The tool subtracts the cost from the selling price to get the profit. It then expresses that profit two ways: as a margin, by dividing it by the selling price, and as a markup, by dividing it by the cost. Both are shown as percentages.

The difference comes entirely from the denominator. Margin divides by the larger number (the price), so it is always the smaller percentage; markup divides by the smaller number (the cost), so it is always larger. The same profit therefore gives two different percentages.

Methodology

  1. Find the profit. Subtract the cost from the selling price.
  2. Calculate the margin. Divide the profit by the selling price and multiply by 100.
  3. Calculate the markup. Divide the profit by the cost and multiply by 100.
  4. Show all three. Display the profit, the margin and the markup together.

Profit, margin and markup

profit = selling price − cost margin% = profit ÷ selling price × 100 markup% = profit ÷ cost × 100
Worked example
cost 800, selling price 1,000 → profit 200 · margin 20% · markup 25%

Margin is on the selling price; markup is on the cost. Markup is always the larger number — a 50% markup is only a 33% margin. Confusing the two underprices your product.

Assumptions

  • The cost you enter is the full cost of the item — typically the cost of goods. Overheads, operating costs and taxes not included in that figure are not part of this calculation.
  • The selling price is taken before sales tax; tax collected on top is not your profit.
  • Profit is simply price minus cost (gross profit per unit); it does not account for volume, fixed costs or discounts given.

Standards & references

  • Profit margin — Profit as a percentage of the selling price: profit divided by price. Because the price is the larger figure, margin is always the smaller of the two percentages and can never exceed 100%.
  • Markup — Profit as a percentage of the cost: profit divided by cost. Because the cost is smaller, markup is always larger than margin, and it can exceed 100%.
  • Why they are confused — Both describe the same profit, so they sound interchangeable, but the base differs. A 50% markup equals a 33% margin. Targeting a margin while applying a markup leads to underpricing.

Accuracy & Limitations

Profit, margin and markup are computed exactly from the cost and price you enter, so the figures are precise for a single item.

Margin and markup are deliberately both shown because they are not the same. Margin is on the selling price and markup is on the cost, so for the same profit the markup is always the larger number — a difference that catches people out when pricing.

It calculates gross profit per unit. It does not include overheads, operating expenses, fixed costs, or the effect of selling volume, so it is a pricing figure rather than a full profit-and-loss result.

It assumes the price is before tax. Sales tax collected from the customer is not profit, so do not include it in the selling price, or the margin and markup will be overstated.

Real-World Use Cases

Pricing a product

Set a selling price that hits the margin or markup you want.

Translating margin and markup

See what a given markup means as a margin, and vice versa.

Checking profitability

Confirm the profit and percentages on a sale.

Avoiding underpricing

Make sure you are not aiming for a margin but applying a markup.

When to use it — and when not to

Good for

  • Pricing an item from cost and price
  • Seeing margin and markup together
  • Translating between the two percentages
  • Checking per-unit profit

Not the best choice for

  • Net profit after overheads and tax
  • Volume or break-even analysis
  • Multiple products or a full P&L
  • Including sales tax in the price

For net profit, factor in overheads, operating costs and tax separately. For how many units you must sell to cover fixed costs, use a break-even calculator. This tool gives per-unit gross profit, margin and markup.

Frequently Asked Questions

What is the difference between margin and markup?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. The same profit gives two different percentages because the base differs — and markup is always the larger of the two.
Why is a 50% markup only a 33% margin?
Markup divides the profit by the cost, while margin divides it by the higher selling price. If cost is 100 and markup is 50%, the price is 150, profit is 50, and 50 divided by 150 is 33%. Same profit, different base.
Which should I use to price a product?
Either, as long as you are consistent. Decide your target margin or markup and apply the matching formula. The danger is aiming for a margin but calculating a markup, which underprices the item.
How is profit calculated here?
Profit is the selling price minus the cost — the gross profit on one item. The margin and markup percentages are both derived from that profit.
Can margin be more than 100%?
No. Margin is profit over the selling price, and profit cannot exceed the price, so margin caps at just under 100%. Markup, being over the cost, can exceed 100%.
Does this include overheads or tax?
No. It calculates gross profit per unit from the cost and price you enter. Overheads, operating costs and taxes are not included, so it is a pricing figure, not net profit.
What cost should I enter?
The full cost of the item — usually the cost of goods, including what you pay to make or buy it. Leave out general overheads, which are handled separately from per-unit pricing.
Should the selling price include tax?
No. Enter the price before sales tax, since tax collected from the customer is not your profit. Including it would overstate the margin and markup.
How do I convert a markup to a margin?
Divide the markup by one plus the markup. A 50% markup is 0.5 divided by 1.5, which is 33%. This tool does it for you by showing both from the same cost and price.
What is a good margin?
It varies widely by industry — groceries run on thin margins, software on high ones. There is no universal figure; compare against typical margins in your own sector.
Is my data uploaded?
No. The calculation runs entirely in your browser. Nothing is sent to a server, so your figures stay on your device.
Can I work backward from a target margin to a price?
You can adjust the selling price until the margin shown matches your target. The price for a target margin is the cost divided by one minus the margin as a decimal.

References

Computes profit, profit margin (profit over selling price) and markup (profit over cost) together; honest that margin and markup differ, and confusing them underprices a product.

PopularHot

EMI Calculator

Use EMI Calculator to plan with confidence — instant, transparent calculations.

CalculatorOpen Tool
PopularHot

BMI Calculator

BMI Calculator online: fast, accurate numbers for smarter decisions.

CalculatorOpen Tool
Popular

Loan Calculator

Loan Calculator with live results and the exact formula shown — free and accurate.

CalculatorOpen Tool
Popular

Percentage Calculator

Percentage Calculator online: fast, accurate numbers for smarter decisions.

CalculatorOpen Tool
Popular

Age Calculator

Use Age Calculator to plan with confidence — instant, transparent calculations.

CalculatorOpen Tool
Popular

Discount Calculator

Discount Calculator online: fast, accurate numbers for smarter decisions.

CalculatorOpen Tool

Ready to try the Profit Margin Calculator?

It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.