How to calculate a tip with sales tax
A receipt can contain several different numbers: the pre-tax subtotal, sales tax, a mandatory service charge, a voluntary tip, and the final total. This calculator keeps those amounts separate so you can see exactly what each part contributes.
Start with the subtotal before tip. Enter the sales-tax rate shown on the receipt, choose a tip percentage, and then decide whether you want the tip calculated from the pre-tax subtotal or from the amount after tax. If the business has already added a mandatory service charge or automatic gratuity, enter it separately rather than folding it into the voluntary tip.
The basic formulas are:
- Tax = subtotal × tax rate
- Pre-tax tip = subtotal × tip rate
- After-tax tip = (subtotal + tax) × tip rate
- Final total = subtotal + tax + service charge + voluntary tip
The calculator performs each monetary step in the smallest currency unit so the displayed total stays consistent when the bill is split.
Pre-tax vs. after-tax tipping
Suppose the subtotal is $100 and sales tax is 8%. The tax is $8. A 20% tip based on the pre-tax subtotal is $20, while a 20% tip based on the taxed amount is $21.60. The difference is $1.60.
There is no need to do that comparison mentally. Switch between Pre-tax subtotal and After-tax amount to see the effect immediately. For U.S. restaurant etiquette, the Emily Post Institute describes its sit-down restaurant percentage guidance in terms of the pre-tax bill. Individual diners may still choose a different basis.
Use the tax rate from the receipt
Do not assume that one sales-tax percentage applies everywhere in a state. State and local taxes can differ, and the taxable portion of a purchase can also vary. For a real receipt, the most reliable input is the tax rate or tax amount printed by the business.
If you only know the tax amount, you can estimate the rate by dividing tax by the pre-tax subtotal and multiplying by 100. For example, $6.60 of tax on an $80 subtotal corresponds to an 8.25% rate.
Service charge and tip are different inputs
A mandatory service charge or automatic gratuity is not the same thing as a voluntary tip. The IRS distinguishes compulsory service charges from tips that the customer freely determines. That distinction matters when reading a restaurant or event bill.
Before adding another tip, look for wording such as:
- automatic gratuity
- service charge
- hospitality charge
- large-party charge
Enter a required charge in the Service charge field. The voluntary tip field then shows only the additional amount you choose.
Splitting a bill with tax and tip
If several people are paying, set the number of people in the calculator. The final total is divided in whole cents, and any remainder cents are distributed deterministically. That prevents a common problem where rounded per-person amounts add up to one cent less or more than the actual bill.
For a simple dinner where everyone spent roughly the same amount, equal splitting is usually enough. If different people ordered very different amounts, use the Uneven Split Bill Calculator instead so tax, service charges, shared items, and tip can be allocated from each person's actual spending.
Example
For an $85.50 subtotal, 8.25% tax, and a 20% pre-tax tip:
- tax is calculated from $85.50
- tip is calculated from $85.50
- any mandatory service charge is added separately
- the calculator then shows the final bill and exact per-person shares
Changing the tip basis to after-tax recalculates only the tip base, making it easy to compare the two methods without changing the receipt inputs.
When this calculator is useful
Use this page when the tax component is important to the decision: restaurant checks, travel receipts, group dinners, or any situation where you want to compare pre-tax and after-tax tipping. For a faster equal split, use the Split Bill Calculator. For item-by-item sharing, use the Uneven Split Bill Calculator.
Related guidance for the receipt decision
If the main question is which amount should be used as the tip base, read Tip Before or After Tax? before choosing the toggle. If the receipt already contains an automatic gratuity, hospitality charge, or another required fee, the Service Charge vs. Tip guide explains why I keep that amount separate from a voluntary tip.
For group payments, the Split Bill Calculator is the faster choice when everyone is dividing the final bill evenly, while the Uneven Split Bill Calculator is designed for different personal subtotals and shared items.