What the Margin & Markup Calculator does
The Margin and Markup Calculator takes two inputs, item cost and selling price, and returns three results: profit margin as a percentage of the selling price, markup as a percentage of the cost, and gross profit in money. A note under the results restates which base each percentage uses, because the two are often confused.
With the example values of 60 cost and 100 price, the profit is 40, the margin is 40 percent and the markup is 66.67 percent. Same profit, two different percentages, because margin divides by 100 and markup divides by 60.
The tool reports gross profit only. Overheads, shipping, payment fees, returns and taxes are not deducted, so the margin shown is the gross margin on one item rather than the net profit of a business. Nothing you type leaves your browser.
How to use it
Enter the item cost
Type what one unit costs you as a single number, including any landed costs you want counted, such as freight or duty.
Enter the selling price
Type the price the customer pays before sales tax. Both fields accept decimals.
Compare profit, margin and markup
Read the three results. If the price is below the cost, the profit and both percentages turn negative.
Margin and markup: the formulas in words
Gross profit is the selling price minus the cost. Profit margin is gross profit divided by the selling price, times 100. Markup is gross profit divided by the cost, times 100. The Wikipedia articles on gross margin and on markup define both terms the same way.
Take a product that costs 25 and sells for 40. The profit is 15. Margin: 15 divided by 40 is 37.5 percent. Markup: 15 divided by 25 is 60 percent. The markup is always the larger of the two whenever the profit is positive, because the cost is smaller than the price.
Results are rounded to two decimals for display. A division by zero has no answer: a selling price of 0 makes the margin read Enter a number and a cost of 0 does the same for markup.
Converting between the two, and setting a price from a target margin
To turn a markup into a margin, divide the markup by 100 plus the markup, then multiply by 100: a 50 percent markup is a 33.33 percent margin. To turn a margin into a markup, divide the margin by 100 minus the margin, then multiply by 100: a 20 percent margin is a 25 percent markup.
The tool does not solve for price, but the arithmetic is short. For a target margin, divide the cost by 1 minus the margin as a decimal: a 40 percent margin on a cost of 60 needs a price of 60 divided by 0.6, which is 100. For a target markup, multiply the cost by 1 plus the markup as a decimal: a 30 percent markup on 60 gives 78. Type the result into the selling price field to confirm.
- A 25 percent markup equals a 20 percent margin
- A 50 percent markup equals a 33.33 percent margin
- A 100 percent markup equals a 50 percent margin
- A 60 percent margin equals a 150 percent markup
Why the distinction matters when you set prices
Applying a 'margin' of 30 percent as a markup leaves you with only a 23.08 percent margin, which on thin-margin goods can turn an expected profit into a loss once overheads are paid. Agree with suppliers, marketplaces and colleagues on which word means what. Sales taxes, discounts and marketplace commissions are charged as a share of the selling price, so they compare naturally with margin; cost-plus pricing is expressed on cost, like markup.
Gross profit per item is not the whole story. Fixed costs are covered only after enough units sell, and payment processing fees, shipping and returns reduce the figure further. Use this tool for the per-item arithmetic and your accounts for the rest.
Limits to know before you rely on it
- Gross profit only: overheads, fees, shipping, returns and taxes are not deducted.
- It does not solve for a selling price from a target margin or markup; use the formulas on this page.
- A zero cost or zero price makes markup or margin read Enter a number because the division is undefined.
- Percentages are rounded to two decimal places on screen.
- Single-item arithmetic; it does not total a basket or weight several products.
Questions people ask about the Margin & Markup Calculator
What is the difference between margin and markup?
Both start from the same gross profit, selling price minus cost. Margin expresses that profit as a percentage of the selling price; markup expresses it as a percentage of the cost. On a 60 cost and 100 price the margin is 40 percent and the markup is 66.67 percent.
How do I price an item to get a 50 percent margin?
Divide the cost by 0.5. An item costing 18 needs a price of 36 to carry a 50 percent margin. Enter 18 and 36 into the tool and it confirms a profit of 18, a margin of 50 percent and a markup of 100 percent.
Why is my markup always higher than my margin?
Because the cost is smaller than the price whenever you make a profit, and dividing the same profit by a smaller number gives a larger percentage. The two are equal only when the profit is zero, and both are negative when you sell below cost.
Can the calculator handle a loss?
Yes. If the selling price is below the cost the profit is negative and so are both percentages. Selling a 50 item for 45 shows a profit of minus 5, a margin of minus 11.11 percent and a markup of minus 10 percent.
Should I include shipping and overhead in the cost?
That is your choice. Including landed costs such as freight and duty gives a more realistic per-item margin. Fixed overheads like rent are normally left out of gross margin and handled in the overall accounts, a distinction the Wikipedia article on profit margin explains in terms of gross and net figures.
Is anything I enter saved?
No. The cost and price stay in the page in your browser and are recalculated on each keystroke. Reloading the page returns the example values of 60 and 100.
Sources and further reading
- Wikipedia: Gross margin, the definition used for the profit margin result (profit divided by selling price)
- Wikipedia: Markup, the definition used for the markup result (profit divided by cost) and the conversion between the two
- Wikipedia: Profit margin, on the difference between gross and net margins