Markup Calculator
Work out a selling price, gross profit, markup and margin—with the difference between them made clear.
Your pricing result
Enter a valid cost and the selected price or percentage. Results appear automatically.
Markup versus profit margin
Markup and profit margin use the same profit amount but different denominators. Markup compares profit with cost; margin compares profit with selling price. They are not interchangeable.
Gross profit = selling price − cost
Markup (%) = gross profit ÷ cost × 100
Profit margin (%) = gross profit ÷ selling price × 100
For an item that costs $100 and sells for $125, profit is $25. Markup is 25%, while margin is 20%. A 100% markup doubles cost and produces a 50% margin.
Find selling price from markup
Choose Price from cost and markup, enter a positive cost, and enter the percentage to add to that cost.
Selling price = cost × (1 + markup ÷ 100)
A $40 item with a 25% markup sells for $50. Its profit is $10, and its margin is $10 ÷ $50 × 100 = 20%. Zero markup sells at cost. This pricing mode accepts nonnegative markup; use cost-and-price mode to analyze a below-cost sale.
Find selling price from target margin
Choose Price from cost and target margin when you want profit to be a particular share of the selling price.
Selling price = cost ÷ (1 − margin ÷ 100)
A $40 cost with a target margin of 25% gives $40 ÷ 0.75, rounded to $53.33. The achieved margin is calculated from that cent-rounded price and is approximately 25%. Adding 25% to cost would instead give $50 and only a 20% margin.
A target margin of 100% is not possible with a positive cost and a finite selling price. This mode accepts margins from zero up to, but not including, 100%.
Analyze an existing price or a loss
Choose Markup and margin from cost and price to enter an existing selling price. A $100 cost and $80 price produce a $20 loss, −20% markup and −25% margin. A zero selling price produces −100% markup, but margin is undefined because its denominator is zero.
Zero cost is not supported: markup would require division by zero. Keep cost and price on the same basis—one item or the same batch—and include the expenses you want the price to recover.
Cent rounding and limits
Cost and price accept up to two decimal places and $1 billion. Percentages accept up to four decimal places. Markup can range from 0% to 1,000,000%; target margin must be below 100%. A computed price above $1 billion shows an error.
The calculator retains the full percentage fraction when calculating a price and rounds the final price half-up to cents. The displayed markup and margin are then recalculated from that price, not copied from the requested rate. For a $0.01 item with a requested 50% markup, the unrounded price is $0.015; rounding to $0.02 yields an achieved 100% markup and 50% margin. Requested rates are not guaranteed minimums after rounding.
Percentages display up to two decimal places; tiny nonzero ratios are labeled. Changing calculation type clears the second value to avoid reinterpreting a price as a percentage. Reset clears the entered amounts and feedback while retaining the selected calculation type.
What this pricing estimate excludes
Profit here is price minus the cost entered, not automatically your business’s net profit. Taxes, overhead, financing, shipping, discounts and transaction fees are not added automatically. If a fee depends on selling price, simply treating it as a fixed cost may not correctly recover that fee.
For general increases and decreases between numbers, use the Percentage Calculator. See our calculator methodology for how formulas and rounding are documented.
Choose the right related calculation
Use markup and margin for product pricing. To compare investment returns rather than selling-price percentages, use the ROI Calculator; for an old-versus-new numerical comparison, use the Percentage Increase Calculator.
Frequently Asked Questions
What is the difference between markup and profit margin?
Markup divides gross profit by cost; margin divides it by selling price. Buying for $80 and selling for $100 produces $20 gross profit, 25% markup, and 20% margin. Using one rate as the other can produce the wrong price.
What selling price gives a target margin?
Divide cost by 1 minus the target margin as a decimal. For a $40 cost and 25% target margin, $40 ÷ 0.75 gives $53.33 after cent rounding. Adding 25% to cost instead gives $50 and a 20% margin.
Does a 100% markup mean a 100% margin?
No. A 100% markup doubles cost and gives a 50% margin. With a positive cost, a 100% target margin cannot be achieved with a finite selling price.
Does the displayed profit include overhead and taxes?
Only the cost entered is subtracted from the selling price. Shipping, overhead, taxes, discounts, financing, and transaction fees are not added automatically. Include relevant costs consistently before treating the result as a pricing decision.