Pricing Math Guide
Every price tag hides at least three percentage calculations: a margin the seller set, a discount subtracted for a sale, and a tax rate added at checkout. Most pricing mistakes come from applying the right formula to the wrong base value, not from bad arithmetic. This guide follows one product through all four calculators, Percentage, Discount, VAT and Margin, so you can see exactly how a $100 list price becomes a $75 sale price and a $90 checkout total, and which base changes at each step.
Why percentage math decides what you pay or earn
Nearly every price you see already has percentage math baked into it before you ever look at it. A pair of shoes that costs a retailer $70 to source might list for $100, which is a 30% margin for the seller. During a sale it gets marked down 25% to $75. At the register, 20% VAT is added, bringing the total to $90. Three separate percentage operations, one price tag, and each one uses a different base value.
Most pricing confusion does not come from bad math. It comes from applying the right formula to the wrong number. A 25% discount and a 30% margin cannot be compared directly because they are calculated from different bases, and adding 20% VAT to a net price is not the mirror image of removing 20% from a gross price. This guide separates the four calculators that model this: Percentage, Discount, VAT and Margin, and shows how they connect inside a single transaction.
By the end you will be able to trace a single number, like a $100 list price, through a 25% discount, a margin check and a 20% VAT addition, and know at each step which calculator to reach for and why the base value changes every time.
The three percentage operations behind every price
Three operations cover almost every percentage calculation you will ever need. Finding a percentage of a number: 15% of $200 is 0.15 x 200 = $30. Finding what percentage one number is of another: $30 out of $200 is 30 / 200 x 100 = 15%. Applying a percentage as an increase or decrease: adding 15% to $200 gives 200 x 1.15 = $230, and subtracting it gives 200 x 0.85 = $170.
The base value, the number the percentage is measured against, changes meaning in each calculator, and that is where most errors start. A margin calculation uses the selling price as its base, a markup calculation uses the cost, adding VAT uses the net price, and removing VAT uses the gross price. A common shortcut is to treat the tax inside a $90 gross price as 20% of 90 ($18), but dividing correctly by 1.20 shows the net is $75 and the real tax is only $15, three dollars less than the shortcut suggests.
Each of the four calculators in this guide is a specialized version of these three operations. Percentage runs all three directly. Discount and VAT apply the third operation, adding or removing a percentage, to a specific real-world direction. Margin runs the first two operations against two different bases at once: price for margin, cost for markup.
Percentage Calculator: five everyday percentage questions
The Percentage Calculator answers the five percentage questions that come up most often: what a percentage of a number equals, what percentage one value is of another, what number a value is a given percentage of, the percent change between two values, and how to add or subtract a percentage from a base amount.
Using its own default numbers as one connected example: 15% of $200 is $30 (mode one). $30 of $200 is 15% (mode two, the inverse). $30 is 15% of $200, so the whole recovers to $200 (mode three). A move from $100 to $150 is a +50% change (mode four). Adding 15% to $200 gives $230, subtracting gives $170 (mode five). The same 15% produces a different absolute amount in each mode because each formula measures against a different base.
Mode five, adding or subtracting a percentage, is the one that connects directly to the other three calculators in this guide: it is the same arithmetic used for a discount, a markup or a tax addition, just applied to a specific real-world label.
Discount Calculator: percent off, fixed off, buy X get Y free
The Discount Calculator turns any deal into an effective discount percentage so different offer structures become comparable. A percent discount reduces the price by a share of the original: 25% off an $80 item saves $20, for a final price of $60, and the effective discount stays 25% no matter the quantity.
A fixed discount subtracts the same value from every unit regardless of price, so its effective rate depends entirely on what the item costs. A $5 discount on a $30 item is 16.7% off, but the same $5 discount on a $100 item is only 5% off. Buy X get Y free deals reduce the number of paid units instead: buy 2 get 1 free on a $30 item with 6 units bought forms two complete groups, so 4 units are paid and 2 are free, for a total of $120 out of an original $180, an effective discount of 33.3%.
Converting every deal type to one effective percentage is what makes them comparable: on that same $30 item, 20% off costs $144 for 6 units, while buy 2 get 1 free costs $120, a $24 difference that is invisible until both are expressed the same way.
VAT Calculator: net, tax and gross in one formula
The VAT Calculator adds or removes a tax rate from a price and shows the net, tax and gross breakdown per unit and in total. Adding VAT: gross = net x (1 + rate/100), so a $100 net price at 20% VAT becomes a $120 gross price with a $20 tax amount. Removing VAT: net = gross / (1 + rate/100), so a $120 gross price at 20% VAT has a $100 net price and the same $20 tax.
VAT and equivalent consumption taxes exist in more than 160 countries under different names: TVA in France, Mehrwertsteuer in Germany, BTW in the Netherlands and Belgium, GST in Australia and Canada, and sales tax in parts of the United States. Standard rates typically range from 5% to 27% depending on the country, with reduced rates often applied to food, medicine and books.
The most common error is calculating VAT as a straight percentage of the gross price instead of dividing by the rate factor. Treating a $120 gross price at 20% as containing 0.20 x 120 = $24 of tax overstates the real tax by $4, because the correct net is $100 and the correct tax is $20, not $24.
Margin Calculator: margin, markup and trading leverage
The Margin Calculator covers two situations that share the word margin. In profit-margin mode, a $70 cost and a $100 selling price give a $30 profit per unit, which is a 30% margin (30 / 100) and a 42.86% markup (30 / 70). Margin and markup are always different numbers for a profitable item because they divide the same profit by two different bases.
In trading-margin mode the calculator turns an entry price, a number of units and a leverage ratio into a position value and the cash margin required to open it. A 200-unit position at an entry price of $50 is worth $10,000. At 10:1 leverage the required margin is $1,000, which is a 10% margin requirement: the margin requirement and the leverage ratio are always inverses of each other.
Margin-requirement mode runs the trading sum in reverse for brokers that quote a requirement percentage instead of a ratio: a 30% requirement on a $1,000 position returns $300 of margin, equivalent to 3.33:1 leverage. In every mode the calculator reports negative results plainly rather than hiding them, so a $120 cost sold at $100 shows a -$20 profit and a -20% margin.
Worked example: one product through discount, margin and VAT
Setting the shelf price and margin
A retailer buys a product for $70 per unit and lists it at $100. Profit per unit is $30, which is a 30% margin (30 / 100) and a 42.86% markup (30 / 70). This is the baseline the rest of the example builds on.
Running a 25% discount
During a sale the retailer takes 25% off the $100 list price: 100 x (1 - 0.25) = $75. The discount amount is $25, and the effective discount rate is exactly 25% since this is a straight percent-off deal, not a fixed amount or a buy X get Y structure.
What the discount does to margin
At the discounted $75 price, profit per unit is now 75 - 70 = $5. Margin is 5 / 75 = 6.67%, and markup is 5 / 70 = 7.14%. A 25% headline discount cut the margin from 30% to 6.67%, a drop of more than three quarters, not one quarter. This is why margin must be rechecked after every discount rather than assumed to shrink by the same percentage as the price.
Adding VAT at checkout
The register adds 20% VAT to the discounted $75 net price: gross = 75 x 1.20 = $90, tax = $15. The customer pays $90 total. For 50 units sold at this discounted, taxed price, the store collects $4,500 gross, remits $750 in VAT, keeps $3,750 net, of which $3,500 is cost and $250 is profit (5 x 50 units).
Six pricing math mistakes that cost real money
Treating markup and margin as the same number. A 42.86% markup on the $70/$100 example is only a 30% margin. Quoting one when you mean the other overstates the profit actually kept by nearly 13 percentage points.
Assuming a discount shrinks margin by the same percentage as the price. A 25% price discount on the $70/$100 example crushed margin from 30% to 6.67%, a collapse of more than three quarters, not one quarter.
Calculating VAT as a straight percentage of the gross price. Treating a $90 gross price at 20% VAT as containing 0.20 x 90 = $18 of tax overstates the real tax ($15) by $3, a 20% error on the tax line itself.
Assuming stacked discounts add up. Two successive 10% discounts on $100 do not equal a 20% discount. They compound to 100 x 0.9 x 0.9 = $81, an effective 19% discount, and the gap widens at higher rates: two 25% discounts leave 100 x 0.75 x 0.75 = 56.25% of the price remaining, a combined discount of 43.75%, not 50%.
Reading a leveraged margin requirement as the maximum possible loss. A $1,000 margin at 10:1 leverage controls a $10,000 position. A 10% adverse move loses the entire $1,000 margin, and losses can continue beyond that if the position is not closed.
Ignoring that a fixed discount depends on price. A flat $5 discount is 16.7% off a $30 item but only 5% off a $100 item, so comparing flat-amount coupons across different products without converting to a percentage misjudges which deal is actually better.
What actually drives the number you see
The base value changes at every step, and this is the single biggest driver of confusion. Margin uses selling price as its base, markup uses cost, adding VAT uses the net price, removing VAT uses the gross price, and percent change uses the absolute value of the original number. Identify which role a number plays, cost, price, original or new, before applying any percentage to it.
Quantity scales totals but never the rate itself. Discount, margin and VAT percentages stay identical whether you buy 1 unit or 500; only the absolute totals scale. Check the per-unit rate first, then multiply by quantity last, so an error does not compound silently across a bulk order.
Leverage inverts what margin usually means. Outside trading, a higher margin percentage is better for the seller because more profit is kept. In trading-margin mode a higher leverage ratio means a lower margin requirement, less cash posted, while the risk on the full position size stays the same.
Rounding conventions matter most for tax reporting. Many jurisdictions round VAT at the line-item level rather than on the invoice total, so summing individually rounded lines can differ from rounding one combined total by a cent or more. A small mismatch on an invoice usually reflects this, not an error.