Profit Margin Calculator: Margin, Markup and Selling Price

Free online calculators for Canada and beyond. Calculate mortgage payments, salaries, taxes, percentages, grades, dates and everyday measurements with fast, accurate tools and easy-to-understand explanations.
Selling price (before tax)–
Gross profit per unit–
Profit margin–
Markup on cost–
Price with tax added–

Margin is profit ÷ selling price. Markup is profit ÷ cost. The tax line only adds GST/HST to the price; PST and QST are not included.

This profit margin calculator works three ways. Enter your cost and selling price to get your gross profit, margin and markup. Or enter your cost and the margin you want, and it gives the selling price you need. Or enter a markup percentage and see the price and the real margin it produces. You can also add GST or HST to show the final shelf price a customer pays in your province.

Margin vs markup: the formulas

Margin and markup use the same profit, but divide it by different numbers. That is why a 50% markup is not a 50% margin.

  • Gross profit = selling price − cost
  • Profit margin (%) = gross profit ÷ selling price × 100
  • Markup (%) = gross profit ÷ cost × 100
  • Price from a target margin = cost ÷ (1 − margin ÷ 100)
  • Price from a markup = cost × (1 + markup ÷ 100)

Margin can never reach 100%, because that would mean the item cost nothing. Markup has no upper limit: if you buy something for $10 and sell it for $50, your markup is 400% but your margin is 80%.

Worked example

A small online shop buys a product for $40 and sells it for $65.

  • Gross profit: $65 − $40 = $25
  • Margin: $25 ÷ $65 = 38.46%
  • Markup: $25 ÷ $40 = 62.5%

The owner wants a 40% margin instead. The price must be $40 ÷ (1 − 0.40) = $66.67. Selling to a customer in Ontario, 13% HST is added on top: $66.67 × 1.13 = $75.33. Note that the tax is collected for the government; it is not part of your margin.

A common trap: adding 40% to the cost gives $56, which is only a 28.57% margin. If your goal is a margin, always use the margin formula.

Margin to markup conversion table

Use this table when a supplier or a business plan talks in one measure and you think in the other. Markup = margin ÷ (1 − margin). Margin = markup ÷ (1 + markup).

Profit marginEquivalent markupPrice for a $100 cost
10%11.11%$111.11
20%25%$125.00
25%33.33%$133.33
30%42.86%$142.86
33.33%50%$150.00
40%66.67%$166.67
50%100%$200.00
60%150%$250.00

GST/HST rates in 2026

If you are registered for GST/HST, you charge it on top of your selling price. The rates below have applied since April 1, 2025, when Nova Scotia’s HST dropped from 15% to 14%. They are still in effect in 2026.

Province or territoryRateType
Ontario13%HST
Nova Scotia14%HST
New Brunswick, Newfoundland and Labrador, Prince Edward Island15%HST
Alberta, British Columbia, Manitoba, Quebec, Saskatchewan, Yukon, Northwest Territories, Nunavut5%GST (plus PST or QST where it applies)

Source: Canada Revenue Agency, GST/HST calculator (and rates), rates in effect in 2026. For provincial sales taxes, use our sales tax calculator.

What counts as “cost”?

This is a gross margin calculator. “Cost” is the direct cost of one unit: the purchase price from your supplier, or the materials and direct labour for something you make. Many small businesses also add inbound shipping, customs duties and packaging, because those costs rise with every unit sold. Rent, software, advertising and your own salary are overhead. They are covered by your gross profit, not included in unit cost. A healthy gross margin has to be large enough to pay all overhead and still leave a net profit.

Common mistakes

  • Treating markup as margin. A 30% markup gives only a 23.08% margin. Pricing with the wrong one quietly eats profit.
  • Including sales tax in the selling price. GST/HST is not revenue. Calculate margin on the price before tax.
  • Forgetting payment fees and shipping. Card processing, marketplace commissions and free shipping reduce what you actually keep. Add them to the cost per unit.
  • Applying a discount to the margin. A 20% discount on a 40% margin item does not leave 20% margin; it leaves 25%. Check sale prices with our discount calculator before you run them.
  • Comparing margins across industries. Grocery stores live on thin margins; software and services can run much higher. Compare yourself with businesses like yours.

FAQ

What is a good profit margin for a small business?

It depends on the industry. Retailers often target gross margins in the 25% to 50% range, while services can be higher. The useful test is whether your gross profit covers all overhead and leaves a net profit you are happy with.

How do I calculate a 30% margin on a product?

Divide the cost by 0.70. A $70 cost needs a price of $100 for a 30% margin. Choose “Cost and target margin” above and enter 30.

Is markup or margin better for pricing?

Both work if you use them consistently. Markup is quick at the counter (“cost plus 50%”). Margin is better for planning, because it tells you what share of each sales dollar is gross profit.

Why can’t my margin be more than 100%?

Margin is a share of the selling price. Profit can never be larger than the price itself unless cost is negative, so margin always stays below 100%. Markup, measured against cost, can go well past 100%.

Should I add GST/HST before or after setting my price?

Set the price first, then add the tax at checkout or show a tax-included price. Your margin should always be worked out on the price before tax. For the percentage maths behind all this, see our percentage calculator.

Disclaimer: estimate only, not financial, accounting or tax advice. Confirm your GST/HST obligations with the Canada Revenue Agency or a professional.

Related: GST/HST Calculator · Discount Calculator · Percentage Calculator · Unit Price Calculator

Cart (