Sales Tax Calculator
Add sales tax onto a price, or back the pre-tax price out of a tax-included total; enter a price and tax rate and get both figures instantly, in your browser.
Mode
Total With Tax
$54.00
$4.00 tax on $50.00
Common Use Cases
About Sales Tax Calculator
Sales tax math comes up constantly: checking out at a register, pricing a product before tax gets added at checkout, or reading a receipt and trying to work out what the item actually cost before tax was tacked on. The two directions of that problem use different formulas, and the reverse direction in particular is easy to get wrong: a price that already includes tax can't simply be reduced by the tax rate, because the tax rate was applied to the smaller, pre-tax number in the first place.
This calculator covers both directions as separate modes, selected with the toggle at the top. Add Tax to Price answers "what will I actually pay?" It takes a pre-tax price and a tax rate and computes the tax amount as price × (rate ÷ 100), then adds that to the price for the total. This is the everyday calculation behind a price tag that doesn't already include tax.
Price Includes Tax: Back It Out answers the opposite, less obvious question: "this total already includes tax, so what was the price before it was added?" You can't just subtract the tax rate from the total; the correct formula is pre-tax price = total ÷ (1 + rate ÷ 100). This comes up when reading a receipt or an all-in price and needing to know the pre-tax subtotal, for example for an expense report or a bookkeeping entry.
Both modes update their results live as you type, with no "Calculate" button to press, and the tax rate accepts any non-negative percentage including decimals (like a combined state-plus-local rate of 8.25%). Every calculation runs as plain JavaScript directly in your browser, so nothing you type is ever sent to a server, logged, or stored anywhere.
Frequently Asked Questions
How is the tax amount calculated when adding tax to a price?
How do I work out the pre-tax price from a total that already includes tax?
Why can't I just subtract the tax percentage from a tax-included total?
Can I enter a combined state and local tax rate, or a decimal rate?
Which mode should I use if I'm pricing a product before checkout adds tax?
Is my price data sent to a server?
Related Tools
View all CalculatorsSimple Interest Calculator
Work out interest earned (or owed) and the final amount from a principal, annual interest rate, and time in years, using I = P × r × t, instantly, in your browser.
Compound Interest Calculator
Work out how a principal grows with compound interest at a chosen compounding frequency, with a year-by-year growth table showing exactly how the balance builds up.
Savings Goal Calculator
Work out the monthly contribution needed to hit a savings target by a deadline, or how long it'll take at a fixed monthly amount, with interest optional, instantly, in your browser.