Markup calculator

Set a price from your cost and markup, find the markup and margin on a price you already charge, or work back from the margin you need.

I know
Selling price
—
Selling price
—
Profit per unit
—
Markup (profit ÷ cost)
—
Margin (profit ÷ price)
—

Gross margin per unit, before overhead such as rent, salaries and software.

How the markup calculator works

Markup is how much you add to your cost to set a price, as a percentage of the cost. Margin is the same profit as a percentage of the price. The calculator works three ways: from a cost and a markup to a price, from a cost and a price to the markup and margin, and from a cost and the margin you want to the price that delivers it.

Price = cost × (1 + markup)
Markup = (price − cost) ÷ cost
Margin = (price − cost) ÷ price
Price for a target margin = cost ÷ (1 − margin)

Margin vs markup

Markup and margin describe the same dollars of profit, measured against different bases. When you make a profit the price is larger than the cost, so margin is always the smaller of the two percentages. Convert between them with:

Margin = markup ÷ (1 + markup)
Markup = margin ÷ (1 − margin)
MarkupMarginPrice on a $100 cost
10%9.09%$110.00
20%16.67%$120.00
25%20%$125.00
33.33%25%$133.33
50%33.33%$150.00
100%50%$200.00

Margin can never reach 100%, because that would mean the item cost nothing. Markup has no ceiling: doubling the cost is a 100% markup, and tripling it is 200%. If you came here for a profit margin calculator, read the margin column: it is the gross profit margin on each unit. Before you use a percentage someone quotes you, check whether it is a markup or a margin.

Worked examples

Example 1: a 50% markup

A product costs $40 to buy and ship. A 50% markup sets the price at 40 × 1.5 = $60, a profit of $20 per unit. As a margin, that $20 is 20 ÷ 60 = 33.33% of the price. To earn a 50% margin on the same cost you would need to charge $80, which is a 100% markup.

Example 2: pricing for a 40% margin

The same $40 product needs a 40% margin to cover overhead. The price is 40 ÷ (1 − 0.40) = $66.67, a profit of $26.67. The equivalent markup is 0.40 ÷ 0.60 = 66.67%. Adding a 40% markup instead would give a $56 price and only a 28.57% margin.

Common mistakes

  • Using a markup percentage as the margin. A 40% markup is a 28.57% margin. Pricing with markup when your plan assumes margin leaves less profit than expected.
  • Leaving costs out of cost. Include freight, packaging, payment fees and anything else each unit carries, or the markup covers less than you think.
  • Forgetting discounts. A 20% discount on a 50% markup leaves a 20% markup: 60 × 0.8 = $48 on a $40 cost.
  • Treating margin as profit after overhead. This is gross margin per unit. Rent, salaries and software still come out of it.

Pricing a product line? Our guides to inventory management software and ecommerce shipping software help you pin down the full cost per unit, and QuickBooks alternatives covers accounting tools that report margin by product. To see how many units a margin needs to cover fixed costs, use the break even calculator; to check what a pricing change returns, try the ROI calculator.

Frequently asked questions

What is the markup formula?

Markup = (price − cost) ÷ cost × 100. A $60 price on a $40 cost is a $20 profit and a 50% markup. To find a price from a markup, multiply the cost by 1 plus the markup: $40 × 1.5 = $60.

What is the difference between margin and markup?

Both use the same profit. Markup divides it by the cost and margin divides it by the price. A $40 item sold for $60 has a 50% markup and a 33.33% margin.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup), so a 25% markup is 0.25 ÷ 1.25 = 20% margin. The other way, markup = margin ÷ (1 − margin), so a 50% margin is a 100% markup.

Can a margin be 100% or more?

No. Margin is profit as a share of the price, so a 100% margin would mean the item cost nothing. The calculator rejects a target margin of 100% or more. Markup can go above 100%.

What markup should I use?

Work back from the margin you need to cover overhead and profit at the volume you expect, then convert it to a markup. The break even calculator shows how many units a given margin needs to cover your fixed costs.

From the blog

Further reading.

Productivity & Operations

Best Inventory Management Software for Small Business

Compare the best inventory management software for 2026: Zoho Inventory, Cin7, Katana, MRPeasy, Fishbowl, inFlow and Sortly by business type, price and apps.

Learn more
Productivity & Operations

Ecommerce Shipping Software: 6 Options Compared for 2026

Compare ecommerce shipping software for small stores: ShipStation, Shippo, Sendcloud, Easyship, Veeqo and PitneyShip on fees, label limits and carriers.

Learn more
Finance & Accounting

Best Alternatives to QuickBooks in 2026: 5 Picks Compared

Alternatives to QuickBooks for small businesses: Xero, FreshBooks, Zoho Books, Wave and Odoo compared on price, free plans, multi-currency and fit.

Learn more
More free tools

Other calculators.

Salary to Hourly CalculatorOvertime CalculatorPTO Accrual CalculatorBreak Even CalculatorWebsite Cost CalculatorLTV CalculatorCAC CalculatorEmployer Payroll Tax CalculatorEmployee Cost Calculator1099 vs W2 CalculatorROI CalculatorRaise CalculatorCommission CalculatorPayback Period CalculatorAll tools