Profit Margin Calculator

Calculate gross profit margin and markup from cost and selling price, or find the price you need for a target margin. Free tool for Australian businesses.

Cost, selling price

Gross margin

40%

Buying at $30.00 and selling at $50.00 gives a 40% margin and a 66.67% markup ($20.00 profit).

  • Gross profit$20.00
  • Margin40%
  • Markup66.67%
Show the working
  1. Profit = selling price − cost = $50.00 − $30.00 = $20.00
  2. Margin = profit ÷ selling price × 100 = $20.00 ÷ $50.00 × 100 = 40%
  3. Markup = profit ÷ cost × 100 = $20.00 ÷ $30.00 × 100 = 66.67%

Quick answerGross margin = (selling price − cost) ÷ selling price × 100. Selling for $50 something that cost $30 is a 40% margin ($20 ÷ $50). To price for a target margin, divide the cost by (1 − margin ÷ 100): $30 ÷ 0.6 = $50.

Formulas

  • Gross marginMargin % = (Price − Cost) ÷ Price × 100
  • Price for a target marginPrice = Cost ÷ (1 − Margin ÷ 100)
  • Margin to markupMarkup = Margin ÷ (1 − Margin)

Worked examples

  • A café buys a coffee’s ingredients for $1.10 and sells it for $5.20.4.10 ÷ 5.20 × 100 = 78.85% margin
  • You want a 35% margin on a product costing $64.64 ÷ 0.65 = $98.46

Margin vs markup

Both describe the same profit, but measured against different bases. Margin is profit as a share of the selling price; markup is profit as a share of the cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.67% markup. Margin can never reach 100%; markup can be any size. Read the full markup vs margin guide.

Don’t forget GST

If you’re registered for GST, calculate margins on GST-exclusive figures. The GST you collect isn’t your revenue — it goes to the ATO. Strip GST from prices first with the GST calculator.

Frequently asked questions

How do I calculate profit margin?

Subtract cost from selling price to get gross profit, divide by selling price, and multiply by 100.

What is a good profit margin?

It depends heavily on the industry. Retail and hospitality gross margins are very different from software or professional services. Compare against businesses like yours rather than a single rule of thumb.

Is a 50% markup a 50% margin?

No. A 50% markup gives a 33.33% margin. A 50% margin needs a 100% markup.

What is net profit margin?

Net profit margin is net profit (after all expenses, including overheads and tax) divided by revenue. This calculator works out gross margin, which only subtracts the direct cost of the item.

Last reviewed 28 November 2026. Results are rounded for display; the working shows each step.