Markup calculator: selling price, markup and margin

Enter the cost and the markup, margin or selling price: the calculator shows the price, profit, markup and margin. Tiered markup, marketplace fees, discounts and VAT are on separate tabs.

  • Free
  • No sign-up
  • Runs in your browser
Elbuz robot at a calculator showing the cost and the selling price, with price tags on a shelf

Markup calculator

Markup is counted on the cost: markup % = (selling price − cost) ÷ cost × 100, and the price for a known markup is cost × (1 + markup). An item that costs €40 and sells for €60 has a markup of €20, or 50%. To set a price that covers marketplace fees, payment fees and returns, calculate it from those costs rather than from a "usual" percentage: the formula is below.

The main mistake is to add a percentage to the purchase price and forget that marketplace and payment fees are taken from the selling price. Below are the basic formulas on one example, a price calculation with all costs in which a 30% markup loses money, rounding with VAT, and the places where the calculation breaks.

When people calculate markup

A supplier's price list has arrived and prices have to be set, on your website or on a marketplace. The search starts with "how to calculate markup", "markup formula" or "markup calculator", and then goes on to "how to calculate selling price", "is 30% markup the same as 30% margin", "what is a good markup" and "how to do markup in Excel".

"What is a good markup" is the most popular question and the least useful one: the same percentage on items with different prices and different sales channels gives very different profit. So first the formulas, then a price built from your own costs.

Markup formulas

All four formulas start from one difference, price minus cost. Cost is the purchase price plus inbound shipping, import duties and other costs of getting the item into stock.

Formulas on one example: cost €40, price €60
What you needFormulaExample
Markup, €price − cost60 − 40 = €20
Markup, %(price − cost) ÷ cost × 10020 ÷ 40 × 100 = 50%
Price for a known markupcost × (1 + markup)40 × 1.5 = €60
Cost from price and markupprice ÷ (1 + markup)60 ÷ 1.5 = €40
Cost €40 × 1.5 = price €60: markup 20 / 40 = 50%

Do not confuse markup with margin: margin is counted on the selling price, so for the same item it is lower, here 20 ÷ 60 = 33.3%. If you want a 30% margin and set a 30% markup, you get 23%. The conversion chart is in the article gross margin vs markup. Which products carry a high margin and how to check it is real — see high margin products.

In Excel or Google Sheets, with the cost in B2 and the markup in percent in C2, the price is =B2*(1+C2/100), and the markup from a known price in D2 is =(D2-B2)/B2*100. For a single item, use the calculator above; below is which markup to enter into it.

How to calculate a selling price that covers all costs

Split costs into two groups: fixed per order (packing, ads, shipping you pay for) and percentage of the price (marketplace fee, payment fee, returns). Fixed costs are added to the cost of the item; percentage costs go into the denominator together with the margin you want.

Price = (cost + fixed costs per order) ÷ (1 − percentage costs − target margin)
Example: (42 + 3.50) ÷ (1 − 0.10 − 0.02 − 0.06 − 0.10) = 45.50 ÷ 0.72 ≈ €63.19 without VAT.

Illustrative example for the arithmetic: the 10% fee, 2% payment fee and 6% returns allowance are not the rates of any specific service. Purchase price €40 plus €2 inbound shipping: cost €42. Packing €1 and ads €2.50 per order.

The item sells on a marketplace with a 10% fee, card payment costs 2%. Online shoppers in the EU can cancel a purchase within 14 days without a reason, so 6% of the price is set aside for returns. The seller is VAT-registered in Germany, so all costs and the formula are net, and 19% VAT is added on top. The target margin after all costs is 10%.

Where a €75.90 price goes (illustrative numbers)
LineCalculationAmount, €
Price the shopper pays, after rounding75.90
VAT 19%75.90 − 75.90 ÷ 1.19−12.12
Net price75.90 ÷ 1.1963.78
Cost40 + 2−42
Marketplace and payment fees63.78 × 12%−7.65
Returns allowance63.78 × 6%−3.83
Packing and ads1 + 2.50−3.50
You keep6.80
Where a €63.78 net price goes: cost €42, fees €7.65, returns €3.83, packing and ads €3.50, you keep €6.80

You keep €6.80, 10.7% of the net price, as planned. The markup on cost is 63.78 ÷ 42 − 1 ≈ 52%. Now the "usual" 30%: 42 × 1.3 = €54.60 net. Fees take €6.55, the returns allowance €3.28, packing and ads €3.50, and you lose €0.73 on every sale.

A 30% markup gives €54.60 and a €0.73 loss; a 52% markup gives €63.78 and €6.80 per sale

So the markup percentage is the result of the calculation, not its input. On your own website, without a marketplace fee, the same formula gives (42 + 3.50) ÷ (1 − 0.02 − 0.06 − 0.10) = 45.50 ÷ 0.82 ≈ €55.49 net. In this example the fees are counted on the net price; if your marketplace takes its fee from the price including VAT, count it on that price.

How to round a price without losing margin

Round the price the shopper sees, and only up. The formula gave €63.19 net, which is €75.20 with 19% VAT. At €75.90, a 10.7% margin is left; at €74.90, only 9.7%, less than planned. On cheap items a few cents take an even larger share of the price.

€75.20 rounded up to €75.90 keeps a 10.7% margin, rounded down to €74.90 leaves only 9.7%

If you are VAT-registered, count the markup on prices without VAT and add VAT on top: price with VAT = net price × (1 + VAT rate). If your supplier's prices include VAT you can reclaim, take it out first: net = gross ÷ 1.19 at the German rate. Each EU country has its own standard rate; for the VAT step alone, use the VAT calculator.

Where markup calculations break

Almost always on something that changes after the price is set:

  • The fee is counted on the cost. The marketplace takes a percentage of the selling price, so in the denominator of the formula it weighs more than it seems.
  • VAT ends up inside the markup. The markup is put on a supplier price that includes VAT, or VAT is not added on top, and part of what you counted as yours goes to the tax office.
  • Exchange rate. The price list in USD or PLN was converted at yesterday's rate: the cost is already different, the price is not.
  • New price list. The supplier raised the price, yours stayed the same, and the item sells at a loss that shows up only in the monthly report.
  • One markup for everything. €3.50 of fixed costs per order is 7% of the price of a €50 item and 35% of a €10 item. Cheap items need a higher percentage or a fixed amount.
  • Returns. Return shipping you pay for, items resold at a discount and ads for orders that came back are costs too; keep them in the returns allowance.

How to calculate markup for thousands of products

By rules, not by hand: when a price list has thousands of items and the supplier changes prices every week, a spreadsheet formula cannot keep up, and the mistakes from the previous section appear on their own.

In Elbuz, the selling price is recalculated with every price list upload by pricing rules: a percentage or price tiers (a higher percentage for cheap items, a lower one for expensive items), the exchange rate, rounding and a floor of "not below cost plus N%". The fee of each sales channel can be built into its export template, so the website keeps the base price. A non-standard calculation is set as a formula for a price list field.

Who does not need it: if you have a few dozen products and supplier prices change once a month, an Excel formula is enough. How rule-based pricing works is described on the markup pricing page.

Sources

Checked on October 31, 2026. Fees, costs and prices in the examples are illustrative.

Frequently asked questions

How do you calculate markup?

Markup % = (selling price − cost) ÷ cost × 100. An item that costs €40 and sells for €60 has a markup of 20 ÷ 40 × 100 = 50%. To get a selling price from a markup, multiply the cost by (1 + markup ÷ 100).

Is 30% markup the same as 30% margin?

No. Markup is counted on the cost, margin on the selling price. A 30% markup on €100 gives a €130 price and a 23.08% margin. A 30% margin needs a €142.86 price, which is a 42.86% markup.

What is a 50% markup on $100?

A 50% markup on a $100 cost adds $50, so the selling price is $150. The margin on that sale is 50 ÷ 150 = 33.33%.

How do you do a 20% markup?

Multiply the cost by 1.2. A €25 item becomes €30. In Excel, with the cost in A1: =A1*1.2.

What is 20% margin on $100?

If $100 is your cost, a 20% margin needs a selling price of 100 ÷ (1 − 0.2) = $125, which is a 25% markup. If $100 is the selling price, a 20% margin is $20 of profit.

What is the difference between markup and margin?

Both use the same profit, divided by different numbers: markup by the cost, margin by the selling price. That is why the markup is always higher than the margin for the same item, and a margin can never reach 100%.

How do I set prices for the whole catalog, not one item at a time?

In Elbuz you set a markup rule once (percentage, fixed amount, price tiers, rounding), and selling prices are recalculated from every new supplier price list. See markup pricing.

Elbuz

Apply markup rules to your whole catalog in Elbuz

Set markup rules as a percentage or an amount and reprice thousands of products automatically. Free 14-day trial.

Try Elbuz free