Profit Margin Calculator
Find your profit, profit margin and markup from cost and selling price, or work out what price to charge for the margin you want.
Last updated: 24 November 2026
Profit from cost and price
Price needed for a target margin
How it works
Margin % = profit ÷ selling price × 100
Markup % = profit ÷ cost × 100
Price for margin m = cost ÷ (1 − m/100)
Margin and markup are not the same. If an item costs 800 and sells for 1,000, the profit is 200. The margin is 20% of the selling price, but the markup is 25% of the cost. To get a 30% margin on a cost of 800, you must sell at 1,142.86, not at 800 + 30%.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost, so markup is always the larger number.
How do I calculate profit percentage?
Divide the profit by the cost price and multiply by 100. That is the markup. For margin, divide by the selling price instead.
How do I set a price for a 25% margin?
Divide the cost by 0.75. For example a cost of 600 gives a price of 800.
Can the profit margin calculator show a loss?
Yes. If the selling price is below the cost, the result is shown as a loss with a negative margin.
How do I include a discount?
First work out the sale price with the Discount Calculator, then enter it here as the selling price.
More free tools
- Discount CalculatorSale price, savings and discount percentage, with optional tax.
- Percentage Calculator% of a number, percentage change, increase and decrease.
- Compound Interest CalculatorGrowth of savings with compound and simple interest.
- Loan EMI CalculatorMonthly instalment, total interest and yearly breakdown.
All free tools
Math Calculators
- Scientific Calculator
- Percentage Calculator
- Quadratic Equation Solver
- Average Calculator
- HCF & LCM Calculator
- Prime Number Checker
- Square Root Calculator
- Speed, Distance & Time Calculator
- Fraction Calculator
- Ratio Calculator
- Standard Deviation Calculator
- Pythagorean Theorem Calculator
- Area Calculator
- Percent Error Calculator
- Online Calculator
- Plot Area Calculator
Free notes and MCQs: Accounting equation and financial statements.