Example 1
150 and 90 -> 40.0% margin.
Type selling price and cost. The result is what slice of the price is left after cost. At 100 and 70 that is 30% margin. That is not markup: a 25% markup on 80 makes a 100 price, and then margin is only 20%.
Markup on the same cost: markup percent. Price for a target margin: price from margin. Cash per unit: gross profit.
Enter a value. The result shows up here.
Margin says how much of the price is left after cost. You subtract cost from price, divide by price, and multiply by one hundred. At 100 and 70 you keep 30 from every 100, so 30%. At 150 and 90 you keep 60 of 150, so 40%. When price equals cost, margin is zero: you sell at cost. When cost is higher, margin goes negative and you see a loss per unit, not a form error.
People mix this up with markup, because both look like “a profit percent.” Markup divides the same gap by cost, not by price. A 25% markup on 80 lifts the price to 100. On that 100 you keep 20, so margin is 20%, not 25%. To hold a 25% margin at a cost of 80, the price has to be about 106.67. That is already a 33% markup. Another pair: 100 and 70 is 30% margin, but about 43% markup.
Price must be greater than zero, because you divide by it. Cost zero at a positive price is 100% margin: the whole price is profit. Negative amounts will not run. Quantity does not change the percent on one unit. If you type 10 at 100 and 70, you see 1000 revenue, 700 cost, and 300 profit, and margin stays 30%.
Optional VAT treats the typed price as gross. Net is price divided by (1 plus VAT/100). The calculator then also reports margin on that net against cost, which we take as net. 123 at 23% VAT is 100 net. If cost is 70, margin on gross and margin on net are two different percents, both on the page.
The percent is a ratio. Optional money rows use the same currency you typed for price and cost. 100 and 70 stay 100 and 70 whether you label them dollars, euros, or zloty. A comma and a period in 99.90 mean the same amount. Skip thousand spaces.
The markup page next door computes the other fraction from the same pair. Price from margin goes the other way: you know cost and want 30% of the future price, not a percent from two ready amounts. Gross profit leaves the cash gap and does not divide.
margin % = (price − cost) / price × 100
Price > 0. Cost ≥ 0. Negative margin means selling below cost. Mark-up divides by cost, not by price.
The calculator divides profit by price. 100 and 70 give 30% margin. 123 at 23% VAT is 100 net, and net margin is then a second percent.
150 and 90 -> 40.0% margin.
100 and 70 -> 30.0% of price.
200 and 100 -> 50.0% margin.
80 and 80 -> 0.0%, price = cost.
120 and 90 -> 25.0% margin.
50 and 40 -> 20.0% of price.
250 and 200 -> 20.0% margin.
30%. You keep 30 from every 100. At 150 and 90 it is 40%. At 80 and 80 it is 0%.
A 25% markup on 80 makes a 100 price and only 20% margin. A 25% margin at the same 80 needs a price of about 106.67. That is already a 33% markup.
Yes. Cost 0 at price 100 is 100% margin. Price 0 will not run, because we do not divide by zero.
Margin comes out negative, here −12.5%. That is a loss per unit. You still cannot type negative amounts in the fields.
The percent on one unit does not change. Quantity scales revenue, cost, and profit so you see the batch. 10 times 100 and 70 is 300 profit and still 30%.
123 is gross. Net is 123 / 1.23 = 100. Margin on net compares that 100 with cost, which we take as net.
No. Margin is a ratio of two amounts. 100 and 70 is 30% in whatever currency you typed.
Yes. 99.90 and 99,90 are the same price. Skip thousand spaces.
On price from margin. There 70 and 30% give 100. Here you already need both amounts.
Price lists usually say 33.3%, not 33.333%. A tenth of a percent is enough at the label.
Margin is (price − cost) over price. This is arithmetic, not a valuation.
Page updated in 2026.