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 CalculatorsPercentage Calculator
Find X% of a number, work out what percent one number is of another, or calculate the percent change between two values, instantly, in your browser.
Tip Calculator
Calculate a tip and split the total evenly between any number of people, with a slider, quick-pick percentages, and a live per-person breakdown, entirely in your browser.
Discount Calculator
Work out a sale price and how much you'll save from an original price and discount percentage, or reverse-engineer the original price from a sale price, instantly, in your browser.