easyMcalc

School arithmetic, one rounding pointConventions reviewed 12 September 2026

Margin calculator

An estimate for information only, not financial advice. How this is worked out

Margin 59.596% Full breakdown

The trade
What the goods cost you, including anything you had to spend to get them.

The trade

Margin 59.596%

Cost
$40
Selling price
$99
Profit
$59
Margin
59.596%
Markup
147.50%

Margin is profit over the selling price; markup is the same profit over the cost. They are the same number only when there is no profit at all, and a margin of fifty per cent is a markup of a hundred.

Margin and markup are not the same number

Both describe the same profit on the same trade. Margin measures it against what you sold for; markup measures it against what you paid. Buy at forty and sell at eighty and the profit is forty either way, but the margin is fifty per cent and the markup is a hundred.

The confusion is expensive in one direction in particular. A shop told to work on a forty per cent margin, that instead adds forty per cent to cost, sells at a margin of about twenty-nine per cent and wonders where the money went. Going the other way it overprices and loses the sale. This page prints both figures for every trade, always, so the two can never be quietly swapped.

Two rules of thumb worth keeping: markup is never the smaller number of the two, and margin stays below a hundred per cent, because reaching it would mean the goods cost nothing. The two are equal only when there is no profit at all, and a margin prints as a round hundred only when the cost is so small beside the price that it rounds away.

Three directions, one trade

You can start from a cost and a selling price, from a cost and the margin you need, or from a cost and the markup you want to apply. All three describe the same three quantities, and whichever two you have, the page works out the rest.

Pricing from a margin is the direction most people want and the one most calculators leave out. It is a division rather than a multiplication: a cost divided by one minus the margin. Adding the margin to the cost is the mistake that produces the wrong answer above.

Rounding, and why the margin can read back slightly differently

A price is money and money has a smallest unit. Asking for a particular margin gives a price that has to be rounded to that unit, and the margin of the rounded price is not exactly the margin asked for. On ordinary amounts the difference is invisible. On very small ones it is not: a cost of one, priced for a five per cent margin, rounds to 1.05, whose actual margin is a little under 4.8 per cent.

The page always prints the margin of the price it actually produced, rather than echoing back the figure typed in. A calculator that showed you the number you asked for would be telling you about your question rather than about the answer.

What the trade does not include

The cost here is whatever you decide to count as cost, and that decision is the whole of cost accounting. Landed cost with shipping and duty, cost plus a share of overhead, or the invoice price alone all give different margins on the same sale. Pick one, use it consistently, and know which one you picked.

Not in the arithmetic at all: sales tax, which is collected on behalf of a government and is not revenue; card fees and marketplace commissions, which come out of the money you receive; returns; and the discounts a customer actually takes, which the discount calculator handles.

Common questions

How do I convert a markup into a margin?

Choose the markup direction and read the margin off the result. The relationship is fixed: a markup of a half is a margin of a third, a markup of one is a margin of a half, a markup of three is a margin of three quarters. The gap widens as the numbers grow.

What margin should I be aiming at?

That is a question about your trade rather than about arithmetic, and any calculator that answered it would be guessing. Margins differ by an order of magnitude between a grocer and a software company, and the only number worth comparing yours to is the one the same kind of business next door is working on.

Can the margin be negative?

Yes. Selling below cost gives a negative profit, a negative margin and a negative markup, and the page says so rather than hiding the sign. It is a real situation: clearing old stock, or a loss leader.

Does this handle a discount off the selling price?

Not in one step, and deliberately so. Work out the discounted price first, then bring that price back here as the selling price. The margin you are left with after a promotion is the number that matters, and doing it in two steps makes it visible instead of burying it.

Is anything I type stored?

No. The calculation happens on the server as part of rendering the page, nothing is written down, and the access log for this site drops the query string precisely so that the numbers you enter are never recorded.

Sources

There is nothing to cite. This page is school arithmetic on the numbers you typed, and no authority defines a right way to do it. What is worth stating instead is the convention the page chose, which is in the note below.

How this is worked out

One amount, one percentage, and the amount they imply. The part is the amount multiplied by the rate and rounded to the nearest minor unit, in a single step; the rest is the amount less the part rather than a second multiplication, so the two halves always add up to what was split. A share is the part divided by the whole, rounded the same way. Every figure on this page is one of those three steps or a chain of them.

Nothing here is a quote, an offer or an underwriting decision.

What this page does not take into account:

  • Income tax and any other deduction from what you earn
  • Overhead, and every other question of what counts as cost
  • Card fees and marketplace commissions taken out of what you receive