Free Profit Margin Calculator: Margin, Markup & Profit

Free profit margin calculator. Enter cost and revenue to calculate profit margin percentage, markup percentage, and gross profit. Includes margin vs markup explained.

Jump to the free profit margin calculator

Understanding Profit Margin

Profit margin is one of the most important metrics in business. It tells you what percentage of your revenue is actual profit after costs. Whether you’re pricing products, evaluating a business, or tracking financial health, understanding margin is essential.

Margin vs Markup — What’s the Difference?

These two terms are often confused, but they measure different things:

  • Profit Margin = Profit / Revenue × 100
  • Markup = Profit / Cost × 100

For example, if you buy something for $40 and sell it for $100:

Profit = 100 - 40 = $60
Margin = 60 / 100 × 100 = 60%
Markup = 60 / 40 × 100 = 150%

The same transaction gives a 60% margin but a 150% markup.

The Profit Margin Formula

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

Example: E-commerce Product

You sell handmade candles for $35 each. Materials and shipping cost $12 per unit.

Profit = 35 - 12 = $23
Margin = 23 / 35 × 100 = 65.7%

Types of Profit Margin

TypeFormulaWhat It Measures
Gross margin(Revenue - COGS) / RevenueProduction efficiency
Operating marginOperating income / RevenueOperational efficiency
Net marginNet income / RevenueOverall profitability

Setting Prices Using Margin

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

Price = Cost / (1 - Target Margin / 100)

For a $25 product with a target 40% margin:

Price = 25 / (1 - 0.40)
Price = 25 / 0.60
Price = $41.67

Free Profit Margin Calculator

Calculate profit, margin percentage, and markup from your cost and revenue.

©2026 Notes Calculator. All rights reserved.


Example

Cost $40, Revenue $100:

Profit = $100 - $40 = $60
Margin = 60 / 100 × 100 = 60%
Markup = 60 / 40 × 100 = 150%

Frequently Asked Questions

What is the difference between margin and markup?

Margin is the percentage of the selling price that is profit (profit / revenue x 100). Markup is the percentage added to the cost (profit / cost x 100). The same transaction gives different numbers: selling a $40 item for $100 yields a 60% margin but a 150% markup. Margin is always lower than markup for the same transaction.

What is a good profit margin?

Good profit margins vary by industry. Retail typically sees 2-5% net margins, while software companies may achieve 20-40%. Gross margins are higher: 50%+ is common in services. Compare your margin to industry benchmarks rather than an absolute number.

How do I calculate selling price from a target margin?

Use the formula: Price = Cost / (1 - Target Margin / 100). For a $25 product with a target 40% margin: Price = $25 / (1 - 0.40) = $25 / 0.60 = $41.67. This ensures your margin is calculated on the final selling price, not the cost.

Freelancers can use our invoice calculator to calculate project totals with tax. For pricing discounts and sales, check the discount calculator.

Calculate Margins in Notes Calculator

Notes Calculator’s variables and percentage support make pricing analysis fast:

# Product Pricing
cost = $40
revenue = $100

profit = revenue - cost
margin = profit / revenue * 100
markup = profit / cost * 100

// Set price from target margin
target margin = 60%
price from margin = cost / (1 - target margin)

Change cost and every metric updates instantly. Use total to sum costs across multiple line items, and headings (#) to separate product categories. Notes Calculator also supports currency conversions — type $41.67 in € to see international pricing.

Try it in Notes Calculator

Calculate directly in your notepad — available on Mac, Windows, Linux & Web.