Profit Margin Calculator
Calculate gross profit and gross margin from revenue and cost, including loss-making sales.
Loading tool…
How to use Profit Margin Calculator
See how much of your revenue remains after the cost you enter. Gross margin uses revenue as its denominator, making it useful for comparing sales with different selling prices.
- Enter positive revenue or a selling price.
- Enter the associated nonnegative cost in the same currency.
- Calculate gross profit and profit as a percentage of revenue.
Good to know
- A zero revenue has no defined profit margin and is rejected. Costs above revenue produce a negative margin.
- Only the costs entered are included; this is not necessarily net profit.
- Numbers use JavaScript floating-point arithmetic. Inputs are limited to 1,000 characters and a magnitude of 1 quadrillion. Results are rounded for display.
- These are arithmetic estimates, not financial or tax advice. No currency conversion, fees, or legally applicable tax rules are included.
Common questions
How is margin different from markup?
Margin divides profit by revenue. Markup divides profit by cost. A cost of 60 and a price of 100 give a 40% margin but about a 66.67% markup.
Can the result be negative?
Yes. A cost greater than revenue indicates a loss and produces a negative gross margin.
Keep going with related tools
All calculators →Markup Calculator
Turn a cost and a markup rate into a selling price, profit amount, and equivalent gross margin.
CalculatorsBreak-even Calculator
Estimate the whole units needed to cover fixed costs using a selling price and variable cost per unit.
CalculatorsPercentage Calculator
Calculate a percentage of any amount, then see the totals after adding or subtracting that percentage.
CalculatorsService Project Estimate Workbench
Build an authored service-project estimate from labor visits, minimum time blocks, resources, overhead and contingency, with one final price rounding and optional fee comparison.
CalculatorsFixed Sales Bundle Break-even Planner
Find whole repeating product bundles that cover fixed costs and a declared target profit.
CalculatorsPrice Volume Mix Revenue Bridge
Reconcile a matched product portfolio revenue change into exact price, total-quantity and sales-mix effects.