Profit Margin Calculator
Calculate profit, margin %, and markup % — with what-if pricing analysis
Calculation Mode
Enter Values
The total cost to produce or acquire the item
Must be between 0% and 100%
Percentage above cost price
📖 Margin vs Markup
Profit Margin = Profit ÷ Revenue × 100
(% of selling price that is profit)
Markup = Profit ÷ Cost × 100
(% added on top of cost price)
Enter values and press Calculate
Profit, margin %, markup % and more will appear here
Calculating…
Selling Price − Cost =
profit margin
Revenue Breakdown
Key Metrics
What-If Pricing Table
Required selling price for different margin targets (cost = )
Benchmarks are gross profit margin ranges. Net margins will vary after operating expenses.
The four pricing modes and the arithmetic behind them
In Cost and Revenue mode you supply both prices and the tool reports profit, margin, markup and the supporting ratios. In Cost and Margin mode it rearranges the margin equation to give selling price equals cost divided by one minus the margin as a decimal. In Cost and Markup mode it uses selling price equals cost multiplied by one plus the markup as a decimal. In Revenue and Margin mode it runs the first rearrangement backwards, so cost equals selling price multiplied by one minus the margin.
The derived figures follow from those. Cost as a percentage of revenue is simply the complement of margin. The revenue-to-cost ratio is selling price divided by cost. The margin field is capped below 100 per cent because a margin of exactly 100 per cent would require a cost of zero.
Worked example: pricing an item that costs 40
Gross profit is 100 minus 40, which is 60. Margin is 60 divided by 100, giving 60 per cent. Markup is 60 divided by 40, giving 150 per cent. Cost as a share of revenue is 40 divided by 100, or 40 per cent, which is exactly 100 minus the margin. The revenue-to-cost ratio is 100 divided by 40, or 2.5 times. Scaled up, the same item returns 6,000 of gross profit over 100 units and 60,000 over 1,000 units.
Now run the arithmetic the other way in Cost and Margin mode. With a cost of 40 and a target margin of 60 per cent, the price is 40 divided by 0.4, which is 100, matching the starting figure. In Cost and Markup mode, a cost of 40 with a 150 per cent markup gives 40 multiplied by 2.5, again 100.
Drop the price to 80 and profit falls to 40, margin to 50 per cent and markup to 100 per cent, which is the kind of comparison the what-if table lays out row by row.
Margin is not markup, and gross is not net
The second thing to keep in mind is that these are gross figures. Cost price here means the direct cost of making or buying the item. Rent, wages, marketing, payment fees, returns and tax all sit below this line, so a healthy gross margin can still leave a loss once overheads are counted. If you want a net picture, load the cost field with a fully absorbed cost rather than the bare unit cost.
Finally, treat margin targets as a starting point rather than a rule. What a market will bear varies by sector and by channel, and pricing below a competitor on a thinner margin is a decision about volume, not arithmetic. Nothing here is financial advice.