Free Profit Margin Calculator: Margin, Markup & Profit

Margin and markup describe the same sale from two directions, and mixing them up misprices products. This profit margin calculator guide gives both formulas, worked examples, and a way to set a price from the margin you want.

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:

Margin vs Markup
NoteResult
cost = 40 40
price = 100 100
profit = price - cost 60
profit / price * 100 60
profit / cost * 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.

Example: E-commerce Product
NoteResult
candle price = 35 35
unit cost = 12 12
profit = candle price - unit cost 23
profit / candle price * 100 65.71

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.



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.

Calculate Margins in Notes Calculator

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

Product Pricing
NoteResult
// Prices in USD; margin and markup results are percentages
cost = 18 18
// Set price from target margin
target margin = 40% 40%
price = cost / (1 - target margin) 30
profit = price - cost 12
profit / price * 100 40
profit / cost * 100 66.67

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 $30 in € to see international pricing.

For depreciation and VAT scratch work alongside margins, see the examples in our calculator for small businesses and accountants.

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

Skip the manual math.

Notes Calculator runs every formula in this article, and a lot more, in plain text. Free on every platform.

Free forever plan · No credit card · Cross-platform