Margin, markup and selling price
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Margin Calculator
This margin calculator works out gross profit, profit margin and markup from a cost and a selling price, or finds the selling price you need to reach a target margin or markup. Margin is profit as a share of the selling price, (price − cost) ÷ price; markup is profit as a share of the cost, (price − cost) ÷ cost. A product that costs 60 and sells for 100 has a 40% margin but a 66.67% markup.
Mixing the two up is a common pricing mistake: adding a 40% markup to a cost of 60 gives a price of 84 and only a 28.6% margin. Choose what you know (selling price, target margin or target markup), enter the cost, and the calculator fills in the rest. Add the number of units to see total revenue, cost and profit, and use the table to compare the price and markup needed for margins from 10% to 70%. Everything runs locally in your browser.
Margin Calculator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Margin Calculator
- Under I know the, choose Selling price, Target margin or Target markup.
- Enter the Cost per unit and the selling price, margin or markup.
- Read the price, profit, margin and markup in the Result panel.
- Optionally enter the Number of units in the side panel to see totals, and use the margin table to compare price points.
Frequently asked questions
What is the difference between margin and markup?
Both use the same profit (price − cost) but divide by different numbers. Margin = profit ÷ price, markup = profit ÷ cost. Margin can never reach 100%, while markup can be any size. A 50% margin equals a 100% markup.
How do I calculate the selling price from a target margin?
Price = cost ÷ (1 − margin ÷ 100). For a cost of 60 and a 40% margin: 60 ÷ 0.6 = 100. From a target markup: price = cost × (1 + markup ÷ 100), so a 40% markup on 60 gives 84.
How do I convert margin to markup and back?
Markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup), using decimals. A 25% margin is a 33.33% markup; a 25% markup is a 20% margin. The table under the result lists common pairs for your cost.
Is this gross margin or net margin?
Gross margin: it only subtracts the cost you enter for the product. Net margin also subtracts overheads such as rent, salaries and marketing. To approximate net margin, include those costs per unit in the cost field.
Why does the calculator show a loss?
If the selling price is below the cost, profit and margin are negative. Margin also cannot be 100% or higher, because that would require a price of infinity.