CalcuAll.
A quick calculation, right here.

CalcuAlltor.

FREE ONLINE SCIENTIFIC CALCULATOR

0
Ready when you are.
English

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 estimate

Express profit as a percentage of revenue.

Your result
—%
Rounded to up to 2 decimal places.

EXPLORE THE FORMULA

Profit Margin Calculator

Finance · FORMULA GUIDE

Your current calculation

The values and displayed result follow the calculator as you edit it.

Revenue
—
Total cost
—
Your result—
This panel uses the calculator’s displayed, rounded result.

The formula

Margin (%) = (revenue − cost) / revenue × 100

Express profit as a percentage of revenue.

Variables and input conventions

revenue
Revenue
cost
Total cost

Understanding the calculation

Profit is revenue minus the supplied total cost. Divide that profit by revenue, then express it as a percentage.

Interpreting the money scenario

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%.

A worked example

Revenue 100 and cost 60 give a margin of 40%.

A fixed reference example; it does not change with your inputs.

Assumptions and valid inputs

Revenue positive; cost nonnegative. Include all costs relevant to your chosen margin. A negative result means a loss.

Rounding and numerical precision

Finance calculations use a private 640-significant-digit decimal context. Displayed amounts use your selected decimal places, not automatic currency minor-unit rounding. Use one currency throughout; there is no exchange-rate conversion. Growth and discounting require |exponent × ln(base)| ≤ 10,000; values beyond that computational limit show an error. Numeric inputs accept a decimal point or comma and scientific notation, at most 100 characters, with nonzero magnitude between 10⁻¹⁰⁰ and 10¹⁰⁰. Higher precision does not make a rate assumption or financial forecast accurate. Choose 0–8 decimal places for display and copying. Trailing zeros are omitted; very small values may round to zero. Display rounding does not change the underlying calculation. Finite-precision arithmetic is not symbolic exact arithmetic.

Accuracy of input data

Extra displayed decimals do not improve input accuracy. Measurement uncertainty, product variability and uncertain chosen rates are separate from rounding. This tool does not propagate measurement uncertainty. Check that its stated assumptions describe your situation.

References and further study

OpenStax

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.

Related tools

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.