how to calculate the profit margin percentage

Profit Margin Calculator

Enter your total revenue and total cost to calculate your profit margin percentage instantly.

What is profit margin percentage?

Profit margin percentage is one of the most important business metrics because it tells you how much profit you keep from each dollar of sales. In simple terms, it measures efficiency: after paying costs, how much money is left?

Whether you run an online shop, freelance service, local store, or growing startup, understanding profit margin helps you set better prices, control expenses, and make smarter decisions.

The basic formula

The standard formula for profit margin percentage is:

Profit Margin (%) = ((Revenue - Cost) / Revenue) × 100

  • Revenue = total money earned from sales
  • Cost = total expenses directly related to generating those sales
  • Revenue - Cost = gross profit (or net profit, depending on which costs you include)

Step-by-step: how to calculate the profit margin percentage

1) Find your total revenue

Add up all income from the product or service you are analyzing. If you sold 200 units at $50 each, your revenue is $10,000.

2) Find your total cost

Add direct costs like materials, production, shipping, labor, and transaction fees. If you spent $7,000 total, that is your cost.

3) Calculate profit

Profit = Revenue - Cost. Using the same example: $10,000 - $7,000 = $3,000.

4) Divide profit by revenue

$3,000 ÷ $10,000 = 0.30

5) Convert to a percentage

0.30 × 100 = 30% profit margin.

Quick examples

Retail example

  • Revenue: $25,000
  • Costs: $19,000
  • Profit: $6,000
  • Margin: ($6,000 ÷ $25,000) × 100 = 24%

Freelance business example

  • Revenue: $8,000
  • Costs (software, subcontractors, ads): $2,800
  • Profit: $5,200
  • Margin: ($5,200 ÷ $8,000) × 100 = 65%

Low-margin scenario

  • Revenue: $50,000
  • Costs: $48,500
  • Profit: $1,500
  • Margin: ($1,500 ÷ $50,000) × 100 = 3%

A low margin means your business may be vulnerable to small cost increases. Tracking this metric regularly helps prevent surprises.

Profit margin vs markup (common confusion)

Many people mix up margin and markup. They are not the same:

  • Margin uses revenue as the denominator.
  • Markup uses cost as the denominator.

Example: If an item costs $80 and sells for $100:

  • Profit = $20
  • Margin = $20 / $100 = 20%
  • Markup = $20 / $80 = 25%

This distinction matters when pricing products and planning promotions.

Gross margin vs net margin

Gross margin

Uses revenue and cost of goods sold (COGS). Great for evaluating product-level profitability.

Net margin

Includes all expenses (rent, salaries, software, taxes, interest, etc.). Better for understanding overall business health.

If your gross margin looks healthy but net margin is weak, overhead may be too high.

How to improve your profit margin percentage

  • Increase prices strategically where customer value supports it.
  • Negotiate better supplier rates and reduce waste.
  • Focus on higher-margin products or services.
  • Lower refunds/returns through better quality control.
  • Automate repetitive tasks to reduce labor costs.
  • Monitor discounts to avoid eroding profitability.

Common mistakes to avoid

  • Forgetting hidden costs (payment fees, shipping losses, chargebacks).
  • Comparing margin across very different industries without context.
  • Using revenue forecasts instead of actual numbers for decisions.
  • Assuming high revenue means high profit.
  • Confusing margin with markup when setting prices.

Final takeaway

If you remember one thing, remember this: profit margin percentage shows how much of each sales dollar you actually keep. Use the calculator above regularly—weekly or monthly—to track trends and improve decision-making over time.

🔗 Related Calculators