Markup vs Margin: Formulas & Examples

Markup and margin measure profit differently. Learn the formulas, compare real pricing examples, and calculate a selling price with confidence.

Markup vs margin: the difference

  • Markup: Profit as a percentage of cost.
  • Gross profit margin: Profit as a percentage of selling price.
  • Profit: Selling price minus the costs included in your calculation.

Suppose you buy a product for $80 and sell it for $100. The difference is $20. Your markup is 25%, but your gross profit margin is only 20%. Both figures are correct because their denominators are different.

Markup formula

Markup (%) = ((Selling price − Cost) ÷ Cost) × 100

For an $80 product sold at $100: ($100 − $80) ÷ $80 × 100 = 25% markup. Markup is especially useful when you know the cost and want to set a selling price from a cost-based pricing rule.

Profit margin formula

Margin (%) = ((Selling price − Cost) ÷ Selling price) × 100

With the same $80 cost and $100 selling price: ($100 − $80) ÷ $100 × 100 = 20% margin. Margin is useful when you want to understand the portion of each sales dollar left after the costs you’ve included.

How to calculate a selling price from markup

Selling price = Cost × (1 + Markup ÷ 100)

If an item costs $80 and you want a 30% markup, the selling price is $80 × 1.30 = $104. That yields $24 in profit before costs not included in your input. Its margin is about 23.08%, not 30%.

How to calculate a selling price from target margin

Selling price = Cost ÷ (1 − Target margin ÷ 100)

If cost is $80 and your target margin is 30%, the selling price is $80 ÷ 0.70 ≈ $114.29. In this example the expected profit is approximately $34.29, and the margin is about 30% after rounding.

A target margin of 100% or more cannot be achieved from a positive cost using this formula. A sale price must exceed the cost while leaving some portion for costs.

Markup and margin comparison table

CostSelling priceProfitMarkupMargin
$80$100$2025%20%
$50$75$2550%33.33%
$120$150$3025%20%

Don’t forget selling fees and other costs

A simple markup or margin calculation only considers the costs you enter. Depending on how you sell, additional costs can include payment-processing fees, marketplace commissions, packaging, shipping paid by the seller, and refunds. Taxes may also affect cash collected or owed, but should not automatically be treated as profit.

For example, a listed product could have a healthy gross margin on its purchase cost but much less profit after transaction fees and fulfillment expenses. Decide which costs belong in the calculation before using its result to set a price.

Use a markup and profit margin calculator

You don’t need to remember every formula. Open ToleHub’s free Markup & Profit Margin Calculator, enter your cost, choose the markup or target margin, and review the estimated selling price and profit. The calculator also supports additional costs and percentage selling fees.

Once you’ve worked out a selling price, you can create an invoice online. If you want to evaluate the performance of a larger investment rather than one sale, try the ROI Calculator.

Frequently asked questions

Is a 30% markup the same as a 30% margin?

No. A 30% markup on $100 cost produces a $130 sale price and a margin of about 23.08%. A 30% margin on the same cost requires a price of approximately $142.86.

Can margin be negative?

Yes. If the selling price is lower than the costs included in your calculation, profit and margin are negative.

Which metric is better for pricing?

Markup can be convenient when pricing from cost, while target margin is useful when you need a specific share of revenue left after selected costs. Many businesses track both.

Is gross profit margin the same as net profit margin?

No. Gross margin typically compares revenue with the cost of goods or services sold; net profit margin also considers other expenses. The result depends on which costs are included.

Calculate your own price

Try the Markup & Profit Margin Calculator with your actual numbers, then browse other free online tools for invoices, conversions and everyday calculations.