Pricing

How to Calculate Profit Margin

Published Jun 17, 2025 · 7 min read

Profit margin tells you what share of your selling price you actually keep. The formula is one line — but applying it correctly is what separates a priced-to-survive business from a priced-to-grow one.

Profit margin is the percentage of your selling price that you keep after paying for the goods or services you sold. It is the single most useful number for understanding whether a price is actually profitable, because it measures profit against what the customer paid — the money that has to cover everything else. This guide walks through the formula, several worked examples, and the mistakes that catch people out.

What profit margin is

Profit margin expresses profit as a percentage of selling price. If you sell something for $60 and it cost you $40, your profit is $20 and your margin is 33.3%. That means roughly one third of the money the customer handed you is profit; the other two thirds went to pay for the goods.

The profit margin formula

Margin % = ((selling price − cost) ÷ selling price) × 100

In words: take the selling price, subtract the cost to get the profit, divide the profit by the selling price, and multiply by 100 to turn it into a percentage.

How to calculate margin as a percentage

Step by step:

  1. Find your selling price — what the customer pays.
  2. Find your cost — what you paid for the goods or direct service delivery.
  3. Subtract cost from selling price to get profit.
  4. Divide profit by selling price.
  5. Multiply by 100 to express it as a percentage.

A simple example

A candle maker sells a candle for $25. The wax, wick, jar and fragrance cost $10. Profit is $25 − $10 = $15. Margin is ($15 ÷ $25) × 100 = 60%. Of every $25 sale, $15 is profit.

How selling price and cost affect margin

Margin moves in two ways. Raise the selling price while cost stays fixed and margin rises. Lower the cost while price stays fixed and margin also rises. The two levers are not equal, though: a price cut has to be recovered by a much larger increase in volume to hold the same profit, because every sale now contributes less.

Example: an item costs $40 and sells for $60, a 33.3% margin. Drop the price to $55 and the margin falls to ($15 ÷ $55) × 100 = 27.3% — you gave up six percentage points of margin for a $5 price cut. Negotiate the cost down to $35 instead, at the same $60 price, and the margin rises to ($25 ÷ $60) × 100 = 41.7%.

Several practical examples

  • Cost $8, selling price $20: profit $12, margin (12 ÷ 20) × 100 = 60%.
  • Cost $50, selling price $80: profit $30, margin (30 ÷ 80) × 100 = 37.5%.
  • Cost $100, selling price $140: profit $40, margin (40 ÷ 140) × 100 = 28.6%.
  • Cost $12, selling price $15: profit $3, margin (3 ÷ 15) × 100 = 20%.

Gross profit margin

When people say “profit margin” in a pricing context they usually mean gross profit margin — profit after the direct cost of the goods, before overheads like rent, software and wages. The formula is the same shape, just at the business level:

Gross margin % = ((revenue − cost of goods sold) ÷ revenue) × 100

Example: a shop takes $10,000 in a month and the stock it sold cost $6,000. Gross profit is $4,000. Gross margin is (4,000 ÷ 10,000) × 100 = 40%. That 40% has to cover rent, utilities, wages, marketing and tax before anything is left as net profit.

The difference between profit and profit margin

Profit is an amount of money — $20, $4,000, $50,000. Profit margin is a percentage — 33.3%, 40%, 12%. Two businesses can have the same profit in dollars but very different margins, and the one with the lower margin is usually the more fragile one, because a small drop in sales wipes out its profit faster. Profit tells you how much you made; margin tells you how efficiently you made it.

The difference between profit margin and markup

Margin divides profit by selling price; markup divides profit by cost. Same $20 profit on a $40 cost and $60 price is a 33.3% margin but a 50% markup. They are not interchangeable, and confusing them is a common cause of underpricing. We cover the comparison in detail in Profit Margin vs Markup: What’s the Difference?.

Common calculation mistakes

  • Dividing profit by cost instead of selling price — that gives markup, not margin.
  • Forgetting to multiply by 100, and reading 0.333 as “33.3” without the percent sign.
  • Mixing currencies or units between cost and price.
  • Using revenue net of tax for one figure and gross of tax for the other.
  • Comparing gross margin to net margin as if they were the same thing.
  • Calculating margin on a single product and assuming it applies to the whole business.

Why margin matters when pricing

Margin tells you whether a price can carry the rest of the business. A product with a 15% margin has to sell in high volume to cover fixed costs; a product with a 60% margin can absorb overheads more comfortably at lower volume. When you set a price, calculate the margin first, then ask whether that margin — at the volume you can realistically sell — will cover your overheads and leave a profit. If not, the price, the cost, or the volume has to change.

You can run any of these examples through our Profit Margin Calculator to check the arithmetic instantly.

The bottom line

Profit margin is profit divided by selling price, expressed as a percentage. It is the number that tells you whether a price is worth selling at, because it shows what share of the sale is left to cover overheads and become net profit. Calculate it on every product before you commit to a price, and keep margin — not just profit in dollars — in view when you make pricing decisions.

This guide is general business education, not financial, tax or legal advice. Rules vary by country and by circumstance — see our Disclaimer and Editorial Guidelines.