Skip to content
EveryFix

How to calculate sales tax and discounts together

Guide⏱ 8 min readUpdated 2026-10-28

Short answer

To add sales tax, multiply the price by the rate and add the result: $84.99 at 7.25% is $6.16 of tax for a $91.15 total. To back tax out of a total, divide by 1 plus the rate: $53.46 at 8.25% was $49.39 before tax. Stacked discounts multiply instead of adding, so 25% off followed by 10% off is 32.5% off, not 35%. When a discount lowers the sale price, calculate it first and tax the reduced price: a $200 item at 25% then 10% off with 8% tax comes to $145.80.

Open the free Sales Tax Calculator

Sales tax and discount formulas

Tax = price x (rate / 100). Total = price + tax = price x (1 + rate / 100). Pre-tax price from a total = total / (1 + rate / 100). Price after discounts = price x (1 - d1 / 100) x (1 - d2 / 100). Combined discount % = (1 - (1 - d1 / 100) x (1 - d2 / 100)) x 100.

  • •price is the amount before tax and before any discount unless stated otherwise
  • •rate is the combined sales tax rate for the place where the sale is sourced, as a percent
  • •d1 and d2 are the first and second discount percentages, applied in sequence to the running price
  • •total is the amount actually charged, including tax

Adding sales tax to a price

Sales tax is a percentage of the taxable price, added at checkout. Convert the rate to a decimal by dividing by 100, multiply it by the price to get the tax, then add the tax to the price. A shortcut: multiply the price by 1 plus the decimal rate to go straight to the total.

Example: an item priced at $84.99 in a place with a 7.25% rate. Tax = 84.99 x 0.0725 = $6.161775, which rounds to $6.16. Total = 84.99 + 6.16 = $91.15.

The Sales Tax Calculator works the same way: enter the pre-tax price and the rate and it returns the tax and the total. Its own walkthrough shows $120 at 8.25% producing $9.90 of tax and a $129.90 total.

Use the combined rate for where the sale is sourced. Many places charge a state rate plus county or city rates, and the rates for the buyer's address can differ from the seller's location. The Streamlined Sales Tax Governing Board publishes rate and boundary files that link addresses to the rates for member states, and sellers use them in their tax software. For a one-off purchase, a recent receipt from a nearby store or your state revenue department's website will give you the combined rate.

Working backward: finding the price before tax

Receipts often show only the total. To recover the pre-tax price, divide the total by 1 plus the rate. Do not subtract the tax percentage from the total, because the rate applies to the smaller pre-tax number, not to the total.

Example: you paid $53.46 in a place with 8.25% tax. Pre-tax price = 53.46 / 1.0825 = $49.39. Tax = 53.46 - 49.39 = $4.07. Check it forward: 49.39 x 1.0825 = $53.46.

Now see what the wrong method does. Taking 8.25% off the total gives 53.46 x 0.9175 = $49.05, which is 34 cents too low, and it implies $4.41 of tax when the real figure was $4.07. The error grows with the size of the bill and the rate. On a $107.50 total at 7.5%, the correct pre-tax price is $100.00, while the subtract-the-rate method says $99.44 and overstates the tax at $8.06 instead of $7.50.

The Sales Tax Calculator only works forward from price to total, so use the divide-by-(1 + rate) step yourself when starting from a total.

Stacked discounts do not add up

When a sale price gets a second discount on top, such as a storewide markdown and then a coupon, the second percentage applies to the already-reduced price. That means the percentages multiply, they do not add.

Take 25% off followed by 10% off. The first discount leaves 75% of the price, and the second leaves 90% of that: 0.75 x 0.90 = 0.675. You pay 67.5% of the original, so the combined discount is 32.5%, not 35%. On a $400 item, that is $270 rather than the $260 you would get by wrongly adding the percentages.

The order of percentage discounts does not change the result, since multiplication is commutative. 25% then 10% and 10% then 25% both land on 67.5%. Three discounts work the same way: 20%, 10%, and 5% leave 0.80 x 0.90 x 0.95 = 0.684, a combined discount of 31.6%.

Dollar-amount coupons are different, and the order matters. On a $120 item with 20% off and a $10 coupon, taking the percentage first gives 96 - 10 = $86, while taking the coupon first gives (120 - 10) x 0.80 = $88. The percentage-first order is better for you here because the coupon comes off a smaller number. The Discount Calculator handles percentage discounts only, with one optional second discount; convert a flat coupon to a percentage first (a $15 coupon on an $80 item is 15 / 80 = 18.75%) or subtract it yourself.

Discount first, then tax: a full example

When a store discount lowers the selling price, sales tax is normally figured on the lower price. So the order of operations is: apply the discounts, then add tax to what is left.

Example: a $200 item with 25% off, a further 10% off at checkout, and an 8% sales tax rate. After 25%: 200 x 0.75 = $150. After the extra 10%: 150 x 0.90 = $135. Savings are $65, or 32.5% of $200. Tax = 135 x 0.08 = $10.80. Total = $145.80.

If tax were wrongly figured on the original price, it would be 200 x 0.08 = $16.00 and the total would be $151.00, which is $5.20 too high. The Invoice Total Calculator follows the discount-then-tax order and adds shipping afterward without taxing it. It is a good fit for quotes and invoices where you already have a subtotal.

Be aware of one wrinkle. Some places treat discounts differently depending on who pays for them. A discount the store gives you generally reduces the taxable price, but a coupon that a manufacturer reimburses to the retailer may leave the tax calculated on the pre-coupon amount. Rules differ by state, so check your state revenue department if the exact tax matters. The same goes for shipping, which is taxable in some places and not in others.

Comparing two offers properly

A bigger advertised percentage does not always mean a lower price. Always compare the final price after discounts and tax, not the discount headline.

Example: Store A lists a jacket at $120 with 30% off, which is $84.00. Store B lists a similar jacket at $95 with 10% off, which is $85.50. Store A has the bigger discount and the lower price, but only by $1.50. With 8% tax in both cases, Store A totals $90.72 and Store B totals $92.34.

Stacking helps the same way. The Discount Calculator's own walkthrough takes a $150 jacket at 30% off to $105, then an extra 15% to $89.25. That saves $60.75, or 40.5% of the original price, which is less than the 45% you would get by adding 30 and 15.

Undoing a discount, rounding, and other edge cases

To find the original price from a sale price, divide by the share you paid. If a jacket costs $71.50 after 35% off, the original price was 71.50 / 0.65 = $110.00. This is the reverse of the stacked-discount multiplication: for two discounts, divide by both factors.

Rounding can shift a bill by a cent or two. Say you buy three items at $4.99 each with 6.5% tax. If the register taxes each line, each is 4.99 x 0.065 = $0.32435, which rounds to $0.32, for $0.96 total tax. If it taxes the $14.97 subtotal, tax is $0.97305, which rounds to $0.97. Neither is wrong; stores follow the rounding method their system uses. The EveryFix tools calculate on the whole amount and round the displayed result, so a receipt may differ from them by a cent.

Rate limits in the tools: the Sales Tax Calculator accepts rates from 0% to 25%, the Invoice Total Calculator allows tax up to 30%, and the Discount Calculator accepts discounts up to 100%. Enter 0% for tax-exempt items.

Common mistakes

A few errors cause most of the wrong answers.

  • Adding stacked discounts. 25% plus 10% is 32.5% off, not 35%.
  • Subtracting the tax rate from a total instead of dividing by 1 plus the rate.
  • Taxing the original price when a store discount has already reduced the selling price.
  • Using the wrong rate: a state rate alone, or the seller's rate when the buyer's address sets the rate.
  • Comparing two sales by the advertised percentage instead of the final price after tax.
  • Assuming every item is taxable. Many places exempt some categories, and rules vary by location.

A note on accuracy

These calculations show how the arithmetic works. They are not tax advice. What is taxable, which rate applies, and how discounts, coupons, and shipping are treated vary by state and local jurisdiction. If you collect and remit sales tax for a business, rely on your state revenue department or a qualified accountant for the rules that apply to you.

Where a combined rate comes from

The rate on your receipt is rarely one number set by one government. In most places it is a stack: a state portion, a county portion, a city portion, and sometimes a small special-district add-on for transit or a stadium. The combined rate is normally the sum of the layers. A state rate of 5.5%, a county rate of 1.25%, and a city rate of 1.5% total 8.25%. On a $240 purchase that is $19.80 of tax and a $259.80 total, which is what the Sales Tax Calculator returns when you enter 240 and 8.25.

If you do not know your combined rate, you can recover it from any recent receipt. Divide the tax line by the pre-tax subtotal. A subtotal of $48.20 with $3.98 of tax gives 3.98 / 48.20 = 0.0826, so the rate is about 8.25%. Small purchases make this imprecise, because the tax is rounded to the cent. A $48.20 subtotal at exactly 8.25% is $3.9765, which prints as $3.98, and that rounding alone nudges the implied rate. A larger receipt narrows the guess.

Rates also change. A county can raise its portion, and a new district can be added, so a rate you memorized two years ago may be out of date. When the amount matters, such as a vehicle or an appliance, check the current figure for the exact address with your state revenue department.

Shipping, fees, and tips

Whether delivery charges are taxed depends on where you live and on how the charge is presented. In some places shipping is taxable along with the goods, and in others it is exempt when it is listed separately from the item price. Take a $60 item with $8 shipping at a 7% rate. If shipping is taxable, the tax is 68 x 0.07 = $4.76 and the total is $72.76. If it is not, the tax is 60 x 0.07 = $4.20 and the total is $72.20. The gap is 56 cents, small here but proportionally larger on a heavy freight bill.

The Invoice Total Calculator adds shipping after tax, which matches the non-taxable case. If your jurisdiction taxes delivery, fold the shipping into the taxable subtotal before you enter it. The same caution applies to service fees, handling fees, and installation, all of which are treated differently from place to place.

Tips are a separate question: gratuities are not part of the sales tax calculation at all. On a $50 meal at 8% tax, the tax is $4.00 and the check is $54.00. A 20% tip on the pre-tax amount is $10.00, while a 20% tip on the total is $10.80. Neither is wrong; it is a matter of custom and preference, but the check will not tell you which one you chose.

Mixed baskets with taxable and exempt items

Many jurisdictions tax some goods and not others. Groceries, prescription medicine, and some clothing are the most common exemptions, though what counts varies and some places tax prepared food while exempting ingredients. When a basket mixes both kinds of items, run the calculation only on the taxable lines.

Imagine $85 of exempt groceries plus $40 of taxable household items at an 8.5% rate. The tax is 40 x 0.085 = $3.40, so the subtotal of $125 becomes $128.40. Entering the whole $125 would have produced $10.63 of tax, more than three times too much. The blended rate on this basket is 3.40 / 125, or 2.72%, which is a useful number to know if you budget for a regular shopping mix.

Some places also run sales-tax holidays, short periods in which specified goods up to a per-item price cap are not taxed. The goods, the caps, and the dates all differ, so check the revenue department's notice before you plan a purchase around one. The cap usually applies to each item, not the receipt, so a $90 shirt and a $110 jacket can be treated differently under the same $100 limit.

Turning a promotion into one percentage

Store promotions come in odd shapes, and converting each to a single percent-off figure lets you compare them honestly. Buy one, get one at half price: with two items at $40, you pay 40 + 20 = $60 for $80 of goods, which is 25% off the pair. Buy two, get one free: you pay for two items out of three, a saving of 1/3, or 33.3%. A spend-$100-get-$20-off coupon is 20% at exactly $100 and less beyond that, because the $20 stays fixed while the bill grows.

A flat coupon also depends on the price it lands on. $10 off $50 is 20%, but $10 off $80 is only 12.5%. If the two items in a half-off offer have different prices, stores usually apply the discount to the cheaper one, though terms differ. A $40 shirt paired with a $30 shirt saves $15 on $70, which is 21.4% off the pair.

Phrases like "up to 50% off" only promise the ceiling for some items. Check the price of the specific thing you want, then run it through the Discount Calculator or compute the percent yourself: savings divided by the original price. Then add tax to the discounted figure, not the original, as described earlier in this guide.

Why a percentage cut cannot be undone by the same percentage

A related trap catches shoppers and sellers alike. If a price falls by 30% and later rises by 30%, it does not return to the starting point. The first step leaves 70% of the original, and 70% increased by 30% is 0.70 x 1.30 = 0.91. The item is still 9% below where it began. The increase applies to a smaller base.

To reverse a discount of d percent, the required increase is d / (100 - d). A 20% cut needs a 25% rise to recover. A 25% cut needs 33.3%. A 30% cut needs 42.9%, and a 50% cut needs a full 100%. The same asymmetry works in the other direction: raise a price by 10% and cut it by 10% and you land at 0.99, or 1% below the start.

Sellers meet a cousin of this when moving between markup and margin. A product that costs $60 and sells for $80 carries a 33.3% markup on cost, since $20 is a third of $60. Its margin on the selling price is only 25%, since $20 is a quarter of $80. Both are correct, but they answer different questions, and mixing them up leads to prices that earn less than planned.

Tax-inclusive prices and reading a day's receipts

In the United States, price tags usually exclude sales tax. Elsewhere, including most countries that use a value-added tax, the posted price already includes it. Backing the tax out is the same divide-by-(1 + rate) step as before. A $120 tag with 20% tax included has a pre-tax price of 120 / 1.20 = $100.00 and $20.00 of tax. Notice that the tax is one sixth of the tag, not 20% of it.

Small businesses face the same reverse problem every evening. A till total includes the tax collected on the day's sales, but that tax belongs to the government and is not revenue. Suppose the register shows $4,321.50 of receipts and the combined rate is 8.25%. Net sales are 4,321.50 / 1.0825 = $3,992.15, and the tax collected is $329.35. Together they return $4,321.50.

If different goods carry different rates, split the day's sales by rate first, then back out each group separately. Using a single average rate for a mixed day will drift from what your records and your tax return need. Your accountant or state revenue department can tell you the filing rules for your location.

Please note: This calculator provides general estimates only and is not tax advice. Tax rules vary by location and change over time — consult a qualified tax professional for guidance specific to your situation.

Frequently Asked Questions

How do I calculate sales tax on a purchase?+

Multiply the pre-tax price by the tax rate as a decimal, then add the result to the price. At 7.25%, an $84.99 item has 84.99 x 0.0725 = $6.16 of tax, so the total is $91.15. Equivalently, multiply the price by 1.0725 to get the total in one step.

How do I find the price before tax if I only know the total?+

Divide the total by 1 plus the tax rate as a decimal. A $53.46 total at 8.25% gives 53.46 / 1.0825 = $49.39 before tax, with $4.07 of that total being tax. Do not subtract the tax percentage from the total, because that gives an answer that is too low.

Why is 25% off plus an extra 10% off not 35% off?+

The second discount applies to the already-reduced price. The first leaves you paying 75% of the price, and the second takes 10% off that, leaving 0.75 x 0.90 = 67.5%. The combined discount is therefore 32.5%. The two percentages only add up when they apply to the same base amount.

Is sales tax calculated before or after a discount?+

Normally after. When a store discount lowers the price, tax is figured on the reduced amount. A $135 discounted price at 8% tax is $10.80 of tax, not the $16.00 you would get on the original $200. Rules can differ for manufacturer coupons, so check your state if it matters.

Does the order of two percentage discounts change the final price?+

No. Because each discount multiplies the running price, 25% then 10% gives the same result as 10% then 25%. On a $200 item both routes end at $135. Order does matter for flat dollar coupons mixed with percentage discounts, since the dollar amount comes off a different base.

Why does my receipt differ from the calculator by a cent?+

Because of rounding. Some registers round the tax on each line item, while others tax the subtotal and round once. Three items at $4.99 with 6.5% tax come to $0.96 of tax when rounded per line and $0.97 when rounded on the subtotal. Both are valid, so a one-cent gap does not mean a mistake.

How can I find my sales tax rate from a receipt?+

Divide the tax line by the pre-tax subtotal. A $3.98 tax charge on a $48.20 subtotal gives 3.98 / 48.20 = 8.26%, which points to an actual rate of 8.25% once rounding is accounted for. Use a larger purchase for a sharper estimate, since rounding to the cent distorts small receipts.

What is use tax, and when might I owe it?+

Use tax is the counterpart of sales tax for purchases where no sales tax was collected, such as some out-of-state or online orders. Many states expect residents to report it at the same rate they would have paid at a local store. Whether and how you report it depends on your state, so check with your state revenue department or a tax professional.

Is buy one, get one half off the same as 25% off?+

Yes, when the two items cost the same. Two $40 items cost $60 together instead of $80, a saving of $20, or 25% of the total. If the prices differ and the discount applies to the cheaper item, the percentage changes: a $40 and a $30 item save $15 on $70, which is 21.4%. Always read the promotion terms.

Why does a 25% increase not cancel a 25% discount?+

The increase applies to the smaller, discounted price. A $100 item at 25% off costs $75, and raising $75 by 25% gives $93.75, not $100. To get back to $100 you need an increase of 25 / 75, which is 33.3%. In general, undoing a d percent cut takes a rise of d divided by (100 minus d).

Skip the math

Enter your numbers and the Sales Tax Calculator does the work for you — free, and it runs entirely in your browser.

Open the free Sales Tax Calculator