How to Calculate Sales Tax: Formula, Rates, and Examples
To calculate sales tax, multiply the taxable price by the combined rate for the transaction, then add the tax to the price. The tricky part is choosing the right taxable amount and location-based rate. This guide walks through both, using a backpack example and simple checks you can repeat on any receipt.

Try our free Sales Tax Calculator to calculate your the tax and final purchase price from your taxable amount and local rate.
1. Start with the sales tax formula
The basic calculation has two parts: find the tax on the taxable price, then add it to that price. Write the rate as a decimal before multiplying. A rate of 7.5% becomes 0.075, and a rate of 8% becomes 0.08.
For example, if a purchase has a $80 taxable price and the applicable combined rate is 7.5%, the tax is $80 × 0.075, or $6. Add $6 to $80 to get an $86 total. This simple version assumes the entire $80 is taxable, the rate applies to the transaction, and there are no other taxable fees or adjustments.
If you already know the receipt’s tax amount and want to discover the rate instead, divide tax by the taxable pre-tax subtotal and multiply by 100. That is a different question from calculating the tax forward. Keeping the two directions separate prevents using the final price as the wrong starting amount.
Sales tax = taxable price × (sales tax rate ÷ 100)
Total price = taxable price + sales tax
Example: $80 × 0.075 = $6 tax; $80 + $6 = $86 total
2. Calculate tax on a backpack step by step
Suppose you are buying a backpack priced at $80 before tax. For this illustration only, assume the combined local rate is 7.5% and the entire item is taxable. The shelf price is not yet the amount you will pay, because tax is added at checkout.
First, convert 7.5% to a decimal by dividing by 100: 7.5 ÷ 100 = 0.075. Next, multiply the taxable price by that decimal: $80 × 0.075 = $6.00. The $6 is the tax, not the new item price. Add it to the $80 price to get $86.00 before any delivery charge or other fees.
You can check the math in reverse. Divide the $6 tax by the $80 pre-tax price: $6 ÷ $80 = 0.075. Multiply by 100 and you return to 7.5%. Or, multiply $80 by 1.075 to get the same tax-included total of $86. A second method is useful when a receipt or checkout screen looks unexpected.
A calculator is helpful when the price has cents or the rate has several decimal places. Keep the unrounded result until the end, then round the tax to the nearest cent according to the applicable checkout or jurisdiction rules. Rounding each intermediate step can produce a one-cent difference on some totals.
| Calculation step | Math | Result |
|---|---|---|
| Convert rate to decimal | 7.5 ÷ 100 | 0.075 |
| Find sales tax | $80 × 0.075 | $6.00 |
| Add tax to item price | $80 + $6.00 | $86.00 |
3. Find the correct rate for the transaction
A correct formula still gives the wrong bill if you enter the wrong rate. In the United States, sales tax can include state, county, city, and special district taxes. The combined rate depends on the rules for the place of sale or delivery, so a statewide figure may not be enough. California’s tax authority, for example, provides an address lookup because local district rates can differ. California sales and use tax rate lookup · California guidance on local rates
For an in-person purchase, check the rate the retailer uses at that location and the date of sale. For an order delivered to you, the delivery address can affect the applicable rate under the state’s rules. Some states use destination sourcing for many remote sales, while rules and exceptions differ. Look up the location using an official state revenue department tool rather than assuming the nearest city’s rate applies.
Rates can change when a local tax starts, expires, or changes. If you are checking an old receipt, use the rate that applied on the transaction date, not necessarily the current rate shown by a lookup tool. A current calculator may calculate today’s tax correctly but cannot validate a historic transaction unless it supports the older rate and date.
If you are a customer, compare the receipt’s taxable subtotal and stated tax rate with an official rate source. If you are a seller, follow the tax authority’s sourcing and collection rules for your business and each transaction type. Do not collect a rate merely because a customer requests it; use the rules that apply to the sale.
- Identify where the sale is sourced under the applicable rules.
- Use the combined rate, including local or district taxes where applicable.
- Match the rate to the sale date if reviewing a past transaction.
- Confirm the rate with the relevant state or local tax authority.
4. Identify the amount that is actually taxable
The tax base is the price subject to tax, which may be less than the full amount on a receipt. Some products or services may be exempt, taxed at a different rate, or subject to special rules. A receipt can also include shipping, installation, service, or other charges that are treated differently depending on the jurisdiction and transaction.
Start with the itemized receipt. Add the prices for items that share the same tax treatment, then apply the rate to that taxable subtotal. Keep exempt items separate. If the receipt lists a taxable subtotal and tax amount, those figures are often the clearest starting point for checking the arithmetic. If they are missing, look up how the state treats the product and charges involved.
Do not infer that an item is exempt just because it is food, clothing, medicine, or a digital product. The rule can depend on the state, the type of item, how it is sold, or the buyer’s circumstances. An item can be taxable in one jurisdiction and exempt in another. Retailer tax settings are not a substitute for official guidance when you need a reliable answer.
For sellers, classify products and services in the tax system carefully, and review the taxable status for every state where you have collection obligations. For shoppers, use the receipt breakdown and the official state resource if the tax seems inconsistent. The calculation formula is only as good as the taxable amount entered.
5. Account for coupons, discounts, and bundled items
A store discount often reduces the selling price before sales tax is calculated, but the exact result depends on the discount and local rules. A retailer-funded markdown and a manufacturer coupon may not receive identical treatment. Check whether the receipt shows the discount before the taxable subtotal and whether it identifies the reduced amount as taxable.
For example, if a backpack’s $80 shelf price is reduced by a $10 store markdown, the taxable price might be $70 where that markdown reduces the selling price. At an illustrative 7.5% rate, tax on $70 is $5.25 and the total is $75.25. Do not apply this example automatically to a manufacturer coupon, rebate, trade-in, or another arrangement without checking the local rule.
A package that combines several items can also complicate the tax base. If taxable and nontaxable items are sold together for one price, the jurisdiction may require tax on the entire package or may allow a separate allocation only when specific conditions are met. New York explains how taxable and nontaxable goods and discounts affect the receipt amount. New York guidance on taxable receipts
The practical check is to compare the order’s original price, discount line, taxable subtotal, and tax line. If the discount does not appear to reduce the taxable subtotal as expected, ask the retailer how the offer was applied and consult the local tax authority for the rule. Keep the order confirmation if you need to reconcile a refund or adjustment later.
6. Calculate a basket with different rates
A single checkout can contain items taxed at different rates or items that are not taxable. Do not multiply the entire basket by one rate unless every item has the same tax treatment. Instead, group items by their applicable rate, calculate each group’s tax, and add the subtotals and tax amounts at the end.
Imagine a basket with a $40 item taxed at 8%, a $25 item taxed at 5%, and a $15 exempt item. The first item has $3.20 in tax. The second has $1.25. The exempt item adds no sales tax in this simplified example. The basket’s tax is $4.45, and the total is $84.45: $40 + $25 + $15 + $3.20 + $1.25.
If you divide the basket’s $4.45 tax by the $80 merchandise subtotal and multiply by 100, you get an implied blended rate of about 5.56%. That blended rate summarizes the entire basket; it is not the rate charged on either taxable item. This difference matters when you reverse-engineer an itemized receipt or compare prices across stores.
When a receipt does not separate groups, you may be able to confirm the overall amount but not reconstruct every individual rate. Look for the item-level tax details in the retailer’s full receipt or order page. Avoid treating the average rate as proof that each item was taxed correctly.
| Item group | Taxable price | Rate | Tax |
|---|---|---|---|
| Item A | $40.00 | 8% | $3.20 |
| Item B | $25.00 | 5% | $1.25 |
| Item C | $15.00 | Exempt in this example | $0.00 |
| Basket total | $80.00 | Blended rate about 5.56% | $4.45 |
7. Compare the final price, not just the tax rate
A lower rate does not always mean a lower checkout total. The shelf price, discount, taxable amount, and rate all contribute. Imagine a backpack costs $80 at one shop and $78 at another. With the illustrative rates of 7.5% and 8.5%, the first total is $86.00, while the second is $78 × 1.085 = $84.63. The second shop has the higher tax rate but the lower final price.
This comparison helps when you are shopping across nearby locations or comparing an online listing with a store price. Make sure both prices include the same product and delivery costs, and use the rate that applies to each transaction. A tax calculation helps compare the totals, but an actual exemption or discount can change the taxable price at checkout.
For a more complex basket, compare each item’s price and tax treatment instead of multiplying the whole basket by an average rate. If one retailer charges a higher price but applies a different promotion, calculate each line before deciding which offer costs less overall.
8. Work backward from a price that includes tax
If you know the tax-included total and the rate, divide the total by one plus the rate written as a decimal. At 7.5%, the multiplier is 1.075. An $86 total divided by 1.075 equals $80 before tax. Subtract $80 from $86 and the tax portion is $6.
This is not the same as subtracting 7.5% of the final total. The rate is applied to the pre-tax price, so the tax amount represents 7.5% of $80, not 7.5% of $86. Dividing by 1.075 correctly reverses the original “add 7.5%” operation.
The reverse formula works only when the whole total is taxable at one rate and the total contains no tip, shipping, delivery fee, deposit, or other amount treated separately. If you are working from a receipt with mixed items, first identify the taxable lines and their individual rates. Otherwise, the result is only a calculation of the pre-tax amount.
Pre-tax price = tax-included total ÷ (1 + rate as a decimal)
At 7.5%: $86 ÷ 1.075 = $80 before tax
Tax included in total = $86 − $80 = $6
9. Find the rate when the receipt shows the tax amount
If the receipt lists the tax and taxable subtotal but not the rate, divide the tax by the pre-tax taxable amount and multiply by 100. For the backpack example, $6 ÷ $80 = 0.075; multiplying by 100 gives an implied rate of 7.5%. This is useful for checking a receipt, comparing a quoted rate, or understanding what happened at checkout.
Use the taxable subtotal, not the total after tax. Dividing the $6 by the $86 total gives about 6.98%. That answers a different question: how much of the final payment was tax. To identify the rate applied to the item, the denominator must be the price before tax.
The implied rate may not match the advertised rate exactly when the tax amount has been rounded to cents, the receipt combines multiple rates, or a taxable fee is included. Recalculate the tax forward using the official rate and taxable amounts, then compare the result after rounding. A small difference may be rounding; a larger gap needs a closer look at the receipt lines and location.
Implied sales tax rate = (sales tax charged ÷ taxable pre-tax subtotal) × 100
10. Sales tax and VAT use similar math but different rules
Both sales tax and value-added tax can be calculated by applying a rate to a price, but they are separate tax systems. Do not use U.S. sales-tax rates to calculate VAT or assume that an item’s treatment is identical in both systems. VAT rates and product categories depend on the country and may include standard, reduced, zero, or exempt treatment.
For example, the United Kingdom publishes distinct standard, reduced, and zero VAT rates, with the applicable rate depending on the goods or services. The rate can change, so verify the current official information for the place and transaction. UK government VAT rates
Use Percentio’s Sales Tax Calculator for a U.S.-style purchase calculate when you know the price and applicable rate. Use the VAT Calculator when you are working with a VAT rate and need to add VAT or remove it from a tax-inclusive price. These tools handle the arithmetic; you still need to supply the correct jurisdiction, rate, and taxable amount.
11. Check the result before relying on it
Before comparing a checkout total with your own calculation, confirm that both use the same taxable price, tax rate, and rounding approach. A common mismatch is using the shelf price in one calculation and the discounted taxable amount in another. Another is comparing a current online rate with an older receipt.
Review these items in order: the price before tax, any discount, the taxable subtotal, the applicable location-based rate, the computed tax, and the final total. For a mixed basket, repeat the tax step for each group that has a different rate or tax status. This turns a vague “the total looks wrong” concern into a concrete comparison.
If you are a consumer and the receipt still seems off, ask the retailer to explain the taxable amount or rate. If you are a seller, follow the revenue agency’s collection instructions and retain the records required for your sales. A calculator can verify arithmetic, but it cannot decide whether a specific product, service, or charge is taxable under local law.
- Use the transaction’s pre-tax taxable amount.
- Convert the rate from a percent to a decimal before multiplying.
- Apply separate rates to separate item groups.
- Round at the end and compare tax line by line with the receipt.
- Verify rate and taxability with the relevant official authority.
Keep exploring Percentio
Browse the full directory to find related calculators and compare the assumptions that matter to your situation.
Browse all financial calculators →Questions and answers
Practical answers to common planning questions.


