Finance
Profit Margin Calculator
Use revenue and costs for the same sale or period, on a consistent tax basis. The answer is profit divided by revenue.
Let’s calculate.
Usage estimateExpress profit as a percentage of revenue.
Formula and worked example
Margin (%) = (revenue − cost) / revenue × 100
Reference example
Revenue 100 and cost 60 give a margin of 40%.
When this calculation applies
The chosen cost scope determines whether this represents a gross or net-style margin. Revenue must be positive. Negative margin means a loss. For revenue 100 and cost 60, margin is 40%, whereas markup is about 66.67%.
Background reference: OpenStax. References explain the method or units; they do not certify this calculator.
Source scope: The finance text defines profit relative to revenue. The result depends on which costs you include; it is not automatically a formally reported net profit margin.
For the derivation, input conventions and numerical limits, open .
How to use this result
Revenue of 250 and included costs of 175 leave profit of 75 and a margin of 30%. The markup on those costs is approximately 42.86%. If another 25 of relevant costs were omitted, including them reduces profit to 50 and margin to 20%.
Is the result gross margin or net margin?
That depends on the costs you enter. Direct product cost alone does not include all operating costs, financing and tax. State the cost scope alongside the result; the calculator cannot classify an incomplete cost total as formal net profit.
Why does a 30% markup not give a 30% margin?
Markup divides profit by cost; margin divides by revenue. With cost 100 and price 130, profit is 30, markup is 30% and margin is approximately 23.08%. Changing the denominator changes the percentage.
What happens when there is a loss?
Costs above positive revenue produce a negative margin. Revenue of 250 and cost 300 gives −20%. Zero revenue is rejected because profit divided by zero has no defined percentage; it is not a 0% margin.