Money and finance

Sales tax calculator

Calculate sales tax from a pre-tax amount or recover the pre-tax amount from a tax-inclusive total. The rate always comes from you.

Enter your values

Your results

Pre-tax amount
—
Sales tax
—
Total after tax
—

How we got this result: The page substitutes your current entries into this rule: Forward mode multiplies the pre-tax amount by rate ÷ 100. Reverse mode divides the total by 1 + rate ÷ 100 before finding the difference.

How to use this calculator

  1. Enter amount, sales-tax rate (%), calculation mode.
  2. Review the assumptions and units shown beside the fields.
  3. Read the live result, calculation note, and worked examples before using the answer.

From shelf price to checkout total

A product is marked 50 and the buyer wants to estimate the amount due after an 8 percent illustrative sales tax. If 50 is the taxable pre-tax base, tax is 4 and the total is 54. That forward calculation is simple. The difficult part in real purchases is establishing the taxable base and combined rate for the exact transaction.

This page can also reverse a tax-inclusive amount when one confirmed rate applies. It cannot identify where a sale is sourced, whether an item is exempt, which local components apply, or whether shipping, discounts, services, or marketplace rules alter the base. The rates shown in examples are hypothetical inputs, not current rates or legal guidance.

Forward tax and tax-included reversal

In add mode, pretax amount A is the base. Tax = A × r/100, and total = A + tax. In extract mode, the entered amount T already includes tax. Pretax amount = T / (1 + r/100), and included tax = T - pretax amount. The reverse operation divides by the multiplier that created the total.

A common mistake is to subtract r percent of an inclusive total. The rate was applied to the smaller pretax amount, so that subtraction removes too much. At 8 percent, a 100 base becomes 108. Extracting divides 108 by 1.08 and correctly recovers 100; taking 8 percent of 108 would produce 8.64 instead of the included 8.

Receipt situationAmount to enterModeInformation still needed
Price excludes taxConfirmed taxable baseAddApplicable combined rate
One amount includes taxTax-included totalExtractRate that created that total
Cart has exempt and taxable linesSeparate line groupsCalculate separatelyTreatment of every group
Several jurisdictions contributeBase subject to combined rateAddVerified component or combined rates
Receipt mixes ratesDo not use one grand-total extractionSeparate linesLine-level rate evidence

Three register calculations from the tested tax function

With a pretax amount of 50 and an illustrative 8 percent rate, add mode returns pretax 50, tax 4, and total 54. This is the direct checkout estimate when the entire 50 belongs in one taxable base. If part of the price is exempt, the base must be split before using the rate.

With 108 already including an 8 percent tax, extract mode returns pretax 100, included tax 8, and total 108. This reversal works because the full amount arose from one base multiplied by 1.08. It would not reliably separate a basket assembled under several rates.

For a pretax 249.99 at a hypothetical 6.25 percent rate, add mode produces tax 15.624375 and total 265.614375. A receipt will normally display rounded payable amounts, but its rounding method controls whether the shown tax is 15.62 and total 265.61 or follows another permitted sequence. The calculator does not establish that policy.

Rate and taxability depend on more than the buyer's address

Sales-tax treatment can depend on seller location, delivery destination, transaction date, product or service category, purchaser status, and the legal sourcing framework. Different levels of government may contribute components to one combined rate. A generic web tool cannot resolve those facts from a postal code-free amount field.

Use an authoritative rate source and confirm item treatment for material decisions. For a business, configure a suitable tax system or obtain qualified advice rather than maintaining an unsourced percentage in a spreadsheet. For a buyer's estimate, label the rate as an assumption and expect the final seller calculation to control the checkout amount.

Build the taxable base line by line

A cart can contain taxable goods, exempt goods, services, deposits, discounts, coupons, delivery, and fees. Whether each line belongs in the base comes from the applicable rules and transaction facts. Adding the headline cart subtotal and applying one rate may overstate or understate tax when treatments differ.

Create columns for line price, quantity, discount allocation, taxable status, taxable amount, rate, and tax. Group identical treatments only after line review. The sum of taxable amounts becomes the base for that group. Preserve excluded lines in the worksheet so the difference between cart total and taxable base is explained rather than hidden.

Combined rates may contain several components

A receipt may show one sales-tax line even when the combined percentage reflects several jurisdictions. When all components apply to the same base and are simply additive, using the verified combined rate reproduces the arithmetic. Store the component detail when reporting or allocation requires it.

Do not assume components always share the same base or that one tax is never applied after another. Specialized taxes, fees, or excise amounts can follow different rules. A single percentage field models one rate against one base; anything more complex should be calculated in documented stages.

A discount does not always reduce tax in the same way

A seller-funded price reduction, manufacturer reimbursement, gift certificate, store credit, and coupon can look similar to the customer while having different tax treatment under a particular system. Do not decide the base by subtracting every visible discount automatically. Follow the rule and seller documentation that applies to that type of adjustment.

For estimation, show the uncertain amount as a separate line and calculate more than one scenario if needed. At checkout, compare the receipt's taxable subtotal with your assumption. A discrepancy may come from treatment rather than from multiplication, so ask which lines entered the base before accusing the register of using the wrong rate.

Receipt rounding happens at a defined stage

Tax might be computed and rounded per item, per line, per rate group, or on a transaction subtotal according to the system and governing requirements. Summing independently rounded line taxes can differ slightly from applying the rate once to the unrounded combined base. Extra decimals on a recreated spreadsheet will not eliminate that structural difference.

When auditing a receipt, reproduce its grouping and rounding stage. Compare base, rate, unrounded tax if available, displayed tax, and total. Establish a reasonable smallest-unit tolerance, but investigate repeated directional differences because they can signal incorrect configuration rather than harmless rounding.

Budget with an assumption, then replace it with the receipt

A shopper can use a confirmed or cautiously estimated rate to reserve enough cash before purchase. Keep contingency for uncertain product treatment or location. Once the transaction occurs, replace the estimate in the budget with the actual tax and total from the receipt. The estimate should not become permanent accounting evidence.

For a large acquisition, request a written quote that identifies taxable lines and tax assumptions. Check its validity date and destination. If resale, exemption, or business-use documentation may apply, verify eligibility before the sale; a calculator cannot create or validate the necessary certificate.

Merchant checks that catch configuration errors

Test known products, destinations, discounts, returns, and edge cases after changing tax settings. Reconcile collected tax with transaction reports by rate and jurisdiction where required. Restrict changes to authorized users and retain an audit trail showing when a rate or rule configuration changed.

A plausible total is not enough. Sample a transaction by rebuilding its taxable base from line data, then compare the system's tax. Confirm that returns reverse the original treatment. Escalate discrepancies to the tax platform, accountant, or adviser instead of patching individual totals with manual unexplained adjustments.

  • Confirm transaction location and date before selecting a rate.
  • Classify each product, service, fee, and discount for the base.
  • Use a combined rate only when its components share the modeled base.
  • Reproduce the register's rounding stage during reconciliation.
  • Keep estimates separate from filed or booked tax records.

An online cart may not know the final tax yet

An ecommerce cart can show an estimate before it has a delivery address, fulfillment location, purchaser documentation, or final inventory assignment. The total may change later in checkout when those facts become available. Read whether the displayed tax is estimated, and avoid using a preliminary cart screenshot as the definitive transaction record.

For comparison shopping, apply the same assumption to competing pretax offers and keep delivery charges visible. Once each seller supplies a final checkout amount, compare those actual totals instead. A lower item price can be offset by shipping or another fee, while tax generally should not be treated as a seller discount. The receipt or final confirmation provides the value to retain.

Checkout terms behind the three outputs

Pretax amount is the base before the modeled sales tax. Taxable base is the portion legally subject to a particular rate. Tax amount is the product of that base and rate. Total is pretax amount plus calculated tax in add mode. Tax-inclusive means the visible amount already contains the tax being extracted.

Sourcing determines which jurisdiction's framework applies. Exemption removes or changes tax treatment when its conditions are met. Combined rate is the sum or result of applicable rate components for a defined base. Nexus, marketplace collection, use tax, and filing obligations are legal concepts outside this arithmetic calculator.

Taxable does not mean that every unit of the cart total shares one treatment. Destination is the place used under a sourcing rule, not merely whichever address is most convenient. Documentation is evidence supporting a classification, exemption, or filing position. These terms require transaction-specific interpretation.

Returns should trace back to the original tax treatment

A full return normally starts from the original receipt amount and its recorded tax, subject to the seller's policy and applicable rules. A partial return needs the tax associated with the returned line, not a fresh blended percentage from the whole order. Exchanges can combine a reversal and a new sale.

Keep receipt identifiers and line detail. When the original rate differs from a later rate, do not silently recalculate history at the newer percentage. Businesses should let their transaction system apply the documented return logic, while customers should review the refund breakdown and ask the seller about unexplained differences.

Reference and example table

CaseMeaning
Example 1At an example 8% rate, 50 pre-tax produces 4 tax and 54 total.
Example 2Reversing 8% from 54 recovers 50 pre-tax and 4 tax.
Example 3At an example 5.5% rate, 200 pre-tax produces 211 total.

Frequently asked questions

How do I add sales tax to a pretax price?

Multiply the confirmed taxable base by the rate divided by 100, then add that tax to the base. Use add mode when the entered amount excludes tax.

How can I find tax included in a total?

When one known rate created the entire total, divide by one plus the decimal rate to recover pretax value, then subtract that value from the total.

Does this calculator look up local sales-tax rates?

No. Enter a rate verified for the transaction's location, date, items, and circumstances. Example rates on the page are arithmetic illustrations only.

Can I apply one rate to a cart with exempt items?

Only apply the rate to the confirmed taxable base. Separate exempt or differently treated lines before calculating and retain the reason for each exclusion.

Why is the receipt tax slightly different from my estimate?

The seller may use a different taxable base, verified rate components, or per-line rounding. Compare line treatment and rounding sequence before focusing on the multiplication.

Can I use extract mode on a mixed-rate receipt?

A single extraction is unreliable when several rates or exempt lines are mixed. Use line-level or rate-group information from the receipt.

Are shipping and service fees taxable?

Their treatment depends on the applicable framework and transaction facts. Do not assume inclusion or exclusion; verify the rule for the specific charge.

Does the displayed currency symbol change the calculation?

It only labels values. The function neither converts currencies nor selects a tax exchange rate, so all entered amounts must already share one currency.