Profit Margin Calculator
Enter revenue and cost to get profit, profit margin, and markup. Runs in your browser.
Margin is profit as a share of revenue; markup is profit as a share of cost, so the two percentages differ. This is an educational estimate to help you plan and price, not financial, accounting, or tax advice. Check the figures against your own records or a qualified professional before a real decision.
A free profit margin calculator that turns a selling price and a cost into the numbers you actually price with. Enter the revenue (the selling price) and the cost, and the tool shows the profit, the profit margin as a percentage of revenue, and the equivalent markup as a percentage of cost. Seeing both margin and markup side by side prevents the common mix-up between them. Everything runs in your browser, and nothing you type is stored.
How to use this tool
- 01Enter the revenueType the selling price or the revenue for the item or order.
- 02Enter the costType what it cost you to make or buy the item.
- 03Read margin, profit, and markupThe profit margin, the profit amount, and the markup update as you type.
When is this useful?
- Price a productCheck the margin a price gives before you set it.
- Compare productsSee which items carry the best margin, not just the biggest profit.
- Sanity-check a dealEnter a discounted price to see the margin you would still keep.
Examples
- A healthy marginRevenue 100 and cost 60 give a 40 profit, a 40% margin, and a 66.67% markup.
- Thin marginRevenue 100 and cost 90 give a 10 profit and a 10% margin.
- A lossRevenue 100 and cost 120 give a negative 20% margin, showing you are selling below cost.
Formula and how the calculation works
Profit is revenue minus cost. Margin expresses that profit as a share of revenue: margin = profit / revenue x 100. Markup expresses the same profit as a share of cost: markup = profit / cost x 100. That is why a 40% margin and a 66.67% markup can describe the same sale.
Inputs, outputs, and assumptions
You enter revenue and cost in the same currency. The tool returns the margin, the profit, and the markup. It uses one revenue and one cost, so blend your figures first if you are looking at a bundle or an order.
Supported modes or scenarios
Use it per unit or per order, and enter a discounted price to see the margin after a promotion. A negative result means the cost is higher than the revenue.
Limitations and common mistakes
The biggest mistake is confusing margin with markup when setting a price. This is a single gross calculation; it does not include overheads, taxes, fees, or shipping unless you fold them into the cost. This is an educational estimate to help you plan and price, not financial, accounting, or tax advice. Check the figures against your own records or a qualified professional before a real decision.
Privacy and local processing
The calculation runs in your browser on your device. Your numbers are never uploaded, stored, or shared, and closing the tab clears everything.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by revenue; markup is profit divided by cost. The tool shows both so you do not confuse them.
Is this gross or net margin?
It is a gross margin based on the cost you enter. To approximate net margin, include overheads and fees in the cost.
Can the margin be negative?
Yes. A negative margin means you are selling below cost.
Which currency does it use?
Any, as long as revenue and cost are in the same currency. The tool works with the numbers only.
Is my data saved?
No. Everything runs in your browser and nothing you enter is stored.
Related tools
- Markup CalculatorEnter a cost and a markup percentage to get the selling price, profit, and margin. Runs in your browser.Open
- Break-Even CalculatorFind how many units you must sell to cover fixed and variable costs, and the revenue at that point. Runs in your browser.Open
- Commission CalculatorEnter a sale amount and a commission rate to get the commission and total pay, with optional base pay. Runs in your browser.Open
- Percentage CalculatorWork out percentages fast: what is X% of a number, what percent one number is of another, the percentage change between two values, and adding or subtracting a percentage from a number.Open

