Margin Calculator
Profit margin, markup and profit from your cost and selling price
- 100% Free
- Files stay private
- Works in your browser
Your margin result
Profit margin, markup and profit from cost and revenue
Recent calculations
Your last 6 results show here, saved only in this browser. Tap one to bring its inputs back.
Profit margin is profit as a percentage of revenue; markup is profit as a percentage of cost. A negative result means the revenue is below cost (a loss).
How it works
Enter cost and revenue
Type what you paid in Cost and your selling price in Revenue.
Calculate the margin
Press Calculate. The tool subtracts cost from revenue to find profit, then compares it with revenue and with cost.
Read and copy the result
The panel shows Profit margin, Markup, Profit and Cost of revenue. Press Copy result to copy margin, markup and profit.
The Margin Calculator is a free online tool that turns a cost and a selling price into profit, profit margin, markup and cost of revenue. It exists to keep margin and markup apart, since they describe the same profit against different bases, and mixing them up underprices an item.
At a Glance
| Detail | Summary |
|---|---|
| What it does | Turns a cost and a selling price into profit, margin, markup and cost of revenue. |
| Input | Cost (what you paid) and Revenue (selling price), both above zero. |
| Output | The margin with a Profit, Loss or Break-even tag, a cost and profit bar, a receipt (Revenue, Cost with its share of revenue, Profit), and tiles for Profit margin, Markup and Cost of revenue. |
| Formatting | Percentages and amounts to 2 decimal places, with no currency symbol. |
| Runs where | Entirely in your browser. |
| Price | Free, with no sign-up. |
| Best for | Pricing checks, and telling margin apart from markup. |
What Is the Margin Calculator?
The Margin Calculator applies four formulas in your browser. Profit is revenue - cost. Profit margin is profit / revenue * 100. Markup is profit / cost * 100. Cost of revenue is cost / revenue * 100.
The point sits in the two middle formulas. Margin and markup share the same numerator, your profit, but divide by different things. Margin measures profit against the price you sell at, markup against the price you paid. The same deal therefore gives two percentages, and markup is always the larger.
How the Margin Calculator Is Different
Most margin tools return one number and leave you to work out which base it used. This one returns both, so the figures cannot be mistaken for each other.
| Detail | Summary |
|---|---|
| Margin and markup | Both from one pair of inputs. Typical tools show one and leave the base ambiguous. |
| Cost of revenue | A tile of its own, also shown beside the cost on the receipt. It always adds to 100% with the margin, a quick sense check. |
| Losses | Reports a negative margin, tagged as a loss. Typical tools error or show a blank. |
| Where it runs | In your browser. Typical tools post your cost figures to a server. |
Who Benefits from This Tool
- Small sellers: check a selling price clears the margin you intended.
- Buyers and resellers: convert a supplier's markup quote into the margin it leaves.
- Finance staff: sanity-check a line item without a spreadsheet.
- Freelancers: see what a quoted fee returns over the cost of delivery.
- Students: see margin and markup side by side from the same figures.
Key Features
- Both percentages: margin and markup from one cost and revenue pair.
- Loss handling: revenue below cost gives a negative margin, labelled a loss.
- Cost of revenue: the share of the price eaten by cost.
- Drag the cost: slide the edge between cost and profit on the bar, or tab to it and use the arrow keys, and the margin and markup change together. Drag past the revenue and the bar shows the loss.
- Pin and compare: pin a result, change the figures, and see the margin, markup and profit side by side with the change.
- Show the working: each formula with your own numbers, ready to copy.
- Quick picks and recent results: four examples fill the form in one tap, and your last six results stay in this browser so you can bring one back.
- Input guards: a cost or revenue of zero or less is refused.
- One-click copy: copies margin, markup and profit as a single line, or tap a receipt line or a tile to copy that figure.
How to Use
- Enter Cost, what the item cost you.
- Enter Revenue, what you sell it for.
- Select Calculate, or pick one of the Quick picks to load worked figures.
- Read the headline margin, then the receipt and the three tiles beneath it.
- Drag the edge on the bar to try another cost. Press Pin first to compare the two.
- Use Copy result, or Reset to clear.
Worked Example
Take the built-in sample: cost 75, revenue 125. Profit is 125 - 75, or 50. Margin is 50 / 125 * 100, or 40%. Markup is 50 / 75 * 100, or 66.67%. Cost of revenue is 75 / 125 * 100, or 60%.
One deal, two percentages: a 40% margin is the same as a 66.67% markup. Margin and cost of revenue add to 100%. Reverse the inputs, cost 125 against revenue 75, and the headline reads -66.67% margin with a Loss tag.
Common Use Cases
- Checking a price hits a target margin before publishing it.
- Translating a supplier's markup into the margin you would keep.
- Comparing two products by margin rather than by raw profit.
- Spotting a line that sells below cost.
Tips and Best Practices
- Agree which word you mean before quoting a number. A 50% markup is only a 33.33% margin.
- Margin can never reach 100%, since profit cannot exceed the selling price. Markup has no ceiling.
- Put every cost into the Cost field, not just the purchase price, or the margin reads high.
- Use the cost of revenue tile as a check. If it and the margin miss 100%, an input is wrong.
Limitations and Notes
- One direction only: cost and revenue in, percentages out. No reverse mode finds a price from a target margin.
- Single line item: one cost and one price, not a basket, a blended margin or a volume.
- Gross, not net: the result reflects only what you enter as cost, so it is not a net margin unless Cost carries every overhead.
- Rounding: percentages show to 2 decimal places, so a repeating markup shows as
66.67%.
FAQs
Margin is profit as a percentage of the selling price. Markup is the same profit as a percentage of the cost. Buy at 75, sell at 125, and the profit of 50 is a 40% margin but a 66.67% markup.
Because markup divides by the smaller number. Both use the same profit, but margin divides by revenue and markup by cost, and cost is lower on any profitable sale. The bigger the profit, the wider they sit apart.
No. It only runs from cost and revenue to the percentages. To price for a target margin, divide your cost by 1 minus the margin as a decimal: 75 at a 40% target is 75 divided by 0.6, which is 125.
It means revenue is below cost, so the sale loses money. The tool shows the negative percentage with a Loss tag rather than refusing the figures, because selling under cost is worth measuring.
It is the cost as a percentage of the selling price, so 75 against 125 is 60%. It has its own tile and is shown beside Cost on the receipt, and it always adds to 100% with the profit margin, a fast way to check you entered the right pair.
Drag the edge between cost and profit on the bar, or tab to it and use the arrow keys. Revenue stays fixed while the cost moves, and the margin and markup change together. Past the revenue the bar turns into the loss view. Press Pin first to keep the old figures beside the new ones.
None. Cost and revenue are plain numbers with no symbol, so the tool suits any currency provided both inputs use the same one. The percentages are unaffected either way.