Profit Margin Calculator
Calculate profit margin and markup from cost and selling price.
Enter your values to calculate your result.
About this calculator
The Profit Margin Calculator turns a cost and a selling price into the profit, the profit margin and the markup, so you can see how profitable a sale really is.
It helps with pricing a product, checking a supplier quote or comparing items. Margin and markup are often confused; this shows both side by side.
What each field means
- Cost
What the item or service costs you to make or buy.
It is the base for the profit and for the markup.
More than 0 for the markup to be defined.
- Selling Price
The price you sell it for.
It is the base for the margin; the gap above the cost is your profit.
More than 0 for the margin to be defined.
How it is calculated
- Profit = selling price − cost.
- Margin = profit ÷ selling price × 100.
- Markup = profit ÷ cost × 100.
Margin = (Selling Price − Cost) ÷ Selling Price × 100 Markup = (Selling Price − Cost) ÷ Cost × 100
Profit is the selling price minus the cost. Margin expresses that profit as a share of the selling price; markup expresses it as a share of the cost. The same profit therefore gives two different percentages.
Symbols used
- Selling Price
- price you charge
- Cost
- what it costs you
- Margin
- profit as a percentage of the selling price
- Markup
- profit as a percentage of the cost
Assumptions
- Cost means every cost tied to the item that you include.
- One item or one batch at a single price.
- Tax and overheads are not added unless you include them in the cost.
Example
An item that costs 60 and sells for 100 earns a profit of 40: a margin of 40% (40 ÷ 100) but a markup of 66.67% (40 ÷ 60), in whichever currency you use.
Step by step
- Inputs: cost 60; selling price 100.
- Profit = 100 − 60 = 40.
- Margin = 40 ÷ 100 × 100 = 40%.
- Markup = 40 ÷ 60 × 100 ≈ 66.67%.
Reading your result
- Profit Margin
- Profit as a percentage of the selling price. A margin can never exceed 100%.
- Profit
- Selling price minus cost, in money. Negative means a loss.
- Markup
- Profit as a percentage of the cost: how much you add on top of what it cost. It can exceed 100%.
What you can conclude
- How much of each sale is profit.
- How margin and markup relate for the same sale, and what price a higher margin needs (see the notes under your result).
What you cannot conclude
- Whether the business is profitable overall: rent, wages and other overheads may not be in the cost.
- What price the market will accept.
Limitations
- Only the two figures you enter are used; volume, discounts and overheads are not modelled.
- It is a calculation, not pricing or financial advice.
Frequently Asked Questions
Why are margin and markup different numbers?
They measure the same profit against different bases: margin against the selling price, markup against the cost. A 50% margin needs a 100% markup, and a 100% margin is impossible.
Which should I use to set a price?
Markup is convenient for building a price up from cost; margin is what is compared across products and with financial statements. Know which one a target refers to.
What does a negative margin mean?
That the selling price is below the cost, so each sale loses money. The notes under your result show the loss per sale.

