Profit Margin Calculator
Profit margin % = (Revenue − Cost) ÷ Revenue × 100Free online tool
See how much revenue remains as profit after subtracting cost.
Instant calculation
Compare profit with total revenue.
Instant calculation
Find the selling price needed to achieve a target profit margin.
Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.
Tool and explanation maintained by Leslie. Report an incorrect result.
Input steps
Use Margin for an existing sale or Target margin to price an item.
For Margin, enter revenue and cost. For Target margin, enter cost and the desired margin as a percentage of the selling price.
Calculate margin for a completed sale, or Calculate selling price to recover the price needed for your target.
The formula
Subtract cost from revenue to find profit, then divide profit by revenue and multiply by 100.
Profit margin % = (Revenue − Cost) ÷ Revenue × 100Check the method
Each example follows the same formula used by the calculator.
(200 − 120) ÷ 200 × 100 = 40%40% margin; profit 80175 ÷ (1 − 0.30) = 250. Profit = 250 − 175 = 75.Selling price 250. Profit is 30% of that price.Revenue 100 with cost 80 gives profit 20 and margin 20%. To target a 25% margin on cost 90, revenue must be 90/(1-0.25) = 120. Adding 25% to cost would produce a lower margin.
In Margin mode, revenue 250 with cost 175 gives profit 75 and margin 30%. In Target margin mode, cost 175 and a 30% target give 175/0.7 = 250. The reverse calculation is a check, not a second profit source. A 100% target cannot produce a finite selling price for positive cost.
Suppose an item is listed at 100 but sells for 90 after a discount, with cost 60. The realized margin is (90 − 60)/90 = 33.33%, not 40% based on the list price. Choose whether your figures represent product gross margin or a broader profit measure. Sales tax collected for an authority and unrecorded business costs should not silently change that definition.
These references explain the underlying concepts. They do not endorse this website or verify an individual result.
Method notes updated by Leslie.
Common questions
If cost exceeds revenue, the difference is a loss and the margin is negative. Revenue must not be zero. Use matching periods and decide whether cost means product cost or all operating expenses.
Subtract cost from revenue, divide the profit by revenue, and multiply by 100.
Yes. A negative margin means cost is greater than revenue, producing a loss.
Revenue is the divisor in the margin formula, so zero revenue makes the percentage undefined.
Margin divides profit by revenue, while markup divides profit by cost. They answer different business questions.
Continue calculating