Profit & Pricing

Profit Margin Calculator

Calculate gross profit, profit margin and markup from your cost and selling price.

Free to useLive resultsNo account required

Enter your values

Results update as you type.

Your results · USD for monetary amounts

Gross profit

40.00

Profit margin

40.00%

Markup

66.67%

Margin uses selling price as its denominator; markup uses cost.

Currency selection labels the units; it does not convert exchange rates. All values are calculated locally in your browser.

Get started

How to use this calculator

  1. 01

    Enter your figures

    Fill in cost per unit and selling price.

  2. 02

    Review the result

    Results update automatically. Read the notes and check the assumptions below.

  3. 03

    Compare or copy

    Adjust your inputs to explore another scenario, or copy the results for reference.

How do I calculate gross profit margin?

Subtract cost from selling price, divide the difference by selling price, and multiply by 100. A cost of 60 and price of 100 give 40 profit and a 40% gross margin.

The calculation

Profit Margin formula

Profit = Selling price − Cost; Margin (%) = Profit ÷ Selling price × 100

A practical example

See the numbers in context

Illustrative inputs, calculated with the same formula as the tool above.

Cost per unit
60
Selling price
100

Gross profit

40.00

Profit margin

40.00%

Markup

66.67%

Margin uses selling price as its denominator; markup uses cost.

Inputs and assumptions

Cost per unit
The cost attributable to one unit, using the same cost definition for each scenario.
Selling price
The amount received for one unit before costs are subtracted.

Common mistakes to avoid

Margin divides by selling price; markup divides by cost. Include all costs relevant to your definition of gross profit. A price below cost produces a negative margin.

Calculation and editorial methodology →

Learn more about profit margin

Use the result as a starting point

Results depend on your inputs and the stated assumptions. Currency selection labels monetary values and does not convert exchange rates. Independently verify important financial or tax decisions.

Frequently asked questions

What does the profit margin result mean?

A 40% margin means 40 of every 100 in sales remains after the entered product cost. It is available for other expenses and profit.

Are my numbers uploaded?

No. The calculator processes your entries in your browser. Read the Privacy Policy for information about the website.

Back to all calculators