CalculatorSee

How Do You Calculate Profit Margin? Formula, Examples, and Pricing Tips

Profit margin tells you how much of your sales revenue remains as profit after deducting a particular set of costs. It is one of the simplest ways to check whether your selling price leaves enough room to cover expenses and earn money.

But calculating profit margin correctly requires more than subtracting what you paid for a product from what you sold it for. A retailer calculating profit on an individual sale needs a different figure from a business owner checking the profitability of the entire company.

The key is knowing which costs to include, which profit figure to use, and what the resulting percentage actually tells you.

How Do You Calculate Profit Margin?

To calculate profit margin, divide the profit by revenue and multiply the result by 100.

Profit margin formula:

[
\text{Profit Margin}=\frac{\text{Profit}}{\text{Revenue}}\times100
]

For example, suppose your business generates $10,000 in sales and earns $2,500 in profit. Your profit margin is:

[
\frac{$2,500}{$10,000}\times100=25%
]

Your profit margin is 25%, meaning $0.25 of every $1 in revenue represents profit at the stage being measured.

The important detail is the word profit. If the $2,500 is gross profit, you have calculated gross profit margin. If it is net profit after all relevant expenses, you have calculated net profit margin. The formula stays the same, but the meaning of the result changes depending on which costs have been deducted.

If you already know your revenue and profit, the Margin Calculator can help you calculate the percentage without working through the arithmetic manually.

How to Calculate Profit Margin Step by Step

Let’s say you run a small business selling home accessories. During one month, your business generates $24,000 in sales and records $18,000 in direct costs for the products sold.

Here’s how to calculate the gross profit margin.

Step 1: Find your revenue.

Your revenue is $24,000 for the month. Use the sales figure that matches the accounting basis of your profit calculation. If you are using net sales, account consistently for returns, allowances, and sales discounts.

Step 2: Calculate gross profit.

Subtract the direct cost of the products sold from revenue:

[
$24,000-$18,000=$6,000
]

Your gross profit is $6,000.

Step 3: Divide gross profit by revenue.

[
$6,000\div$24,000=0.25
]

Step 4: Convert the answer to a percentage.

[
0.25\times100=25%
]

Your gross profit margin is 25%.

That does not necessarily mean the business earned $6,000 in final profit. Rent, advertising, payment processing, salaries, software, and other operating expenses may still need to be deducted.

This is why you should decide what you want to measure before choosing the profit figure for the formula.

Which Type of Profit Margin Should You Calculate?

A business can have a healthy gross margin and still struggle to generate net profit. To understand why, look at the three main profit margins and the costs each one includes.

Gross profit margin: Are your products priced to cover their direct costs?

Gross profit margin measures the percentage of sales revenue remaining after deducting the cost of goods sold (COGS).

[
\text{Gross Margin}=\frac{\text{Revenue}-\text{COGS}}{\text{Revenue}}\times100
]

COGS generally includes the direct costs of producing or acquiring the goods sold, such as merchandise purchased for resale, raw materials, and applicable direct production costs. The exact classification depends on the business and its accounting practices.

For example, a retailer sells products worth $100,000 and records $55,000 in COGS.

  • Revenue: $100,000
  • COGS: $55,000
  • Gross profit: $45,000
  • Gross profit margin: 45%

The business retains 45 cents of each sales dollar after direct product costs, before operating expenses and other costs are deducted.

This margin helps you investigate product pricing and sourcing. If the percentage falls, possible reasons include supplier price increases, more frequent discounts, a shift toward lower-margin products, or a higher cost of producing each item.

Operating profit margin: Is the core business generating enough from its sales?

Operating profit margin goes further by accounting for operating expenses as well as direct costs.

[
\text{Operating Margin}=\frac{\text{Operating Profit}}{\text{Revenue}}\times100
]

Operating expenses can include administration, rent, marketing, salaries, utilities, and other costs of running the business that are not already included in COGS. Under the usual operating-income definition, interest and income taxes are excluded.

Using the same business, assume it has $30,000 in operating expenses in addition to its $55,000 COGS.

  • Revenue: $100,000
  • COGS: $55,000
  • Operating expenses: $30,000
  • Operating profit: $15,000
  • Operating profit margin: 15%

The gross margin is 45%, but the operating margin is only 15%. The difference shows how much of the original gross profit is being used to run the business.

This is particularly useful when sales are increasing but overheads are rising even faster. A company may sell more products without improving the profitability of its day-to-day operations.

Net profit margin: How much remains after all expenses?

Net profit margin measures net profit as a percentage of revenue after all relevant expenses, including non-operating costs, interest, and taxes when using after-tax net profit.

[
\text{Net Margin}=\frac{\text{Net Profit}}{\text{Revenue}}\times100
]

Suppose the business has another $5,000 in expenses, including interest and income tax, after operating profit has been calculated.

  • Operating profit: $15,000
  • Other expenses: $5,000
  • Net profit: $10,000
  • Net profit margin: 10%

The three results tell different parts of the same story:

Profit measure Profit Margin
Gross profit $45,000 45%
Operating profit $15,000 15%
Net profit $10,000 10%

The business earns $45,000 after direct product costs, retains $15,000 after operating expenses, and finishes with $10,000 in net profit after the additional expenses.

When reviewing financial statements, check how the business defines each profit figure. For example, some reports show pretax profit separately from after-tax net profit. Consistency matters when comparing margins between periods or businesses.

Profit Margin vs. Markup: Why the Percentages Are Different

One of the most common pricing mistakes is treating profit margin and markup as interchangeable. Both use the difference between selling price and cost, but they divide that difference by different amounts.

  • Profit margin measures profit as a percentage of the selling price.
  • Markup measures profit as a percentage of the cost.

Suppose you purchase an item for $80 and sell it for $100. Your gross profit is $20.

Profit margin:

[
\frac{$100-$80}{$100}\times100=20%
]

Markup:

[
\frac{$100-$80}{$80}\times100=25%
]

The same $20 profit represents a 20% margin and a 25% markup.

This difference becomes particularly important when you set prices for hundreds of products. If your target is a 25% margin but you simply add 25% to your cost, you will not reach the intended margin.

Markup is useful when deciding how much to add to a cost. Margin is useful when measuring how much of the selling price remains as profit. Always check which percentage a supplier, pricing tool, or business report is referring to.

How to Calculate the Selling Price for a Target Profit Margin

Sometimes you know the cost of a product and the margin you want to achieve, but you have not decided on the selling price.

In that situation, calculate the price using the target margin as a proportion of the selling price:

[
\text{Selling Price}=\frac{\text{Cost}}{1-\text{Target Margin}}
]

Write the target margin as a decimal before using the formula. For example, 40% becomes 0.40.

Suppose a product costs $60 and you want a 40% gross profit margin.

[
$60\div(1-0.40)=$100
]

The selling price needs to be $100.

At that price:

  • Selling price: $100
  • Product cost: $60
  • Gross profit: $40
  • Gross profit margin: 40%

Now compare that with a 40% markup. Adding 40% to the $60 cost gives a selling price of $84. The resulting gross profit is $24, which represents a margin of approximately 28.6%, not 40%.

One important limitation: This pricing formula works only for the cost base used in the calculation. If you want a 40% net profit margin, pricing a product at 40% gross margin is not enough. You must also account for the operating expenses and other costs that will be deducted before net profit is reached.

What Happens to Your Profit Margin When You Offer a Discount?

A discount can help generate orders, clear inventory, or attract customers who might otherwise buy elsewhere. But it also reduces the amount earned per sale unless lower costs or higher sales volume compensate for the reduction.

Consider a product with a selling price of $100 and a direct cost of $60.

Before the discount:

  • Selling price: $100
  • Direct cost: $60
  • Gross profit: $40
  • Gross profit margin: 40%

Now suppose you offer a 15% discount.

The new selling price is $85. If the direct cost remains $60, gross profit falls to $25 and gross margin becomes:

[
\frac{$85-$60}{$85}\times100\approx29.41%
]

The discount reduced gross margin from 40% to approximately 29.4%. Notice that a 15% price discount did not reduce the margin by 15 percentage points.

The effect can be even more significant for businesses operating on thin margins. If a product costs $80 and sells for $100, its gross profit is $20. A 10% discount reduces the selling price to $90, leaving only $10 in gross profit. The margin falls from 20% to about 11.1%.

This is why discount decisions should be based on the profit left after the promotion, not just the number of additional orders expected.

Use the Discount Calculator to work out a reduced selling price, then calculate the resulting margin using the actual cost. If you are evaluating a promotion, also consider whether extra sales will cover the lost profit per item and any additional advertising or fulfilment costs.

Why a Strong Gross Margin Can Still Produce Little Net Profit

Imagine an online store buys a product for $30 and sells it for $75. Its gross profit is $45, giving it a gross margin of 60%.

That looks attractive at first. But the store still has to pay for the work required to get the product to the customer and operate the business.

Suppose the average sale also involves $8 in fulfilment and payment costs, $12 in advertising, and $10 in allocated overhead. Depending on how those costs are classified, some may be included in COGS and others in operating expenses.

If all three costs are treated as additional expenses outside the initial $30 product cost, the contribution after those costs is:

[
$75-$30-$8-$12-$10=$15
]

That is $15 remaining from a $75 sale, equivalent to 20% of revenue before any further expenses not yet included.

The example illustrates why product-level gross margin cannot tell the whole story. The business needs to know not only what it earns on the item but also what it costs to acquire a customer, fulfil the order, and support its operations.

When reviewing your own numbers, avoid deducting a cost twice. If shipping or direct labour is already included in COGS, do not subtract it again when calculating profit. The purpose is to build an accurate picture of what remains at each stage.

For an online retailer, this often means examining margins by product or category alongside the company’s operating margin. A product with a strong gross margin may still be less attractive if it requires expensive advertising, has frequent returns, or costs more to ship than comparable products.

Is a Higher Profit Margin Always Better?

A higher margin can indicate stronger pricing or better cost control, but it does not automatically mean a business is more successful.

Consider two retailers:

  • Retailer A generates $100,000 in sales at a 20% net profit margin, earning $20,000.
  • Retailer B generates $300,000 in sales at a 10% net profit margin, earning $30,000.

Retailer A keeps a larger percentage of revenue, but Retailer B generates more total net profit.

Neither result is enough on its own to decide which business is better. Retailer B may require more working capital, handle more inventory, or carry greater operating risk. Retailer A may have more room to expand, or it may be constrained by a smaller customer base.

A meaningful comparison considers margin alongside total profit, sales volume, operating costs, capital requirements, and the business model.

Industry differences matter too. A business selling high volumes of low-priced goods may operate with a thinner margin than a specialist service provider. Comparing the two without considering their operating models can lead to the wrong conclusion.

Rather than relying on one universal “good margin” target, compare your figures with businesses that have similar products, cost structures, and sales channels. For your own business, tracking the trend over several months can be just as revealing as comparing it with an external benchmark.

Why Can Profit Margin Fall Even When Sales Increase?

Higher sales do not guarantee a better margin. A business can sell more and still retain a smaller percentage of each sales dollar.

Suppose a company records $20,000 in monthly revenue and $5,000 in net profit. Its net profit margin is 25%.

The following month, revenue rises to $30,000, but net profit remains at $5,000 because additional sales require more advertising, discounts, or fulfilment spending.

The new net profit margin is:

[
\frac{$5,000}{$30,000}\times100=16.67%
]

Revenue increased by 50%, yet the margin fell from 25% to about 16.7%. The company generated more sales without generating additional net profit.

When this happens, investigate what changed rather than assuming that the business is performing better because turnover is higher.

Possible causes include:

  • Supplier costs increased but selling prices stayed the same.
  • A greater share of orders came from discounted products.
  • Paid advertising costs grew faster than sales.
  • Customers shifted toward products with lower margins.
  • Returns, refunds, delivery subsidies, or fulfilment costs increased.
  • Payroll, rent, and other overheads grew faster than revenue.

A useful way to investigate is to compare the same figures across periods: revenue, gross profit, operating profit, and net profit. If gross margin falls first, product costs or pricing may be the problem. If gross margin holds but operating margin falls, operating expenses may be increasing. If operating margin stays steady but net margin declines, investigate interest, taxes, and other non-operating items.

This does not identify the cause automatically, but it narrows the search and helps you ask more useful questions.

Common Mistakes When Calculating Profit Margin

Small calculation errors or inconsistent accounting choices can make a margin appear stronger or weaker than it really is.

Dividing profit by cost instead of revenue. This calculates markup, not profit margin. The difference can materially affect pricing decisions.

Using gross profit when you mean net profit. Gross profit excludes many expenses required to run the business. Label the result clearly so you do not mistake a product-level margin for the company’s final profitability.

Mixing different reporting periods. Monthly revenue should be compared with profit from the same month, not an annual profit figure. Use the same period and scope for both numbers.

Ignoring returns and discounts. If your revenue figure does not account for sales returns or allowances but your profit figure does, the calculation may be inconsistent. Follow a consistent revenue definition.

Comparing different types of margin. A 45% gross margin and a 10% net margin are not contradictory. They measure profitability at different stages of the income statement.

Assuming profit equals cash in the bank. A profitable business can still experience cash shortages because customers have not paid invoices, money is tied up in inventory, or loan principal and capital expenditure require cash. Margin is a profitability measure, not a complete cash-flow assessment.

Rounding too early. Keep the full figures during your calculations and round the final percentage. This is particularly useful when comparing products with small differences in cost or price.

Use the Margin Calculator to Check Your Numbers

Once you know which profit figure you need, calculating the percentage is straightforward. The harder part is ensuring that your revenue and cost figures describe the same transaction or reporting period.

CalculatorSee’s Margin Calculator can help you work through the calculation using your figures. Before relying on the result, confirm which margin the tool calculates and whether its inputs reflect a product’s direct cost or the wider expenses of running your business.

For pricing decisions, calculate the expected margin at the regular selling price and again at any promotional price. For business reporting, use consistent definitions for gross, operating, and net profit so that changes over time are meaningful.

The most useful profit margin is not simply the highest percentage you can achieve. It is the one that helps you understand where your revenue goes, what remains after costs, and whether your pricing and operations are producing the financial results you need.

Frequently Asked Questions

How do you calculate profit margin if you know the cost and selling price?

Subtract the cost from the selling price to find your profit, then divide that profit by the selling price and multiply by 100. For example, if a product costs $60 and sells for $100, your profit is $40 and your profit margin is 40%.

What selling price do you need to achieve a 30% profit margin?

Divide your total cost by 0.70 to find the selling price needed for a 30% margin. If a product costs $70, you would need to sell it for $100. That leaves $30 in profit, equal to 30% of the selling price, before any additional costs not included in the original $70.

Why does my profit margin decrease when sales increase?

Your margin can fall when costs rise faster than revenue. For example, you might generate $5,000 in profit from $20,000 in sales, giving you a 25% margin. If sales increase to $30,000 but profit stays at $5,000, your margin drops to 16.67%. Higher sales do not automatically mean better profitability.

Should I use gross profit margin or net profit margin to measure my business?

Use gross profit margin to understand how much revenue remains after the direct cost of producing or purchasing what you sell. Net profit margin gives a broader picture because it accounts for operating expenses and other applicable costs, such as interest and taxes. Looking at both helps you identify whether the pressure on profit comes from product costs or expenses elsewhere in the business.

Can a business have a high profit margin but still lose money?

Yes, depending on which margin is being measured and which costs are included. A product can have a strong gross margin, but advertising, payroll, rent, delivery, and other expenses may consume the remaining profit. If total expenses exceed revenue, the business records a net loss even if individual products appear profitable.

How much does a discount affect profit margin?

A discount reduces the selling price while your product cost may stay the same, so the profit margin usually falls. For example, a product that costs $60 and sells for $100 has a 40% gross margin. After a 15% discount, the selling price becomes $85 and the gross profit falls to $25, reducing the margin to about 29.41%.

Is a 20% profit margin better than a 10% margin?

Not necessarily. A 20% margin means a business keeps $20 in profit for every $100 in revenue, while a 10% margin means it keeps $10. However, a business earning a 10% margin on $300,000 in revenue generates $30,000 in profit, compared with $20,000 for a business earning a 20% margin on $100,000. Compare both the margin and the total profit, alongside cash flow and business costs.