Revenue-based margin
Divide gross profit by selling revenue and express the result as a percentage.
Use this profit margin calculator to measure gross profit as a percentage of revenue or find a selling price for a target margin. Keep revenue-based margin separate from cost-based markup.
Results update as you edit. Use one currency for all amounts; no currency conversion is applied.
Read the result together with the breakdown and calculation assumptions below.
Gross margin is profit divided by revenue. It is different from markup on cost and from net profit after operating expenses. Negative profits remain signed; zero revenue has no defined margin.
Exact decimal/fraction arithmetic is used before display rounding. Money is shown to 2 decimal places, half away from zero; percentages to at most 6. Display rounding does not change intermediate calculations.
| Component | Amount |
|---|---|
| Revenue / selling price | 100.00 |
| Cost | 80.00 |
| Gross profit / loss | 20.00 |
Gross profit margin is the share of sales revenue remaining after the entered cost. This profit margin calculator measures that revenue-based percentage or solves a selling price for a desired margin. The profit percentage calculator also shows markup separately. The profit margin formula divides profit by revenue, so it must not be replaced by the cost denominator used for markup.
Use the result as a transparent mathematical estimate. The calculation method, input conventions and limitations are explained below so you can compare scenarios with the same assumptions.
Follow four steps to enter consistent inputs, read the estimate and understand the result.
Choose measuring an existing margin or finding a target selling price.
Enter the cost amount in one currency and for one unit or consistent sales period.
Supply revenue or a desired margin below 100%; use positive cost for a target.
Read gross profit/loss, revenue-based margin and the separate markup comparison.
Explore the inputs, breakdowns and supported options available in this calculator.
Divide gross profit by selling revenue and express the result as a percentage.
Solve selling price from positive cost and a desired margin below 100%.
Display the signed difference between revenue and the entered cost.
Show the different cost-based percentage alongside the main margin.
Keep a monetary loss visible while marking the margin percentage undefined.
Review the amounts underlying the percentage rather than relying on the headline alone.
Margin describes the share of sales revenue left after the entered cost. A positive gross margin does not establish net profitability after operating expenses, financing and taxes. Selling below cost produces a negative margin.
Measure the revenue share left after the cost included in your model.
Find the unrounded revenue required to achieve a chosen gross margin.
Recognize why a 25% markup on cost gives a 20% margin on revenue in the worked example.
See negative profit and margin when selling revenue is below cost.
Check these definitions and conventions when entering values or comparing estimates.
| Input or Result | Meaning | Main Consideration |
|---|---|---|
| Revenue denominator | Sales amount used to calculate margin. | Zero revenue makes the percentage undefined. |
| Cost scope | The cost subtracted from revenue. | Use a consistent unit or period; omitted operating expenses are not inferred. |
| Target margin | Desired gross profit as a share of revenue. | Reverse mode supports 0% to below 100% with positive cost. |
| Markup comparison | Profit as a percentage of cost. | A different denominator means a different percentage. |
| Gross versus net | Entered cost is the only cost deducted by this model. | Net profitability requires the business’s additional expenses and taxes. |
Use costs and revenue for the same unit or sales period, consistently excluding tax. Margin divides by revenue; markup divides by cost. Do not substitute one percentage for the other.
Use a concrete example and focused comparisons to connect the inputs with the outputs.
Cost 80 and selling price 100 give gross profit 20. Profit margin is 20/100 × 100 = 20%, while markup is 20/80 × 100 = 25%. To target a 20% margin from cost 80, selling price = 80/(1 − 0.20) = 100.
Revenue 100 less cost 80 gives profit 20, margin 20% and comparison markup 25%.
For cost 60 and target margin 25%, revenue = 60/0.75 = 80 and gross profit is 20.
Cost 100 and revenue 80 give loss −20 and margin −25%; the comparison markup is −20%.
Read the calculation method alongside its units, precision and financial limitations.
Gross profit = revenue − cost. Profit margin formula: margin (%) = (revenue − cost) ÷ revenue × 100, when revenue > 0. Target selling price = cost ÷ (1 − desired margin/100). Comparison markup = profit ÷ cost × 100, when cost > 0.
This profit percentage calculator divides gross profit by revenue, not by cost. It can also solve the revenue needed for a desired nonnegative margin below 100%. The cost/revenue/profit table uses two-decimal display values while percentages and target-price calculations use exact unrounded amounts.
Inputs are nonnegative cost and revenue. Calculated profit and percentages can be negative when revenue is below cost.
At zero revenue, margin is undefined even when the monetary loss is known. With zero cost and positive revenue, margin is 100% but comparison markup is undefined.
Target-margin mode requires positive cost and a margin from 0% to less than 100%. A 100% target makes the reverse denominator zero; zero cost does not determine a unique positive revenue for a lower target margin.
The target is solved before currency rounding. Charging the displayed rounded price may produce a slightly different realized margin. Cost scope is the user’s responsibility.
Money inputs and calculated monetary amounts are limited to 1 trillion currency units. Monetary inputs accept up to 2 decimal places; percentages up to 6. Plain decimal notation only: no grouping commas, exponent notation, NaN or Infinity. Exact rational calculations precede display rounding. Negative monetary inputs are excluded; calculated losses remain signed.
Calculations run locally in your browser. The calculator does not send your entered financial values to a calculation server or store them between visits.
The result is a gross pricing relationship, not net business profit. Include the appropriate costs and separately assess operating expenses, returns, financing, taxes and commercial viability.
Practical answers about the inputs, calculation method and limitations of this estimate.
It measures gross profit as a percentage of sales revenue. Subtract cost from revenue, divide by revenue and multiply by 100. Cost 80 and revenue 100 give a 20% gross margin.
It uses revenue for the main margin result. A separate comparison shows markup, which uses cost. For the same 20 profit, revenue 100 gives 20% margin and cost 80 gives 25% markup.
Selling price = cost/(1 − desired margin/100). For cost 80 and a 20% margin, price is 100. The target must be below 100%, and this reverse mode requires positive cost.
Yes. Revenue below cost produces a negative margin when revenue is positive. At zero revenue the margin denominator is zero, so the percentage is undefined while profit or loss remains available.
No. This tool subtracts only the entered cost from revenue. Net profit margin requires the additional expenses and tax treatment relevant to the business, which are not automatically included.