← Back to Engineering Library

Sales Tax Calculator

Technical Calculation Methodology and Tool

Interactive Sales Tax Calculator

Calculate sales tax, final price, and pre-tax amount instantly for shopping, invoices, and retail pricing.

Sales Tax Calculator

Calculate sales tax, total price, or reverse sales tax instantly

$
%
Sales Tax $—
Total Price $—
Tax Rate

Interactive sales tax calculator visualizer

Enter your subtotal and local tax rate to see the animated receipt bars build up in real time. The visualizer stacks your subtotal, tax amount, and final total as proportional bars — giving you an instant, clear picture of exactly how much tax is added to any purchase.

Subtotal100
Tax rate8.5%

Subtotal

$100.00

Tax amount

$8.50

Total

$108.50

FIRGELLI Automations — Interactive Engineering Calculators

📹 Video Walkthrough — Sales Tax Calculator

Sales Tax Calculator
Price before tax
Tax rate
Sales tax
Final total
Pre-tax amount

Quoting a price to a customer — or checking a receipt — means you need to know exactly how much tax lands on top. Use this Sales Tax Calculator to calculate the tax amount, final total, or pre-tax price using a pre-tax amount and a tax rate. It handles both directions: add tax onto a price, or strip tax back out of a total. Useful for retail pricing, invoicing, and budgeting across any region with a percentage-based sales tax. This page includes the formula, worked examples, a results reference table, and a full FAQ.

What is sales tax?

Sales tax is a percentage charged on top of a product or service price at the point of sale. The buyer pays it, and the seller collects it and passes it to the government. The rate varies by state, province, or country.

Simple Explanation

Think of sales tax like a surcharge tacked onto the price tag. If something costs $100 and the tax rate is 8%, the store adds $8 — so you pay $108 at the register. Going the other direction, if you already know the final total and want to find out what the base price was, you divide instead of multiply.

How to Use This Calculator

  1. Choose Add Sales Tax to add tax onto a pre-tax price, or choose Reverse Sales Tax to remove tax from a total price.
  2. Enter the dollar amount in the price field.
  3. Enter the sales tax rate — type a custom percentage or select a quick preset.
  4. Click Calculate to see your result.

What Is Sales Tax?

Sales tax is a percentage added to the price of goods or services at the time of purchase. The percentage varies by region, state, province, or country.

When you add sales tax, you calculate the tax on the pre-tax price and then add it to the original amount. When you reverse sales tax, you start with the final total and work backward to separate the tax from the pre-tax price.

The Sales Tax Formula

Use the formula below to calculate sales tax, total price, or pre-tax price.

Sales Tax = Price × (Tax Rate ÷ 100)
Total Price = Price + Sales Tax
Pre-Tax Price = Total Price ÷ (1 + Tax Rate ÷ 100)

Simple Example

Add 10% Sales Tax to $50

Pre-tax price: $50.00. Tax rate: 10%.

Sales tax: $50 × 0.10 = $5.00.

Total price: $55.00.

Step-by-Step Calculation

  1. Enter the pre-tax price or total price.
  2. Convert the tax rate to a decimal by dividing by 100.
  3. For adding tax, multiply the price by the tax rate decimal to find the tax amount.
  4. Add that tax amount to the original price to get the final total.
  5. For reversing tax, divide the total by 1 plus the tax rate decimal to find the pre-tax amount.

Worked Examples

Example 1 — Add 5% Sales Tax

An item costs $100 before tax. The sales tax rate is 5%.

Sales tax: $5.00. Final total: $105.00.

Example 2 — Add 8% Sales Tax

A product costs $79.99 before tax. The tax rate is 8%.

Sales tax: $6.40. Final total: $86.39.

Example 3 — Add 12% Sales Tax

A purchase is $250 before tax. The sales tax rate is 12%.

Sales tax: $30.00. Final total: $280.00.

Example 4 — Reverse 8% Sales Tax

Your receipt total is $108 and that includes 8% sales tax. What was the pre-tax amount?

Pre-tax price: $100.00. Sales tax included: $8.00.

Results Table

Pre-Tax Price Tax Rate Sales Tax Total Price
$50.00 5% $2.50 $52.50
$79.99 8% $6.40 $86.39
$100.00 10% $10.00 $110.00
$250.00 12% $30.00 $280.00

Common Mistakes to Avoid

Quick Answers

What is 5% sales tax on $100? $5.00.

What is the total price of $80 with 10% sales tax? $88.00.

What is 8% sales tax on $50? $4.00.

What was the pre-tax amount of a $108 total at 8% tax? $100.00.

Frequently Asked Questions

How do I calculate sales tax?
Multiply the price before tax by the sales tax rate divided by 100. Then add that tax amount to the original price.
What is the formula for total price with sales tax?
Total price equals pre-tax price plus sales tax. Another way to write it is price × (1 + tax rate ÷ 100).
How do I remove sales tax from a total price?
Divide the total price by 1 plus the tax rate as a decimal. That gives you the pre-tax price.
What is 8% tax on $100?
$8.00 in tax, making the final total $108.00.
What is 5% tax on $50?
$2.50 in tax, making the final total $52.50.
How do I calculate the total price after tax?
First find the tax amount, then add it to the pre-tax price. The result is the final price after tax.
Can I use a custom sales tax rate?
Yes. Enter any tax percentage you need, including local or combined rates.
Why does reverse sales tax use division instead of subtraction?
Because the tax was originally added as a percentage of the pre-tax price. To undo that correctly, you divide by 1 plus the tax rate decimal.
What is the pre-tax price if the total is $110 with 10% tax?
The pre-tax price is $100, and the tax included is $10.
Is sales tax the same everywhere?
No. Sales tax rates vary by state, province, region, and country.
Can this calculator be used for invoices and receipts?
Yes. It works for retail purchases, invoices, receipts, and budgeting calculations.
About the Author
Robbie Dickson
Chief Engineer & Founder, FIRGELLI Automations

Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.

Tags
Sales Tax Calculator