Profit Margin Calculator

Calculate profit margin, markup, gross profit, and net profit instantly. Enter your cost and revenue to see all key profitability metrics for your business.

$
$
Profit Margin
Profit
Markup
Cost
Revenue

Gross Profit Calculator

Calculate gross profit and gross profit margin from your total revenue and cost of goods sold (COGS). Gross profit shows your profitability before operating expenses.

$
$
Gross Profit
Gross Profit Margin

Net Profit Calculator

Calculate net profit and net profit margin after all expenses. Net profit is your true bottom line – what remains after deducting all costs from revenue.

$
$
$
$
$
Net Profit
Net Profit Margin
Gross Profit
Total Expenses
Gross Margin

Understanding your profit margins is essential for running a successful business. Whether you are setting prices, evaluating products, or planning your finances, knowing your margins helps you make smarter decisions.

This calculator shows you profit margin, markup percentage, gross profit, and more – all from just two numbers. For other percentage calculations, check out our percentage calculator or learn how to calculate percentages.

How to Calculate Profit Margin

Profit margin shows what percentage of your selling price is actual profit. It tells you how much of every dollar (or pound) in sales you get to keep after covering costs.

Profit Margin = ((Selling Price – Cost) / Selling Price) x 100

Step-by-step method:

  1. Subtract the cost from the selling price (this gives you profit)
  2. Divide the profit by the selling price
  3. Multiply by 100 to get the percentage
Example: Product costs $60, sells for $100
Profit = $100 – $60 = $40
Margin = ($40 / $100) x 100 = 40%

Profit margin: 40%

A 40% profit margin means you keep $0.40 of every $1.00 in sales as profit.

Why Margin Matters

Profit margin is the key metric investors and lenders look at. A higher margin means more financial cushion for unexpected costs, growth investments, and economic downturns.

How to Calculate Markup

Markup shows how much you have added on top of your cost to arrive at the selling price. While margin is based on selling price, markup is based on cost.

Markup = ((Selling Price – Cost) / Cost) x 100
Example: Product costs $60, sells for $100
Profit = $100 – $60 = $40
Markup = ($40 / $60) x 100 = 66.67%

Markup: 66.67%

Notice how the same product has a 40% margin but a 66.67% markup. This is a crucial distinction that confuses many business owners.

Margin vs Markup – The Key Difference

Margin and markup are often confused, but they measure different things:

MetricBased OnFormula
Profit MarginSelling PriceProfit / Selling Price
MarkupCostProfit / Cost

Here is how common margins translate to markups:

MarginMarkupExample ($100 sale)
10%11.1%Cost $90, Profit $10
20%25%Cost $80, Profit $20
25%33.3%Cost $75, Profit $25
30%42.9%Cost $70, Profit $30
40%66.7%Cost $60, Profit $40
50%100%Cost $50, Profit $50
60%150%Cost $40, Profit $60
75%300%Cost $25, Profit $75
Common Mistake

If you want a 30% profit margin, do not mark up your cost by 30%. A 30% markup only gives you a 23% margin. Use the calculator above or the conversion table to get it right.

How to Calculate Gross Profit

Gross profit is the actual dollar amount you make on a sale before accounting for operating expenses. It is simply revenue minus the direct cost of goods.

Gross Profit = Revenue – Cost of Goods Sold (COGS)
Example: Selling 100 Units
Revenue = 100 units x $50 = $5,000
COGS = 100 units x $30 = $3,000
Gross Profit = $5,000 – $3,000 = $2,000

Gross profit: $2,000

Gross Profit Margin

Gross profit margin expresses gross profit as a percentage of revenue:

Gross Profit Margin = (Gross Profit / Revenue) x 100
Gross Margin from the Example Above
Gross Margin = ($2,000 / $5,000) x 100 = 40%

How to Calculate Net Profit

Net profit is what remains after ALL expenses are deducted – not just cost of goods, but also operating expenses, taxes, interest, and other costs.

Net Profit = Revenue – All Expenses
Example: Full Business Calculation
Revenue: $100,000
Cost of Goods: $40,000
Operating Expenses: $35,000
Taxes: $5,000
Net Profit = $100,000 – $40,000 – $35,000 – $5,000 = $20,000

Net profit: $20,000

Net Profit Margin

Net Profit Margin = (Net Profit / Revenue) x 100
Net Margin from the Example Above
Net Margin = ($20,000 / $100,000) x 100 = 20%

While gross margin was 60% in this example, net margin is only 20% after all expenses.

How to Calculate Selling Price from Margin

If you know your cost and target profit margin, you can calculate the required selling price:

Selling Price = Cost / (1 – Target Margin / 100)
Example: $60 Cost, Target 40% Margin
Selling Price = $60 / (1 – 40/100)
Selling Price = $60 / 0.60 = $100

You need to sell at $100 to achieve 40% margin

This formula is essential when you have a target margin in mind and need to set your prices accordingly.

How to Calculate Selling Price from Markup

If you prefer working with markup percentages:

Selling Price = Cost x (1 + Markup / 100)
Example: $60 Cost, 50% Markup
Selling Price = $60 x (1 + 50/100)
Selling Price = $60 x 1.50 = $90

Selling price: $90

Industry Profit Margins

Profit margins vary significantly by industry. Here are typical ranges:

IndustryTypical Gross MarginTypical Net Margin
Software / SaaS70-85%15-25%
Financial ServicesN/A15-30%
Healthcare / Pharma60-80%10-20%
Retail (General)25-35%2-5%
E-commerce40-60%5-10%
Restaurants60-70%3-9%
Manufacturing25-35%5-10%
Construction15-25%2-6%
Grocery20-30%1-3%

Compare your margins to industry benchmarks to see how competitive you are. If your margins are below average, look for ways to reduce costs or increase prices.

Profit Margin Calculator Examples

Example 1: Retail Product

T-shirt: Cost $8, Sells for $25
Profit = $25 – $8 = $17
Margin = ($17 / $25) x 100 = 68%
Markup = ($17 / $8) x 100 = 212.5%

Example 2: Service Business

Consulting: $50/hr cost, $150/hr rate
Profit = $150 – $50 = $100 per hour
Margin = ($100 / $150) x 100 = 66.7%
Markup = ($100 / $50) x 100 = 200%

Example 3: Restaurant Dish

Pasta dish: $4 ingredients, $16 menu price
Gross Profit = $16 – $4 = $12
Margin = ($12 / $16) x 100 = 75%
Markup = ($12 / $4) x 100 = 300%

Example 4: E-commerce Product

Gadget: $45 cost (inc shipping), $79 price
Profit = $79 – $45 = $34
Margin = ($34 / $79) x 100 = 43%
Markup = ($34 / $45) x 100 = 75.6%

How to Improve Your Profit Margins

If your margins are lower than you would like, here are strategies to improve them:

Reduce Costs

  • Negotiate better rates with suppliers
  • Buy in larger quantities for volume discounts
  • Find alternative suppliers or materials
  • Reduce waste and inefficiencies
  • Automate repetitive tasks

Increase Prices

  • Add value to justify higher prices
  • Target less price-sensitive customers
  • Bundle products or services
  • Reduce or eliminate discounting
  • Test price increases on select products

Improve Product Mix

  • Focus on high-margin products
  • Phase out low-margin offerings
  • Upsell and cross-sell higher-margin items
  • Create premium versions of popular products

For tracking price changes, use our percentage increase calculator. For calculating sale prices and their impact on margins, try our discount calculator.

Frequently Asked Questions

What is a good profit margin?

A good profit margin depends on your industry. Generally, a 10% net profit margin is average, 20% is good, and 30%+ is excellent. However, some industries like grocery operate on 1-3% margins while software companies may achieve 20-30%. Compare to your industry benchmarks rather than general figures.

What is the difference between margin and markup?

Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. A product with 50% markup has only 33% margin. They measure the same profit but from different perspectives – margin tells you what portion of revenue is profit, markup tells you how much you added to your cost.

How do I convert margin to markup?

Use this formula: Markup = Margin / (1 – Margin). For a 25% margin: Markup = 0.25 / (1 – 0.25) = 0.25 / 0.75 = 0.333 or 33.3%. Alternatively, use the conversion table above or the calculator on this page.

How do I calculate the selling price from cost and margin?

Use this formula: Selling Price = Cost / (1 – Margin). For a $50 cost with 40% target margin: $50 / (1 – 0.40) = $50 / 0.60 = $83.33. This ensures you achieve exactly the margin you want.

What is the difference between gross and net profit margin?

Gross profit margin only deducts direct costs (cost of goods sold) from revenue. Net profit margin deducts ALL expenses including operating costs, taxes, and interest. Gross margin shows product profitability; net margin shows overall business profitability.

Can profit margin be more than 100%?

No, profit margin cannot exceed 100% because it measures profit as a portion of selling price. Even if you sold something for infinity, your margin approaches 100% but never exceeds it. Markup, however, can exceed 100% – a 200% markup means you tripled the cost.

How do I calculate margin on multiple products?

Add up total revenue and total costs across all products, then calculate margin on the totals. For example: Total revenue $10,000, total costs $6,000, overall margin = ($4,000 / $10,000) x 100 = 40%. This gives you a blended margin across your product mix.

Why is my markup higher than my margin?

Markup is always higher than margin for the same product because they use different bases. Markup uses cost (smaller number) as the denominator, margin uses selling price (larger number). This mathematical difference means a 50% markup equals only a 33% margin.

Related Calculators

Back to Percentage Calculator for more calculation tools.