Profit Margin Calculator: Margin, Markup and Selling Price

Calculate gross margin and markup from cost and price, or find the selling price that gives the margin or markup you want.

Loading the calculator…

“We sell at a 50 % margin” and “we add 50 % to the cost” sound alike, but they give very different prices. This page keeps the two straight.

Margin vs markup in one table

Gross margin Markup
Formula (Price − Cost) ÷ Price (Price − Cost) ÷ Cost
Based on The selling price The cost
Can exceed 100 %? No Yes
Used by Accountants, financial statements Retail pricing, quotes

Quick conversions

Markup Equals a margin of
25 % 20 %
50 % 33.3 %
100 % 50 %
200 % 66.7 %

Margin = Markup ÷ (1 + Markup) · Markup = Margin ÷ (1 − Margin)

Pricing for a target margin

To earn a 35 % margin on an item that costs $40, divide the cost by (1 − 0.35): 40 ÷ 0.65 = $61.54. A common mistake is to add 35 % to the cost ($54), which only produces a 25.9 % margin.

Gross margin ignores rent, wages, shipping, payment fees and advertising. A product can show a healthy gross margin and still lose money once those costs are spread over each sale.

FAQ

What is a good profit margin?

It depends on the industry. Grocery stores often work on thin gross margins, while software and services run much higher. Compare yourself with businesses in your own sector rather than with a single target.

Should sales tax be included?

No. Enter prices before GST/HST/PST or sales tax. The tax is collected for the government and is not part of your revenue.

How do I include a discount?

Enter the price after the discount. A 20 % discount on a product with a 35 % margin cuts the margin to about 19 %, which is why discounts eat profit quickly.

Last reviewed November 30, 2026. Results are estimates for general information.