Finance

How to Calculate Profit Margin (with a Worked Example)

ToolOrbit Team 2 min readUpdated
How to Calculate Profit Margin (with a Worked Example)

Margin and markup describe the same profit from two different angles, and confusing them leads to underpricing. Profit margin measures profit as a share of the selling price, while markup measures profit as a share of the cost. The Profit Margin Calculator computes both at once so you can price with confidence and compare products on a consistent basis.

The two formulas

Both start with the same gross profit, which is selling price minus cost. The difference is the denominator. Margin divides profit by the price; markup divides the same profit by the cost. Because price is always larger than cost, the margin percentage is always lower than the markup percentage for the same product.

margin % = (price - cost) / price * 100
markup % = (price - cost) / cost  * 100

Margin vs markup, made clear

Say a product costs 60 and sells for 100. The gross profit is 40. The margin is 40 / 100 = 40 percent, but the markup is 40 / 60 = 66.7 percent. Same product, same profit, two very different percentages. If you mistake a target margin for a markup, you will set the price too low and erode your earnings.

Calculating profit margin from cost and price

  • Enter the cost, what you paid to acquire or produce the item.
  • Enter the selling price you charge the customer.
  • Read the profit margin percentage and the markup percentage side by side.
  • Adjust the price to hit a target margin and watch both figures update.
Rule of thumb: margin is always smaller than markup for a profitable item. Quote margin when talking to finance and investors; quote markup when setting price from a known cost.

A worked example

A retailer buys a jacket for 80 and lists it at 120. Gross profit is 40. Margin is 40 / 120 = 33.3 percent. Markup is 40 / 80 = 50 percent. If the goal was a 40 percent margin, the price is too low: solving for price gives cost / (1 - 0.40) = 80 / 0.60 = 133.33. Knowing which figure your target refers to is the whole game.

Pricing with the right number

Use margin to judge profitability and compare across a catalog, and use markup to build a price up from cost. The calculator shows both so you never mix them up, and it runs entirely in your browser, keeping your cost and pricing data on your own device.


Tools mentioned

More reading

View all guides
How Loan EMI Is Calculated: The Formula Explained
Finance

How Loan EMI Is Calculated: The Formula Explained

How the EMI formula turns a loan amount, rate and term into a monthly payment, plus tips for borrowing at a lower cost.

2 min readUpdated
How Compound Interest Works: Formula and Examples
Finance

How Compound Interest Works: Formula and Examples

How compound interest grows money, the formula behind it, how it compares with simple interest, and tips for getting more from it.

2 min readUpdated
How Simple Interest Works: Formula and Worked Example
Finance

How Simple Interest Works: Formula and Worked Example

The simple interest formula, a worked example, and when simple interest applies in place of compound interest.

2 min readUpdated
How to Calculate Sales Tax (and Remove It From a Total)
Finance

How to Calculate Sales Tax (and Remove It From a Total)

How to add sales tax to a price, how to work backwards from a tax-inclusive total without the common mistake, and a worked example.

2 min readUpdated
How Long Will It Take to Reach a Savings Goal?
Finance

How Long Will It Take to Reach a Savings Goal?

How to work out the months needed to hit a savings target, a worked example, and why inflation moves the goal.

2 min readUpdated
Hourly to salary: the 2,080-hour rule and its limits
Finance

Hourly to salary: the 2,080-hour rule and its limits

How yearly salary is derived from an hourly rate, when the calculation oversimplifies, and how to compare two job offers fairly.

2 min readUpdated
VAT explained: adding and removing tax the right way
Finance

VAT explained: adding and removing tax the right way

The formula for adding VAT to a net price and removing it from a gross price — plus the one mistake everyone makes in reverse.

2 min readUpdated
GST rates in India: slabs, CGST and SGST explained
Finance

GST rates in India: slabs, CGST and SGST explained

How India’s four GST slabs split between centre and state, when IGST applies, and how to add or remove GST from a price.

2 min readUpdated