Profit Margin Calculator
Calculate profit, margin and markup from revenue and cost.
All calculations happen locally in your browser — nothing is uploaded, stored or tracked.
Enter revenue
Total sales or selling price.
Enter cost
Total cost of goods/services sold.
Read the result
Profit, margin and markup.
What Is Profit Margin?
Profit margin is the percentage of revenue that remains after costs — the core profitability measure of any business. It is what separates "we made money" from "we made enough money to matter".
The calculator reports gross profit, the margin percentage (profit ÷ revenue) and the markup percentage (profit ÷ cost), so you can speak both languages of pricing.
The Formulas
Margin is expressed against the selling price; markup against the cost. They are different numbers — a 50% markup is a 33% margin.
Your data never leaves your device.
Every calculation on this site runs in your browser using vanilla JavaScript. Nothing is uploaded, stored or tracked.
- 100% local, client-side calculations
- No data stored on any server
- No tracking, no analytics, no ads scripts
- Works offline once loaded
Frequently Asked Questions
How do I calculate profit margin?
Divide profit (revenue − cost) by revenue and multiply by 100.
What is the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of the cost. A 50% markup equals a 33.3% margin.
What is a good profit margin?
It varies wildly by industry — grocery stores run on 1–3%, software on 70–90%. Compare with your sector.
How do I price for a target margin?
Price = cost ÷ (1 − desired margin). For a 40% margin on a $60 cost: 60 ÷ 0.6 = $100.
Does this include taxes?
No — it is gross profit before taxes and other operating expenses.