Back to Tools

Business & Pricing

Profit Margin Calculator

A gross profit margin calculator: find the margin from a cost and a selling price, or from sales revenue and cost of goods sold, and the selling price you need to hit a target margin.

What do you want to find?

Your results will appear here

Enter the cost and the selling price. The margin updates as you type.

The method

How to calculate profit margin

Gross profit margin is the share of the selling price you keep after paying for what you sold. It uses two numbers, the cost and the price, for one product, or sales revenue and cost of goods sold for a whole period. Rent, wages and other overheads come out later, in the net margin.

There are two ways to use the calculator. Find the margin takes your cost and selling price and shows the margin, the markup and the profit per sale. Find the selling price works the other way: enter your cost and the margin you want, and it gives the price, using cost ÷ (1 − margin), rounded up to the next cent.

The formulas

Margin = (price − cost) ÷ price

Markup = (price − cost) ÷ cost

Price = cost ÷ (1 − margin)

Worked example: one product

An item costs $64 and sells for $80. The profit is $16.00, so the margin is 16 ÷ 80 = 20.00% and the markup is 16 ÷ 64 = 25.00%. To make a 20% margin on an $80 cost, price it at 80 ÷ 0.80 = $100.00, not $96.

Worked example: a year's sales

$250,000 of sales and $150,000 cost of goods sold: gross profit $100,000.00, a 40.00% gross margin. After $70,000 of other running costs, profit is $30,000.00, a 12.00% net margin before tax.

Margin to markup at a glance

Markup on cost needed for each margin
MarginMarkup needed
10%11.11%
20%25.00%
25%33.33%
30%42.86%
40%66.67%
50%100.00%
60%150.00%

Price for a target margin on a $50 cost

Selling price needed for common target margins on a $50 cost
Target marginSelling price
20%$62.50
30%$71.43
40%$83.34
50%$100.00
60%$125.00

Margin, markup or break-even? If you price by adding a percentage to your cost, use the Markup Calculator. Our guide to markup vs margin explains why the two numbers differ. To see how many sales cover your fixed costs, use the Break-Even Calculator, and to take VAT or GST out of a price first, the VAT Calculator.

What you get

Key features

  • Margin and markup together

    See profit as a share of the selling price (margin) and as a share of the cost (markup), clearly labelled so they aren't confused.

  • Price for a target margin

    Enter your cost and the margin you want, and get the selling price, rounded up so you don't fall short.

  • Losses and break-even

    A price below cost shows a negative margin in red, and a price equal to cost is labelled break-even.

  • Product or whole business

    Use one item's cost and price, or a period's sales revenue and cost of goods sold: the gross margin formula is the same.

Read before relying on it

Assumptions

  • This is gross margin: the selling price (or sales revenue) minus the cost of what was sold. Overheads such as rent, wages, marketing, interest and tax aren't included, so it isn't your net profit margin.
  • Enter prices before sales tax. If your price includes GST or VAT, remove the tax first, or the margin will look higher than it is.
  • In target-price mode, the price is rounded up to the next cent, so the margin at that price is never below your target.
  • A cost of $0 gives a 100% margin. Markup isn't defined in that case, because it divides by the cost. Target margins must be below 100%.

Questions

Frequently asked questions

Related Articles

Where this comes from

Sources

Standard formula, see How it works.

Last reviewed: October 2026. Built and maintained by FinCalcBox; see About.