How to Add Sales Tax
To add sales tax, multiply the taxable amount by the combined applicable rate and add the result to the pre-tax amount. For example, a $120 taxable purchase at 8.25% produces $9.90 tax and a $129.90 total.
The formula is simple, but a correct invoice also requires the right jurisdiction, sourcing rule, taxable items, discounts, shipping treatment, exemptions, and rounding method.
Basic Formula
Sales tax = taxable subtotal × tax rate as a decimal
Invoice total = taxable subtotal + sales tax + nontaxable charges
Convert a percentage by dividing by 100. Thus, 7.5% becomes 0.075.
Example: One Taxable Item
- Pre-tax price: $84.00
- Rate: 6.5%, or 0.065
- Tax: $84.00 × 0.065 = $5.46
- Total: $84.00 + $5.46 = $89.46
Step 1: Find the Correct Combined Rate
The customer may owe state, county, city, district, or special-purpose taxes. Use the state revenue department’s official rate lookup and the location required by that state’s sourcing rules. Postal ZIP codes can cross tax boundaries and are not always precise enough.
- Retail counter sale may use the store location.
- Shipped merchandise often uses the delivery destination.
- Services, rentals, digital goods, and mobile sales can have special sourcing rules.
- Marketplace platforms may collect tax on transactions they facilitate.
Step 2: Separate Taxable and Nontaxable Lines
| Invoice Line | Possible Treatment |
|---|---|
| Tangible product | Commonly taxable unless exempt |
| Professional service | Varies by state and service type |
| Shipping | Can depend on state law and whether separately stated |
| Installation | May be taxable, exempt, or dependent on the product |
| Discount | Often reduces the taxable base, with exceptions |
| Resale purchase | May be exempt with a valid certificate |
Do not calculate tax on the full invoice when only some lines are taxable.
Step 3: Apply Discounts Correctly
A seller-funded discount commonly reduces the selling price before tax. Manufacturer coupons, rebates, trade-ins, and bundled promotions can receive different treatment. Check the jurisdiction instead of assuming every discount works the same way.
Example: A $200 product receives a $20 seller discount. If the taxable base becomes $180 and the rate is 7%, tax is $12.60.
Step 4: Calculate and Round
Multiply the taxable base by the decimal rate and apply the state’s rounding rules. Some systems calculate tax on each line, while others calculate it on the invoice subtotal. Those approaches can differ by a cent on multi-item invoices.
Configure the point-of-sale or accounting system to the official method and use it consistently.
Adding Tax in a Spreadsheet
If cell A2 contains the taxable price and B2 contains the decimal rate:
- Tax formula: =A2*B2
- Total formula: =A2*(1+B2)
If B2 contains 8.25 rather than 8.25%, divide by 100: =A2*(1+B2/100).
Tax-Inclusive Pricing
When the displayed total already includes tax:
Pre-tax amount = tax-inclusive total ÷ (1 + decimal rate)
Tax portion = total − pre-tax amount
At an 8% rate, a $108 tax-inclusive total contains $100 price and $8 tax.
Invoices With Multiple Rates
Some products, locations, or districts require different rates. Group taxable lines by rate, calculate each group separately, and show the resulting tax clearly. Do not average rates unless the jurisdiction specifically permits that method.
Exempt Customers
Before removing tax, obtain and validate the required resale, exemption, or direct-pay certificate. Confirm that the certificate covers the purchaser, transaction, product, and jurisdiction. Store it for the statutory retention period.
A customer’s statement that it is “tax exempt” is not enough.
Refunds and Returns
When refunding a taxable sale, refund the corresponding tax based on the returned amount. Partial returns require proportional calculations. Keep the original invoice and credit documentation so the tax return can be reconciled.
Common Mistakes
- Using only the statewide rate
- Adding tax to exempt services or products
- Applying tax before a qualifying seller discount
- Using a billing address when delivery destination controls
- Accepting an invalid resale certificate
- Rounding differently on invoices and tax returns
- Treating collected tax as revenue
Writer’s Opinion
The calculation should be automated only after product taxability and location sourcing are configured correctly. A perfect formula applied to the wrong taxable base produces a confidently wrong invoice.
Businesses should test sample transactions whenever they enter a new state, add a product type, change a marketplace, or update accounting software. A one-cent difference is usually a rounding issue; a repeated percentage difference signals a configuration problem.
Frequently Asked Questions
Do I add sales tax before or after a discount?
Often after a seller-funded discount, but coupons, rebates, and trade-ins can follow different state rules.
Can I include tax in the advertised price?
Some jurisdictions allow tax-inclusive pricing if disclosures and records are clear; others require tax to be separately stated.
What if the seller did not collect tax?
The purchaser may owe use tax, and the seller may still have liability if collection was required.
Should shipping be taxed?
It depends on the state, the underlying product, and whether shipping is optional or separately stated.
Executive Summary
Verify the combined rate and sourcing location, separate taxable lines, adjust the taxable base for discounts and exemptions, multiply by the decimal rate, round under state rules, and show the tax clearly on the invoice.

