Markup / Margin Calculator
Price, profit, markup, and margin from your cost — set the price by markup %, margin %, or a target price.
Last updated
Profit as a % of cost.
Selling price
$90.00price
$30.00 profit per unit
- Cost
- $60.00
- Selling price
- $90.00
- Profit
- $30.00
- Markup (over cost)
- 50%
- Margin (over price)
- 33.3%
Estimates for general information, not financial advice.
How to use the markup / margin calculator
Enter what an item costs you, then pick how you want to set the price. “By markup %” adds a percentage on top of your cost; “By margin %” targets a percentage of the selling price as profit; “By price” lets you type a price and see what markup and margin it implies. Whichever you choose, the tool returns all four numbers at once — selling price, profit, markup %, and margin % — so you can see the same deal from every angle.
Start with the defaults to anchor the idea. A $60.00 cost with a 50% markup gives a $90.00 price and $30.00 of profit. That $30.00 is a 50% markup because it’s measured against the $60.00 cost, but only a 33.3% margin because the same $30.00 is measured against the $90.00 price. One profit, two percentages — that gap is the whole point of this tool, and it’s where most pricing mistakes start.
Use “By markup %” when you think in terms of a standard add-on over cost — a keystone retailer doubling cost, or a trade that always adds 40% to materials. Use “By margin %” when you have a profit target as a slice of revenue, which is how accountants, investors, and most income statements read profitability. Switch between the two modes on the same cost and watch how a tidy markup number shrinks into a smaller margin number; that’s not an error, it’s the math.
To price for a target margin, set the mode to “By margin %” and enter the margin you need to hit. The tool uses price = cost ÷ (1 − margin), so a $60.00 cost at a 40% target margin prices at $100.00 — and that same price is a 66.7% markup. If you had instead added a 40% markup, you’d land at $84.00 with only a 28.6% margin and fall short of your goal. Pricing to a margin and pricing to a markup are not interchangeable, and the difference grows as the percentages climb.
Use “By price” to reverse-engineer a number someone else set. Drop in your cost and a competitor’s or a quoted price, and you’ll see the markup and margin baked into it instantly — handy for checking whether a deal clears the margin your business needs. For other money math, the percentage, discount, and sales-tax tools cover the everyday cases; this one stays focused on the markup-versus-margin distinction that trips up so many sellers.
The formula
Set the price from a markup or a margin, then the profit and both percentages fall out of it. Markup divides profit by cost; margin divides the same profit by price:
from markup: price = cost × (1 + markup% ÷ 100)
from margin: price = cost ÷ (1 − margin% ÷ 100)
profit = price − cost
markup% = profit ÷ cost × 100 margin% = profit ÷ price × 100Worked example with the defaults — a $60.00 cost at a 50% markup: price = 60 × 1.50 = $90.00, profit = 90 − 60 = $30.00. Measured against the $60.00 cost that profit is a 50% markup; measured against the $90.00 price the very same $30.00 is a 33.3% margin. The same dollars are always a bigger percentage as markup than as margin, because cost is the smaller base. Doubling cost makes the point sharply: it’s a 100% markup but only a 50% margin.
Now price the same item for a target margin instead. At a 40% margin, price = 60 ÷ (1 − 0.40) = 60 ÷ 0.60 = $100.00, profit = $40.00 — which works out to a 66.7% markup. Adding a 40% markup would have priced it at only $84.00 with a 28.6% margin, well short of the goal, so always divide by (1 − margin) when a margin is the target.
Frequently asked questions
Related tools
Discount Calculator
The sale price after a percentage off — with optional sales tax applied after the discount.
Open calculator →
Sales Tax Calculator
Add sales tax to a price, or back it out of a tax-included total to find the pre-tax amount.
Open calculator →
Percentage Calculator
The three everyday percentage questions in one tool — X% of Y, X is what % of Y, and percent change.
Open calculator →