Qgenx Tools

Margin & Markup Calculator

Calculate gross profit, gross margin %, markup %, and target selling price from cost in your browser.

Runs in your browser
40.00%
Gross margin
66.67%
Markup %
$40.00
Gross profit
$100.00
Selling price
Margin = (Price − Cost) / Price
Markup = (Price − Cost) / Cost
Selling at $100.00 on $60.00 cost earns $40.00 profit.

About this tool

A margin and markup calculator converts between unit cost, selling price, gross profit, gross margin percentage, and markup percentage so you never confuse margin on revenue with markup on cost. In target-margin mode, selling price is Cost / (1 − margin / 100). Margins of 100% or higher are mathematically impossible for positive costs and trigger an input validation guard.

How to use the margin calculator

  1. Choose a mode: Cost + Selling Price, or Cost + Target Margin.
  2. Enter the unit cost of the product.
  3. Enter the selling price, or the target gross margin percentage, depending on the mode.
  4. Read the gross margin, the markup and the profit per unit.
  5. Copy the breakdown for a pricing sheet.

Margin and markup are different

Gross margin is the share of the selling price that you keep after the cost of the product. It is calculated as the profit divided by the selling price. Markup is the profit divided by the cost. A product that costs 60 and sells for 100 has a margin of 40 per cent and a markup of about 66.7 per cent.

The two are often confused, and a 50 per cent markup does not give a 50 per cent margin. Pricing by margin is common in retail, and pricing by markup is common in trade and wholesale.

A worked example

If a product costs 60 and you want a 40 per cent margin, the selling price must be 60 divided by 0.6, which is 100. Switching to Cost + Target Margin with 40 per cent entered gives the same price, which shows the two modes agree.

  • Set a price for a new product that must keep a 35 per cent margin after the supplier's cost.
  • Compare the markup on two suppliers to decide which offers the better return.

Who uses a margin calculator

  • Retailers and e-commerce sellers setting prices.
  • Wholesalers and distributors working out markups.
  • Freelancers and service businesses pricing their work.
  • Finance students learning gross profit analysis.
  • Owners reviewing whether a discount still leaves enough profit.

Tips and limits

  • A margin calculation uses only the unit cost. Add shipping, packaging, fees and returns to reach a true profit figure.
  • Check that the margin target is above zero and below 100 per cent. A margin of 100 per cent needs a free product.
  • Test a discounted price against the cost before you publish a sale.
  • The result is a planning figure. Your accountant may treat costs differently for tax purposes.
  • The calculation runs in your browser and nothing is stored.

Frequently asked questions

Margin is profit divided by selling price; markup is profit divided by cost. For $60 cost and $100 price, margin is 40% while markup is 66.67%.

Related browser tools