Back to Tools

Business & Pricing

Profit Margin Calculator

Find the gross margin on a product from its cost and selling price, or 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 it works

Gross profit margin is the share of the selling price you keep after paying for the item itself. It uses only two numbers, the cost and the price, so it tells you about the pricing of one product, not the profit of your whole business once rent, wages and other overheads are paid.

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

An item costs $64 and sells for $80. The profit is $16, so the margin is 16 ÷ 80 = 20% and the markup is 16 ÷ 64 = 25%. The other way round: to make a 20% margin on an $80 cost, price it at 80 ÷ 0.80 = $100, not $96, which is what adding 20% to the cost gives.

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%

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.

  • Margin-to-markup table

    A quick reference for converting common margins to the markup you'd need on cost.

Read before relying on it

Assumptions

  • This is gross margin on one item: the selling price minus what the item cost you. 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 (the GST and VAT calculators can do that), 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%: a 100% margin would need an infinite price.

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.