← All tools

Margin Calculator

Not sure how much profit you're making on a product? Enter your unit cost and selling price to see your gross profit, profit margin and markup. It's a quick way to check your pricing and understand how much of each sale remains after the costs you've included.

Profit Margin Calculator

Gross profit
40.00
Margin
40.00%
Markup
66.67%

Gross margin compares profit with selling price. Markup compares profit with unit cost.

Pricing & Profit Simulator

Estimate the result of a sales period by including additional costs, sales volume and fixed expenses. All amounts must use the same currency.

Revenue
5000.00
Variable costs
3500.00
Fixed costs
300.00
Contribution per sale
30.00
Estimated result
1200.00
Break-even volume
10 units

Estimated result = revenue minus variable costs and fixed costs. Break-even volume assumes the same unit price and unit costs for every sale.

This is an illustrative planning estimate, not a forecast or accounting advice. Taxes, refunds and expenses not entered are excluded.

How to use Margin Calculator

  1. Enter the unit cost of your product or service.
  2. Enter a selling price greater than zero.
  3. Review gross profit, margin percentage and markup percentage.
  4. Account separately for other expenses when evaluating actual business profitability.

Practical examples

Example: cost 60, selling price 100

Gross profit is 40. Margin is 40% because 40 ÷ 100 × 100 = 40%. Markup is about 66.67% because 40 ÷ 60 × 100 = 66.67%.

Use margin and markup correctly

Margin compares profit to the selling price. Markup compares profit to cost. They use different denominators and should not be confused.

Frequently asked questions

Why are margin and markup different?

Margin divides gross profit by selling price, while markup divides it by cost.

What if unit cost is zero?

The tool can show margin, but displays N/A for markup because division by zero is undefined.

Is gross profit my final net profit?

No. Operating expenses, taxes, delivery and other costs may still need to be deducted.

Results are a simple per-unit calculation and should not be treated as a complete profitability forecast.

Learn more about pricing

Understand the difference between margin and markup, and learn how to calculate a selling price.

How to estimate profit and break-even sales

Gross profit per unit is a useful starting point, but it does not account for every business expense. The Pricing & Profit Simulator lets you include additional costs per sale, the number of units sold and fixed costs for the period.

Example: selling 50 products

Imagine a product with a unit cost of 60, a selling price of 100 and an additional cost of 10 per sale. The business also has 300 in fixed costs for the period. All amounts use the same currency.

At 10 sales, the total contribution covers the fixed costs entered. Above this level, additional sales improve the estimated result if the price and costs remain unchanged.

What if each sale loses money?

If the selling price is equal to or below the combined unit cost and additional cost per sale, the contribution is zero or negative. In this situation, increasing sales volume cannot cover positive fixed costs under the same assumptions.

This simulator provides an illustrative estimate, not an accounting forecast. Taxes, returns and other expenses not entered are excluded.

Profit margin calculation examples

Profit margin tells you what percentage of the selling price remains after direct costs. Markup expresses the same gross profit as a percentage of cost. These examples use the same currency throughout.

Gross profit margin and markup formulas

Gross profit = Selling price - Unit cost

Profit margin (%) = (Gross profit / Selling price) × 100

Markup (%) = (Gross profit / Unit cost) × 100

Example: if a product costs 60 and sells for 100, gross profit is 40. Profit margin is 40%, while markup is approximately 66.67%.

Profit margin requires a nonzero selling price, and markup requires a nonzero unit cost. Both calculations depend on which costs are included in the unit cost.

Example calculations with a unit cost of 50
Selling priceGross profitMarginMarkup
601016.67%20%
752533.33%50%
1005050%100%

How to calculate a selling price from target margin

To reach a target gross margin, divide unit cost by one minus the target margin expressed as a decimal.

Selling price = Unit cost / (1 - Target margin)

Example: a unit cost of 80 and a target margin of 25% give a price of 80 / 0.75 = 106.67 when rounded to two decimal places. The target margin must be below 100%.

Include relevant costs before evaluating margin

Suppose you sell a product for 100. Its purchase cost is 60, and directly attributable packaging costs another 5. If both are included in your direct unit cost, gross profit is 35 and gross margin is 35%, not 40%.

The calculation does not automatically account for all operating expenses, discounts, returns or taxes. Gross margin is not the same as final net profit.

Explore the full margin vs markup guide

Set a selling price using your target margin

Example: a 30% target margin

If your total cost is 70 and you want a gross margin of 30%, divide 70 by 0.70. The target selling price is 100, giving gross profit of 30 and a 30% gross margin.

Margin is not markup

Margin compares gross profit with selling price; markup compares it with cost. Include relevant expenses when defining cost and remember that gross margin is not necessarily net profit.

Downloadable resource

Profit Margin & Pricing Excel Toolkit

Explore an Excel toolkit for pricing and profit margin calculations.

Download Toolkit →

Opens the product page in a new tab. Check the price and download conditions before proceeding.

How discounts affect your profit margin

A discount reduces your selling price, but your unit cost may remain unchanged. This means a small percentage discount can produce a much larger percentage reduction in gross profit.

Worked example: a 10% discount

Imagine an item costs 60 and normally sells for 100. Its gross profit is 40, giving a 40% gross margin. A 10% discount reduces the selling price to 90 while the cost stays at 60. Gross profit becomes 30, and the new margin is 30 / 90 × 100 = 33.33%.

The price dropped by 10%, but the gross profit per item dropped from 40 to 30, a 25% reduction. To compare promotional scenarios, enter the original selling price, record the result, then enter the discounted price using the same unit cost.

A useful pricing check

Before offering a discount, calculate the lowest selling price that still covers relevant direct costs. This calculator does not estimate how many additional sales a promotion might generate, so consider demand and other operating expenses separately.