Margin & Markup Calculator

Turn cost and revenue into profit, profit margin % and markup %, or work out the revenue needed to hit a target margin — 100% in your browser, no upload.

Cost & revenue → profit, margin, markup

Profit: 20Margin %: 20Markup %: 25

Cost & target margin → required revenue

Required revenue: 100

Margin ↔ markup converter

= markup %: 25= margin %: 20

🔒 Calculated in your browser — nothing is uploaded. Plain numbers, no currency.

Margin and markup from cost and revenue

Enter a cost and a revenue and the tool instantly shows the profit, the profit margin and the markup. Margin measures profit against the selling price (profit ÷ revenue × 100), while markup measures profit against the cost (profit ÷ cost × 100), so the same sale of cost 80 and revenue 100 is a 20% margin but a 25% markup. Everything updates live and uses plain numbers, so it works in any currency you like.

Price backwards from a target margin

Know your cost and the margin you want to earn? The second section solves for the selling price using revenue = cost ÷ (1 − margin ÷ 100). A 20% margin on a cost of 80 needs revenue of 100. Because a margin of 100% or more is mathematically impossible for a positive cost, the tool shows a short notice instead of a nonsensical number.

Frequently asked questions

What is the difference between margin and markup?

Both measure the same profit but against different bases. Margin = profit ÷ revenue × 100 (share of the selling price that is profit). Markup = profit ÷ cost × 100 (how much you added on top of cost). A cost of 80 sold for 100 is a 20% margin and a 25% markup.

How do I find the revenue needed for a target margin?

Use the second section. Revenue = cost ÷ (1 − margin ÷ 100). For a 20% margin on a cost of 80, revenue = 80 ÷ 0.8 = 100. A target margin of 100% or more is impossible for a positive cost, so the tool flags it.

Is anything uploaded to a server?

No. Every calculation runs entirely in your browser with JavaScript. Nothing you type is sent anywhere or stored.