How to calculate tax and tip
A restaurant receipt mixes several different amounts, and a tip percentage only means something once you know which of them it applies to. Start with the item subtotal before tax. Subtract any coupon or discount to get the discounted subtotal. Add sales tax, add any service charge the restaurant has already included, and then add the voluntary tip you choose. This calculator keeps each of those lines separate so you can inspect them, then shows the total and an exact split between diners. For a single bill that is not shared, set the number of people to 1.
Choose the tip base
A bill can have several valid tipping bases. The amount before a coupon rewards the original service price. The discounted subtotal follows what you paid for the items. Including sales tax raises either base. This calculator shows the selected base in money so you can inspect the choice before using the result. It does not decide the right local custom or calculate a legal tax liability. The same idea appears in business arithmetic: markup and margin use different bases, and a percentage means little until the base is named. For the example bill below, the four bases give four different tips at 20%.
| Tip base | Base | 20% tip | Total |
|---|---|---|---|
| Original subtotal, before tax | 100.00 | 20.00 | 117.20 |
| Original subtotal, including tax | 107.20 | 21.44 | 118.64 |
| Discounted subtotal, before tax | 90.00 | 18.00 | 115.20 |
| Discounted subtotal, including tax | 97.20 | 19.44 | 116.64 |
Tax, discount and tip formulas
The calculator uses these steps, with every money amount rounded half-up to the cent before it feeds the next step:
- S is the pre-tax item subtotal, and D is the discount: S × the discount rate, or an amount you enter.
- A = S − D is the discounted subtotal. When a coupon covers a multipack or a larger size, compare unit prices after a discount before you order.
- X is sales tax: A × the tax rate, or the tax amount printed on your receipt.
- C is a service charge already due. It is added to the total but is never part of the tax or tip base.
- B is the tip base: S or A, plus X only if you include tax. T is the voluntary tip: B × the tip rate, or an amount you enter.
- Total = A + X + C + T, plus the optional round-up described below.
Percentage tax is applied to the discounted subtotal. If your receipt taxes a different base, or taxes the service charge, enter the actual tax amount instead; the tool does not look up local tax rules.
Worked example: a coupon and three diners
Take a 100.00 food subtotal with a 10% coupon, 8% sales tax, a 20% tip on the original pre-tax subtotal and three diners. The discount is 10.00, so the discounted subtotal is 90.00. Tax is 8% of that, 7.20. The tip base is the original 100.00, so the tip is 20.00. The total is 90.00 + 7.20 + 20.00 = 117.20. Divided by three that is 39.0666…, which cannot be paid in whole cents. Two diners pay 39.07 and one pays 39.06, and the three shares add up to 117.20 exactly. Charging all three 39.07 would collect 117.21, one cent too much.
Before-discount or after-discount tip?
With the discounted subtotal as the base, the same 20% gives a tip of 18.00 instead of 20.00, a total of 115.20 and 38.40 each. Adding the 7.20 tax to the discounted base gives a tip of 19.44, a total of 116.64 and 38.88 each. The difference between 20.00 and 18.00 is a choice about the base, not a tax rule and not a recommendation. Some diners tip on what the meal would have cost, others on what they paid; the tool lets you see both before you decide.
Tip percentages at a glance
The table shows the same bill at 15%, 18%, 20%, 22% and 25%, using the discount, tax, tip base, service charge, round-up setting and number of people from your last calculation. Use a row to load that percentage into the form; nothing is recalculated until you press Calculate. These are examples of arithmetic, not suggested tip rates.
| Tip | Voluntary tip | Total | Split | Load percentage |
|---|---|---|---|---|
| 15% | 15.00 | 112.20 | Everyone pays 37.40 | |
| 18% | 18.00 | 115.20 | Everyone pays 38.40 | |
| 20% | 20.00 | 117.20 | 2 pay 39.07; 1 pays 39.06 | |
| 22% | 22.00 | 119.20 | 1 pays 39.74; 2 pay 39.73 | |
| 25% | 25.00 | 122.20 | 1 pays 40.74; 2 pay 40.73 |
Service charges and tax already on the receipt
Some restaurants add a service charge, especially for larger parties. That is money already due, not a second automatic tip, so the calculator enters it on its own line: with a 100.00 subtotal and a 20.00 service charge, a 0% voluntary tip leaves a total of 120.00, or 40.00 each for three people. Keep the subtotal free of the service charge and of tax, or the same money is counted twice. Whether a given charge is legally a gratuity, and whether it is taxable, depends on where you are and is outside this model. When your receipt already shows the tax, enter it as an amount. You can then decide whether any extra voluntary tip is wanted on top of the service charge.
How rounding and splitting work
Every computed amount is rounded to the cent, half up. Take a 48.75 bill with an 18% tip: 18% is 8.775, which rounds to 8.78, so the total is 57.53 rather than 57.52. The final total is then divided among the diners in whole cents. The cents that do not divide evenly go to as many people as there are leftover cents, one cent each, so the group pays the exact bill and no one pays two cents more than another. The optional round-up lifts the group total to the next whole currency unit and shows the difference as extra tip: the example bill rises from 117.20 to 118.00 with 0.80 of added tip, and the shares become 39.34, 39.33 and 39.33. It rounds the group total, never each guest separately, and it is not a suggestion that anyone should pay less than their share.
For examples of other bill calculators and the conventions they use, see Salecalc’s tax and tip calculator and Calculator.net’s tip calculator. They are shown only as examples of conventions, not as authority for any required tip rate.
Frequently asked questions
Should I tip before or after tax?
The calculator allows either. Local customs and personal preference differ, so look at the base shown in money and decide. It does not prescribe a mandatory percentage.
Should a discount reduce the tip?
You choose the original or the discounted subtotal. In the 100.00 example with a 10% coupon, a 20% tip is 20.00 on the original subtotal and 18.00 on the discounted one, before tax, while tax is computed independently.
What if the bill already includes a service charge?
Enter it separately so it is not counted twice, then decide whether you want any additional voluntary tip. The tool does not decide whether a charge is legally a gratuity.
Why do some people pay one cent more?
An equal share does not always fit whole cents. The remainder is distributed so the group pays the exact bill: in the example, 39.07, 39.07 and 39.06.
Can I enter the tax or tip as a fixed amount?
Yes. Enter the tax printed on the receipt, or choose a flat voluntary tip. No jurisdictional tax rate is inferred, and the tip base controls do not apply to a flat tip.
Does this calculate income tax on tips or split different meals?
No. It calculates a customer’s bill and equal shares. Payroll, withholding, tip pooling and itemized uneven splits are separate tasks. See the disclaimer.