Profit Margin and Markup Calculator

Gross profit, margin % and markup % for one or many products.

ProductCost priceSelling priceQty

About this tool

Margin and markup both describe profit, but they use different bases, and mixing them up leads to underpriced products. Margin is profit as a share of the selling price. Markup is profit as a share of the cost.

Add one row per product with cost, selling price and quantity. The calculator shows per-product and combined gross profit, margin and markup, and warns when you are selling at a loss.

How to use the Profit Margin and Markup Calculator

  1. Type a product name (optional), its cost price, selling price and quantity.
  2. Use Add product for more items.
  3. Press Calculate.
  4. Read the combined totals and, when several products are entered, the per-product table.

Practical examples

Cost 600, selling 800. Profit = 200. Margin = 200 / 800 = 25%. Markup = 200 / 600 = 33.33%.
To earn a 40% margin on an item costing 600 you need to sell at 600 / (1 - 0.40) = 1,000, not at 600 + 40% = 840.

How it works

Gross profit = (selling price - cost price) x quantity.

Margin % = gross profit / revenue x 100. Markup % = gross profit / cost x 100. For several products the totals are computed from summed revenue and cost, so higher-volume items weigh more.

Gross profit excludes overheads, taxes and shipping unless you include them in the cost price.

Privacy and file processing

Your prices never leave your browser.

See our Privacy Policy for details on cookies, local storage and advertising.

Frequently asked questions

Which should I use to set prices, margin or markup?

Either works if used consistently. Markup is quick for adding to cost; margin shows how much of each sale you keep.

Why is margin always lower than markup?

Margin divides by the larger number (the selling price), so it is smaller for any profitable sale.

Does it include GST?

No. Enter prices excluding tax for accurate profit figures.

Can I enter a loss?

Yes. Selling below cost produces negative profit and a warning.

Related tools

Results are for general information. Check important figures against official sources. Read the disclaimer.