How to Use the Tax Calculator
This calculator handles four tax scenarios: calculate sales tax on a purchase, work backwards from a total to find the pre-tax price, estimate income tax from gross earnings, or determine what tax rate was applied to a transaction. All calculations use exact decimal arithmetic.
Calculation Modes
Sales Tax — Calculate Tax and Total
Enter the pre-tax amount and the tax rate. The calculator computes the tax amount and the total you will pay.
Formula: Tax = Amount × (Rate / 100), Total = Amount + Tax
Example: $250 purchase with 8.25% sales tax
- Amount: 250
- Tax Rate: 8.25
- Tax Amount: 20.625
- Total Amount: 270.625
Example: $1,200 laptop with 6% tax
- Amount: 1200
- Tax Rate: 6
- Tax Amount: 72
- Total Amount: 1,272
A breakdown table shows the subtotal, tax rate, tax amount in red, and total.
Reverse Tax — Find the Original Price
Enter the total amount you paid (including tax) and the tax rate. The calculator backs out the original pre-tax price and the tax portion.
Formula: Original = Total / (1 + Rate/100), Tax = Total - Original
Example: You paid $324.50 total and the tax rate is 8.5%
- Total with Tax: 324.50
- Tax Rate: 8.5
- Original Price: 299.07834
- Tax Amount: 25.421659
Example: Restaurant bill of $86.40 with 7% tax
- Total with Tax: 86.40
- Tax Rate: 7
- Original Price: 80.747664
- Tax Amount: 5.6523364
This is useful when you only know the final receipt total and want to separate the tax for expense reporting or reimbursement.
Income Tax — Estimate Net Income
Enter your gross income, tax rate, and optionally any deductions. The calculator computes your taxable income, tax owed, and net take-home pay.
Formula: Taxable = max(Gross - Deductions, 0), Tax = Taxable × (Rate / 100), Net = Gross - Tax
Example: $75,000 gross income, 22% tax rate, $13,850 standard deduction
- Gross Income: 75000
- Tax Rate: 22
- Deductions: 13850
- Taxable Income: 61,150
- Income Tax: 13,453
- Net Income: 61,547
- Effective Tax Rate: 18
Example: $45,000 gross with 15% flat rate and no deductions
- Gross Income: 45000
- Tax Rate: 15
- Deductions: (leave empty)
- Taxable Income: 45,000
- Income Tax: 6,750
- Net Income: 38,250
- Effective Tax Rate: 15
The effective tax rate is your actual tax divided by gross income. It is lower than the marginal rate when deductions reduce your taxable income. The breakdown table shows gross income, deductions in red (hidden if zero), taxable income, tax rate, income tax in red, net income in green, and effective tax rate.
Find Rate — Determine the Tax Rate
Enter the original amount and the total with tax. The calculator determines what percentage rate was applied.
Formula: Rate = ((Total - Amount) / Amount) × 100
Example: Item costs $85 before tax, receipt shows $91.80
- Original Amount: 85
- Total with Tax: 91.80
- Tax Rate: 8
- Tax Amount: 6.8
Example: Hotel charge of $220 becomes $244.20 after fees
- Original Amount: 220
- Total with Tax: 244.20
- Tax Rate: 11
- Tax Amount: 24.2
Use this when you need to verify a rate on an unlabeled receipt or compare rates across jurisdictions.
Precision and Notation Settings
Use the settings bar above the tabs to control how results display:
- Decimal places: Adjust from 0 to 16 decimal places (default is 8)
- Notation: Switch between auto, fixed, exponential, and engineering notation (default is auto)
Your decimal places and notation settings save to your browser automatically. When you return to this calculator, your last chosen format loads without needing to adjust it again.
Common Use Cases
Checking a Restaurant Bill
Your meal total is $142.50 and the tax rate should be 8.875%:
- Switch to Sales Tax
- Enter 142.50 as Amount
- Enter 8.875 as Tax Rate
- Tax Amount: 12.646875, Total Amount: 155.14688
- Compare with your receipt to verify
Expense Reporting
You have a receipt for $563.20 but need the pre-tax amount for reimbursement:
- Switch to Reverse Tax
- Enter 563.20 as Total with Tax
- Enter 6.5 as Tax Rate
- Original Price: 528.82629, Tax Amount: 34.373709
Estimating Take-Home Pay
You earn $95,000/year with a $14,600 standard deduction and an estimated 24% marginal rate:
- Switch to Income Tax
- Enter 95000 as Gross Income
- Enter 24 as Tax Rate
- Enter 14600 as Deductions
- Net Income: 75,704
- Effective Tax Rate: 20 (this is the number that matters for budgeting)
Verifying a Contractor Invoice
A contractor quoted $4,500 but the invoice shows $4,815. You want to know the tax rate:
- Switch to Find Rate
- Enter 4500 as Original Amount
- Enter 4815 as Total with Tax
- Tax Rate: 7
Tips for Accurate Calculations
- Enter rates as percentages, not decimals: Enter 8.25 for 8.25%, not 0.0825. The calculator divides by 100 internally
- Deductions are optional: In Income Tax mode, leave deductions empty to tax the full gross amount
- Deductions cannot exceed gross income: If deductions are larger than gross income, taxable income floors at zero
- Reverse tax requires the rate: Use Find Rate first if you do not know the rate
- Effective rate vs marginal rate: Effective rate is actual tax divided by gross income
- Zero deductions are hidden: Enter 0 or leave the field empty to hide the deductions row
- Total must exceed original in Find Rate: Equal or lower totals produce a zero or negative rate
- All values must be positive: Negative amounts, rates, or totals are rejected across all modes
Troubleshooting
Required
This appears when a field is left empty. Enter a value in all required fields before calculating.
Amount must be positive
Enter a value greater than 0 for the amount or original amount field.
Total must be positive
Enter a value greater than 0 for the total with tax field.
Rate cannot be negative
Tax rates must be zero or positive. Negative rates are not valid.
Total must be greater than amount
In Find Rate mode, the total with tax must be strictly larger than the original amount.
Income must be positive
Gross income must be greater than 0.
Deductions cannot be negative
Deductions must be zero or positive. Enter deductions as a positive number.
Breakdown table not appearing
The details table only renders after a successful calculation with no validation errors. Check that all required inputs are filled and valid, then click Calculate.