FREE BUSINESS & SHOPPING TOOLS

Profit Margin Calculator.

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.

✓ Browser-Based Calculations✓ Clear Formulas✓ Margin & Target Selling Price
01Enter DetailsChoose inputs and assumptions
02CalculateUpdates as you edit
03Review ResultsCheck the breakdown
VELTOGEN CALCULATION STUDIOENTER · CALCULATE · REVIEW

Enter Your Calculation Details

Results update as you edit. Use one currency for all amounts; no currency conversion is applied.

Margin uses revenue as the percentage denominator.
One currency, no grouping commas. Nonnegative amount up to 1 trillion, maximum 2 decimal places. Target-margin mode requires positive cost.
One currency, no grouping commas. Nonnegative amount up to 1 trillion, maximum 2 decimal places. Zero revenue gives an undefined margin; losses remain signed.

Review Your Calculation

Read the result together with the breakdown and calculation assumptions below.

Gross profit margin (based on revenue)20%
Estimate
Cost price
80.00
Selling price / revenue
100.00
Gross profit / loss
20.00
Profit percentage on revenue
20%
Comparison markup on cost
25%

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.

Your calculation steps

  1. Gross profit/loss = revenue 100.00 − cost 80.00 = 20.00.
  2. Profit margin = profit ÷ revenue × 100 = 20%. Revenue is the denominator.
  3. Comparison markup = profit ÷ cost × 100 = 25%. Cost is a different denominator.
  4. Target-price calculations use unrounded revenue. Actual revenue charged after currency rounding may give a slightly different margin. Tax, operating expenses and financing are excluded.
Cost, revenue and gross profit
ComponentAmount
Revenue / selling price100.00
Cost80.00
Gross profit / loss20.00
ABOUT THIS TOOL

What Does the Profit Margin Calculator Do?

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.

SIMPLE CALCULATION WORKFLOW

How to Use the Profit Margin Calculator

Follow four steps to enter consistent inputs, read the estimate and understand the result.

  1. 01

    Choose actual or target margin

    Choose measuring an existing margin or finding a target selling price.

  2. 02

    Enter a consistent cost

    Enter the cost amount in one currency and for one unit or consistent sales period.

  3. 03

    Supply revenue or target

    Supply revenue or a desired margin below 100%; use positive cost for a target.

  4. 04

    Compare profit and percentages

    Read gross profit/loss, revenue-based margin and the separate markup comparison.

CALCULATOR FEATURES

Useful Profit Margin Calculation Controls

Explore the inputs, breakdowns and supported options available in this calculator.

Revenue-based margin

Divide gross profit by selling revenue and express the result as a percentage.

Target-margin pricing

Solve selling price from positive cost and a desired margin below 100%.

Gross profit or loss

Display the signed difference between revenue and the entered cost.

Markup comparison

Show the different cost-based percentage alongside the main margin.

Zero-revenue handling

Keep a monetary loss visible while marking the margin percentage undefined.

Cost/revenue breakdown

Review the amounts underlying the percentage rather than relying on the headline alone.

WHY USE THIS CALCULATOR

Understand the Numbers Before Comparing Options

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.

Assess a price’s gross margin

Measure the revenue share left after the cost included in your model.

Price toward a target

Find the unrounded revenue required to achieve a chosen gross margin.

Avoid denominator mistakes

Recognize why a 25% markup on cost gives a 20% margin on revenue in the worked example.

Identify loss-making prices

See negative profit and margin when selling revenue is below cost.

CALCULATION GUIDANCE

Choose Inputs and Interpret Them Consistently

Check these definitions and conventions when entering values or comparing estimates.

Input or ResultMeaningMain Consideration
Revenue denominatorSales amount used to calculate margin.Zero revenue makes the percentage undefined.
Cost scopeThe cost subtracted from revenue.Use a consistent unit or period; omitted operating expenses are not inferred.
Target marginDesired gross profit as a share of revenue.Reverse mode supports 0% to below 100% with positive cost.
Markup comparisonProfit as a percentage of cost.A different denominator means a different percentage.
Gross versus netEntered cost is the only cost deducted by this model.Net profitability requires the business’s additional expenses and taxes.
Compare Like-for-Like Assumptions

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.

PRACTICAL CALCULATION WORKFLOWS

Worked Examples and Ways to Check Your Result

Use a concrete example and focused comparisons to connect the inputs with the outputs.

WORKED NUMERICAL EXAMPLE

Profit Margin Calculator Example

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.

PRACTICAL CHECK

Check the 80/100 example

Revenue 100 less cost 80 gives profit 20, margin 20% and comparison markup 25%.

PRACTICAL CHECK

Solve a target selling price

For cost 60 and target margin 25%, revenue = 60/0.75 = 80 and gross profit is 20.

PRACTICAL CHECK

Inspect a negative margin

Cost 100 and revenue 80 give loss −20 and margin −25%; the comparison markup is −20%.

IMPORTANT TECHNICAL DETAILS

Formula, Assumptions and Calculation Limits

Read the calculation method alongside its units, precision and financial limitations.

Calculation Formula

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.

Browser-Based Financial Calculations

Calculations run locally in your browser. The calculator does not send your entered financial values to a calculation server or store them between visits.

Informational Estimates

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.

FREQUENTLY ASKED QUESTIONS

Profit Margin Calculator FAQs

Practical answers about the inputs, calculation method and limitations of this estimate.

What does the profit margin calculator measure?

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.

Does this profit percentage calculator use cost or revenue?

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.

What is the profit margin formula for a target selling price?

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.

Can profit margin be negative or undefined?

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.

Is gross margin the same as net profit margin?

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.