Everyday mathematics and finance

Profit Margin Calculator

Calculate profit, gross margin, markup and target selling price while keeping revenue and cost bases distinct.

Quick start

Suggested examples

Load an editable example or continue with the calculator’s current values.

Business and finance

Profit Margin Calculator

Calculate gross or net profit margin, compare margin with markup, or find a selling price from a target rate.

Gross profit margin

40 %

Profit40
Revenue / selling price100
Cost60
Markup on cost66.67 %
Formula and actual-value explanation
Calculation mode: marginCost: 60Revenue / selling price: 100Total expenses: 75Target rate: 40 %
Calculation stepsProfit = 100.00 - 60.00 = 40.00Margin = 40.00 / 100.00 x 100 = 40.00%Markup = 40.00 / 60.00 x 100 = 66.67%Calculations retain engine precision; displayed numbers are rounded to 2 decimal places unless a result specifies otherwise.

This arithmetic estimate excludes taxes, returns, financing, currency effects, and any costs not entered. It is not accounting or investment advice.

Professional studio

Compare, export and document

Browser-local session
Open workspace

Calculation values stay in temporary React memory and are never placed in the URL.

Session history and export scope

Up to eight saved scenarios remain in this browser tab. CSV and print output use the same displayed calculation snapshot. Closing the tab clears session data.

Three clear steps

How it works

Choose the margin question you need to answer

Choose the mode that matches your source values. Supported purpose: Calculate gross or net profit margin, distinguish margin from markup, and find a selling price from a target margin or markup.

Enter revenue, cost, expenses, or the target rate

Enter monetary values in one consistent currency. Key quantities and conventions: Gross margin: (Revenue - cost) / revenue x 100 Net margin: (Revenue - total expenses) / revenue x 100

Review profit, margin, markup, and the visible calculation

For net margin, enter total expenses rather than product cost alone. For Profit Margin Calculator, check the result against this stated boundary: Results are only as complete as the costs entered. Taxes, returns, discounts, financing, inventory accounting, currency effects, and indirect costs may materially change reported profit.

Search-intent guide

Supported calculation scenarios

Use this business tool for the following practical questions:

  • Calculate profit and gross margin.
  • Compare margin with markup.
  • Solve a target selling price from cost and desired margin.
Choose the right toolMargin uses revenue as its denominator; markup uses cost.
Important boundaryEntered costs must include the items relevant to the user's decision.

For formulas, comparisons and reference context, continue to the related knowledge hub.

Tool profile · factual scope

What this calculator covers

Profit Margin Calculator runs locally in your browser. It does not upload the values entered into the calculation fields.

Tool name and description
Profit Margin Calculator. Calculate profit, gross margin, markup and target selling price while keeping revenue and cost bases distinct.
Category
Everyday Math & Finance
Intended audience
Everyday Math & Finance users who need a transparent planning or verification estimate.
Supported modes
Choose the margin question you need to answer; Enter revenue, cost, expenses, or the target rate; Review profit, margin, markup, and the visible calculation; browser-local scenario comparison; CSV export; printable or PDF-ready statement
Supported calculation
Calculate profit, gross margin, markup and target selling price while keeping revenue and cost bases distinct. The professional studio can save and compare up to eight result snapshots within the current browser session.
Required inputs
Choose the mode that matches your source values. Enter monetary values in one consistent currency. For net margin, enter total expenses rather than product cost alone.
Outputs
Calculate gross or net profit margin, distinguish margin from markup, and find a selling price from a target margin or markup. Includes scenario comparison, CSV output, copyable summaries and print-ready reporting.
Units and formats
The currencies, percentages, periods and numeric formats labeled beside each field.
Method
Profit = revenue - cost. Profit margin = profit / revenue x 100. Markup = profit / cost x 100. Selling price at target margin = cost / (1 - target margin).
Accuracy assumptions
Results use the displayed inputs, selected units and stated defaults. Full precision is retained through the calculation before display rounding.
Limitations
Results are only as complete as the costs entered. Taxes, returns, discounts, financing, inventory accounting, currency effects, and indirect costs may materially change reported profit.
Reference basis

Standard business arithmetic. The calculator uses only the user-entered revenue, cost, expenses, and target rates.

How to use this calculator

  1. Choose the mode that matches your source values.
  2. Enter monetary values in one consistent currency.
  3. For net margin, enter total expenses rather than product cost alone.
  4. Review both margin and markup because they use different denominators.
  5. Include omitted costs before using the result for a business decision.

Formula and methodology

Profit = revenue - cost. Profit margin = profit / revenue x 100. Markup = profit / cost x 100. Selling price at target margin = cost / (1 - target margin).

Variables and definitionsThe reference table below defines the tool-specific quantities and conventions used by this calculation.
Supported unitsThe currencies, percentages, periods and numeric formats labeled beside each field.
Rounding conventionThe engine calculates with full numeric precision and rounds only the displayed result unless the method explicitly requires whole packages or discrete items.

Worked example

Validated calculation walkthrough

A product that costs 60 and sells for 100 produces 40 profit, a 40% profit margin, and a 66.67% markup on cost.

Method applied: Profit = revenue - cost. Profit margin = profit / revenue x 100. Markup = profit / cost x 100. Selling price at target margin = cost / (1 - target margin).

Reference table

Variable or itemDefinition
Gross margin(Revenue - cost) / revenue x 100
Net margin(Revenue - total expenses) / revenue x 100
Markup(Revenue - cost) / cost x 100
Target priceCost / (1 - target margin)

Sources and assumptions

Standard business arithmetic. The calculator uses only the user-entered revenue, cost, expenses, and target rates.

Practical guidance and common mistakes

Margin measures profit as a share of revenue; markup measures profit as a share of cost. Confusing the two can produce an incorrect selling price.

Related calculators

Continue the calculation workflow

Questions

Profit Margin Calculator FAQ

Is margin the same as markup?

No. Margin divides profit by revenue, while markup divides profit by cost.

Can profit margin be negative?

Yes. A negative result means the entered cost or expenses exceed revenue.

Why must target margin be below 100%?

At 100%, the pricing formula has a zero denominator; above 100%, it would imply a non-positive selling price for a positive cost.

Does this calculate accounting profit?

Only if every relevant cost and adjustment is included in the values you enter.

Are Profit Margin Calculator inputs stored?

No. The calculation runs locally in your browser.

Published guides

Learn the method in context