Margin & Markup Calculator
Enter cost plus a price, margin percent or markup percent and compute the missing values, profit, margin and markup.
🔒 Runs entirely in your browser — nothing is uploadedMargin versus markup
Margin and markup both describe profit, but they use a different base, and confusing them leads to underpricing. Markup measures profit against cost: markup % = (price − cost) ÷ cost × 100. Margin measures the same profit against the selling price: margin % = (price − cost) ÷ price × 100. Because price is larger than cost, the margin percentage is always smaller than the markup percentage for the same sale. A product bought for 40 and sold for 100 has a profit of 60, a markup of 150% and a margin of 60%.
This calculator lets you start from whatever you know. Enter the cost, then choose to provide the selling price, a target margin or a target markup. From cost plus price it works out profit, margin and markup directly. From cost plus margin it solves for price using price = cost ÷ (1 − margin ÷ 100). From cost plus markup it uses price = cost × (1 + markup ÷ 100). Every card updates together so you can see how a pricing decision affects each figure at once.
Setting prices with confidence
Retailers, freelancers and makers use these numbers to set prices that actually cover costs and leave a profit. If you think in margin — the share of each sale you keep — enter a target margin and read the price you must charge. If your supplier or industry quotes in markup, enter the markup and confirm the resulting margin so you are not surprised by thinner-than-expected profit. Watch for the edge case where margin reaches 100%: that would require an infinite price, so the calculator asks for a margin below 100%. All arithmetic runs locally in your browser using standard precision, which is suitable for everyday pricing, quoting and budgeting, and none of your figures leave the page.
How to use
- Enter the costType the cost of the item — what you paid to make or buy it.
- Add one more valueProvide either the selling price, the margin percent or the markup percent.
- Read the full breakdownThe calculator fills in price, profit, margin and markup from your two inputs.