Discount, Sales Tax & Margin Calculator

Find the final price after a discount, add or remove sales tax, and check whether a selling price leaves a healthy margin.

Discount, tax and margin tools

Three related calculators in one place. Switch tabs — every panel updates live.

Sale price
—
What you pay after the discount
You save
—
Compared with the original price
Actual discount
—
Useful when a price is already marked down
Amount off
—
Original price minus what you paid
Advertisement

Three everyday pricing calculations

Discounts, sales tax and profit margin all involve percentages, but they answer different questions. A shopper wants to know the final price after a markdown and the tax added at checkout. A seller wants to know whether a price leaves enough margin after costs. This page puts all three calculations together so you do not have to translate between them.

The discount tab converts an original price and a percentage into a sale price and the amount saved. The sales tax tab adds tax to a net price or strips tax out of a tax-included total. The margin tab turns a cost and a selling price into profit, margin percentage and markup percentage.

How to use each tab

  1. Discount: enter the original price and the discount percentage. The sale price and savings appear immediately. The reverse check below lets you enter an original price and the price you paid to discover the actual discount — handy when a retailer advertises “up to” a percentage.
  2. Sales tax / VAT: enter the price and the tax rate. Choose whether the price is before tax or already includes tax. The calculator returns the net price, the tax amount and the total.
  3. Profit margin: enter your landed cost and your selling price. The result shows absolute profit, margin as a percentage of the selling price, and markup as a percentage of cost.

The formulas

Sale price = original price × (1 − discount ÷ 100)
Savings = original price × discount ÷ 100

Tax = net price × tax rate ÷ 100
Net price (from a tax-included total) = total ÷ (1 + tax rate ÷ 100)

Profit = selling price − cost
Margin % = profit ÷ selling price × 100
Markup % = profit ÷ cost × 100

All three are simple, but the margin formula is the one most often confused. Margin is measured against the selling price; markup is measured against cost. The same profit can look like a 47% margin or a 90% markup depending on which base you use.

Worked examples

A jacket priced at $129.99 with 25% off costs $97.49, a saving of $32.50. If a store advertises a $129.99 item for $97.49 without stating the percentage, the reverse check shows the real discount is about 25%.

A taxable item priced at $89.99 with 8.25% sales tax adds $7.42, for a total of $97.41. If you only know that you paid $108.25 including 8.25% tax, the net price was $100.00 and the tax was $8.25.

A product that costs $42.00 and sells for $79.99 produces $37.99 of profit. That is a 47.5% margin on the selling price and a 90.5% markup on cost.

Margin versus markup — why it matters

If you set prices by adding a standard markup to cost, your margins will look smaller than the markup number suggests. A 100% markup means the selling price is double the cost, which is only a 50% margin. Retailers usually plan in margin because rent, salaries and advertising are paid from the selling price, not from cost.

A useful rule: to achieve a target margin, divide cost by (1 − target margin). For a 40% margin on a $42 item, the price must be $42 ÷ 0.60 = $70.00. Pricing by markup would put it at $58.80 and leave only a 28.6% margin.

Tax-included pricing

In many countries, listed prices already include VAT or goods and services tax. To find the tax inside a total, divide the total by 1 plus the tax rate rather than subtracting the rate from the total. Subtracting 20% from a VAT-inclusive price overstates the tax: on a £120 total with 20% VAT, the tax is £20, not £24, and the net price is £100.

Discounts are normally applied before tax. If a discount and tax both apply, calculate the discounted price first, then add tax to that amount.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit divided by the selling price. Markup is profit divided by cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.7% markup. Margin is the better measure for planning because it relates profit to revenue.

How do I remove sales tax from a total?

Divide the total by 1 plus the tax rate. For an 8.25% tax, divide by 1.0825. On a $108.25 total that gives a net price of $100.00 and tax of $8.25. Do not simply subtract 8.25% from the total, which gives the wrong answer.

Does the discount apply before or after tax?

In most places the discount is applied to the pre-tax price, and tax is charged on the discounted amount. Check local rules for specific promotions, but the calculator follows the common order: discount first, then tax.

What counts as cost when calculating margin?

Use the full landed cost: the product cost plus inbound shipping, duties, payment processing fees and any marketplace commission. If you leave those out, the margin you calculate will be higher than the margin you actually keep.

Advertisement

More free tools that answer questions like this one.