Margin Calculator
This margin calculator shows margin percent, markup percent, and dollar profit from cost and selling price, or the price needed for a target margin.
How to use
- Enter cost and selling price to see profit, margin, and markup.
- Or enter cost and a target margin to solve for the selling price.
- Keep both numbers in the same currency. Tax and fees are not added for you.
Formula
Profit = price − cost. Margin % = profit ÷ price × 100. Markup % = profit ÷ cost × 100. Price for a target margin = cost ÷ (1 − target margin).
Example. A $60 cost and a $100 price is $40 profit, a 40% margin, and about a 66.7% markup. A 40% target margin on a $60 cost needs a $100 price.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by selling price. Markup is profit divided by cost. A 50% markup is a 33.3% margin.
How do you calculate profit margin?
Margin % = (selling price − cost) / selling price × 100. Use the same currency units for both inputs.
Can I solve for selling price from a target margin?
Yes. Selling price = cost / (1 − target margin). A 40% margin on a $60 cost needs a $100 price.
Is gross margin the same as markup?
No. Gross margin uses selling price in the denominator; markup uses cost.
Does this include taxes or fees?
No. Enter net cost and price, or add fees into cost yourself before calculating.
Related tools
- FinanceBreak Even CalculatorUnits and revenue needed to cover fixed plus variable costs.
- FinanceMarkup CalculatorConvert cost and markup into selling price, profit per unit, and gross margin.
- FinanceDiscount CalculatorSale price, dollars saved, and original price from a percent or dollar off.
- FinanceTip CalculatorTip amount, total bill, and a per-person split from bill and percent.
- FinanceMortgage Refinance CalculatorCompare your current mortgage to a refinance: new payment, interest, and break-even.
- FinanceHELOC CalculatorEstimate max line, remaining equity, and HELOC interest or P&I payments.