Margin Calculator

Enter your cost and selling price to get the gross profit margin as a percentage of the sale, with the profit amount and the equivalent markup shown alongside.

Read the guide: How to Calculate Profit Margin (With a Worked Example)

Cost & selling price

Gross profit margin

25.00%

$50.00 profit per unit

Profit
$50.00
Markup (of cost)
33.33%

Gross margin only subtracts the direct cost of the product. Overheads like rent, wages, ads and fees come out of this afterward. Need the markup instead? Use the markup calculator.

How it works

  1. 1

    Enter the cost

    Add what the product costs you (its direct cost of goods).

  2. 2

    Enter the selling price

    Add the price you sell it for.

  3. 3

    Read the margin

    See the gross profit margin %, the profit in dollars and the markup it works out to.

Instant & 100% private — nothing is uploaded

Every calculation runs locally in your browser. The income, balances and goals you enter stay on your own device and are never sent to a server — nothing is stored, logged or shared.

Frequently asked questions

How do I calculate profit margin from cost and selling price?
Subtract cost from price to get profit, divide by the selling price, then multiply by 100. For a $150 cost and $200 price: (200 − 150) ÷ 200 × 100 = 25% margin.
What is the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of cost. The same dollar profit gives a lower margin % than markup %. To go the other way, use the markup calculator.
What is a good gross profit margin?
It varies by industry: grocery and electronics often run 10–25%, general retail 30–50%, and handmade or specialty goods can exceed 50%. Compare against your sector rather than a universal number.
Does gross margin include all my expenses?
No. Gross margin only subtracts the direct cost of the product. Rent, wages, ads and fees come out of that margin afterward and lower your net profit.
Is my data sent anywhere?
No. Every calculation runs in your browser. Nothing you type is uploaded, logged or stored, and the numbers reset when you close the tab.

Important

For information and planning only — not financial, tax or legal advice. These figures are estimates; rates, fees and rules vary, so confirm anything that affects a real decision with a qualified professional or the official source.