Skip to main content

Sales tax calculator

Type a price and your sales tax rate, then add the tax or take it back out of a total. The result is exact to the cent, with the working shown.

Runs in your browser. Nothing you type is sent or saved unless you press Create this invoice.

What do you want to do?

Your state's rate, such as 6.25.

County, city and district rates, added together. Leave blank if your rate is already combined.

Total with tax $108.25Price before tax $100.00Sales tax (8.25%) $8.25Total with tax $108.256.25% state + 2% local = 8.25%$100.00 × 8.25% = $8.25
Create this invoice

Free account, no card. Your numbers come with you.

Where to find your rate

Links checked 2 November 2026. Your rate depends on where the sale takes place and what you sell.

This calculator does the arithmetic only. It does not tell you which rate applies to you or whether you must charge tax.

General information only: this tool does arithmetic on the numbers you enter and is not tax, accounting or legal advice. Rates and rules differ by place and situation, so check what applies to you or ask a qualified professional.

How it works

Adding tax: price × rate

Sales tax is the price before tax times the rate. At a combined 8.25%, a $100.00 sale carries $8.25 of tax, for a total of $108.25. If your state and local rates are listed separately, enter both: the calculator adds them, so 6.25% plus 2% is worked out as 8.25%.

Taking tax out: total ÷ (1 + rate)

To find the price before tax inside a total, divide the total by one plus the rate, then subtract. A $250.00 total at 8.875% is $250.00 ÷ 1.08875 = $229.62 before tax, so the tax is $20.38. Taking 8.875% of $250.00 instead would overstate the tax, because the total already includes it.

Rounded once, half-up, to the cent

The tax is worked out exactly and rounded once at the end: half a cent or more rounds up. $19.99 at 7% is $1.3993, so the tax is $1.40. When tax is taken out of a total, the price before tax is the rounded figure and the tax is the difference, so the two always add back to the total you typed.

Sales tax formulas

The three sums the calculator does, with an example of each. The rates are illustrations; your rate depends on where the sale takes place and what you sell.

Sales tax formulas with a worked example of each
What you wantHow it is worked outExample
Tax on a pricePrice before tax × rate$100.00 × 8.25% = $8.25; total $108.25
Price before tax, from a totalTotal ÷ (1 + rate); tax = total − that price$250.00 ÷ 1.08875 = $229.62; tax $20.38
Combined rateState rate + local rates6.25% + 2% = 8.25%
RoundingOnce, at the end, half a cent or more up$19.99 × 7% = $1.3993, charged as $1.40

Examples

A $100.00 sale at 6.25% state + 2% local

The combined rate is 8.25%. The tax is $8.25 and the customer pays $108.25. On an invoice, show the $100.00 price, the tax at 8.25% and the total as separate lines.

A $250.00 receipt at 8.875%, worked backwards

$250.00 ÷ 1.08875 = $229.62 before tax, and the tax is $20.38. The two add back to exactly $250.00. This is the sum to do when a client asks what part of a tax-inclusive price was tax.

Per item or on the total

Three items at $0.99 and 7%: taxing each one gives $0.07 each, $0.21 in all, while taxing the $2.97 total gives $0.21. Rounding per line and rounding once can differ by a cent, so use whichever your state or your point-of-sale system expects, consistently.

Rules and good practice

The rate depends on where the sale happens (Texas and New York examples)
Rule

US sales tax is set by states, and many counties and cities add their own rate on top. The Texas Comptroller says: “Texas imposes a 6.25 percent state sales and use tax on all retail sales, leases and rentals of most goods, as well as taxable services”, and local taxing jurisdictions can add more. New York's tax department says: “The combined rates vary in each county and in cities that impose sales tax.” That is why this calculator has no preset rates: look your rate up for the address with the links under the calculator, and type it in.

This tool does the arithmetic only. It does not tell you whether a sale is taxable, which rate applies, or whether you must collect sales tax at all.

Show the tax as its own line on the invoice

Put the price before tax, the tax rate, the tax amount and the total on separate lines, so your client can check the sum and see what was tax. Our guide to what a tax invoice is covers what else the invoice should show.

General information, not tax or legal advice. Rules vary by place and change; check the current official guidance.

Adding sales tax in Charming

In Charming Invoices you add your line items and set a tax rate on the invoice; the subtotal, tax and total calculate as you type, rounded to the cent. Press Create this invoice above to start a new invoice with this price and rate filled in, then issue it, download the PDF and send it however you like.

The catch: an invoice has one tax rate, applied to the subtotal after any discount, so state and local tax are shown as one combined rate. Prices go on the invoice before tax; it does not work tax backwards out of a tax-inclusive price. A rate with three decimals, such as 8.875%, is not carried over, so set it on the invoice yourself. Charming does not look up rates or file returns.

Questions

How do I calculate sales tax?
Multiply the price before tax by the rate. At 8.25%, $100.00 × 0.0825 = $8.25, and the total is $108.25. If your rate comes as a state rate and a local rate, add them first, then multiply. Round the tax once, to the cent, at the end.
How do I work out sales tax backwards from a total?
Divide the total by one plus the rate to get the price before tax, then subtract it from the total to get the tax. A $250.00 total at 8.875% gives $229.62 before tax and $20.38 of tax. Choose “Take tax out of a price” in the calculator to do this.
Which sales tax rate should I use?
The rate for where the sale takes place, which can combine a state rate with county, city and district rates, and can depend on what you sell. This calculator does not choose a rate for you. Use your state's lookup tool, such as the ones linked under the calculator, and type the rate you find.
Should sales tax be a separate line on the invoice?
Showing it separately is the clearest way: the price before tax, the rate, the tax amount and the total. Your client can check the sum and see what part of the bill is tax. When you hand the result to a new invoice, the price goes on as a line item and the rate is set as the invoice's tax rate.
Is anything I enter saved or sent anywhere?
No, unless you press Create this invoice. The calculation runs in your browser and nothing you type is sent or stored. Pressing the button carries the price and rate to a new invoice: in the link if you are signed in, or in a cookie that expires after two hours if you are not.

Put the tax on a real invoice

Add your business and your client, enter the price and rate, and download a clean PDF invoice with the tax shown, on the free plan.