JavaScript Tip Calculator: Live Bill, Tip %, and Split

JavaScript Tip Calculator

Type the bill and watch the gratuity, grand total, and per-person share update live. Tap a quick tip percentage, split the check any number of ways, choose whether to tip on the pre-tax or post-tax amount, and round up to a clean dollar.

🍽Real Tipping Presets

⚡Quick-Tap Tip Percent

Tapping a percentage fills the tip field and recalculates instantly. The bill field also updates the results live as you type.

📝Bill and Split Inputs

Type here and the totals refresh in real time.

Use the quick-tap buttons above or type any custom percent.

Tip amount $0 gratuity on the bill
Grand total $0 bill + tax + tip
Total per person $0 grand total split
Tip per person $0 gratuity share each

🔢How The Math Works

BBill base
p%Tip percent
nPeople splitting
BĂ—pTip amount

📊Tip Percent Quick Reference

Bill10%15%18%20%25%
$10$1.00$1.50$1.80$2.00$2.50
$20$2.00$3.00$3.60$4.00$5.00
$35$3.50$5.25$6.30$7.00$8.75
$50$5.00$7.50$9.00$10.00$12.50
$80$8.00$12.00$14.40$16.00$20.00
$120$12.00$18.00$21.60$24.00$30.00
$200$20.00$30.00$36.00$40.00$50.00

đź§ľTip Etiquette By Service

ServiceCustomaryGreat ServiceNotes
Sit-down restaurant18% to 20%22% to 25%Tip on pre-tax when you can
Counter or coffee0% to 15%15% to 20%A dollar or two is common
Food delivery15% to 20%20% plusMore in bad weather
Bartender$1 to $2 per drink20% of tabOr 20% of the full tab
Buffet10%15%Staff still clear plates
Taxi or rideshare10% to 15%20%Round up for short rides
Hairstylist15% to 20%25%Tip the assistant too

👥Split The Check Reference

Grand Total2 People3 People4 People5 People6 People
$40$20.00$13.33$10.00$8.00$6.67
$60$30.00$20.00$15.00$12.00$10.00
$90$45.00$30.00$22.50$18.00$15.00
$120$60.00$40.00$30.00$24.00$20.00
$150$75.00$50.00$37.50$30.00$25.00
$200$100.00$66.67$50.00$40.00$33.33

đź”—Round-Up Comparison Grid

Bill20% TipExact TotalRound UpAddedEffective %
$23.40$4.68$28.08$29.00$0.9223.9%
$41.75$8.35$50.10$51.00$0.9022.2%
$52.10$10.42$62.52$63.00$0.4820.9%
$67.30$13.46$80.76$81.00$0.2420.4%
$88.90$17.78$106.68$107.00$0.3220.4%
$114.55$22.91$137.46$138.00$0.5420.5%

⚙Full Formula Breakdown

Bill baseThe tip base is the pre-tax bill by default. If you choose post-tax, the base becomes bill + sales tax so the gratuity is figured on the taxed amount.
Sales taxWhen tax adds on top, tax = bill Ă— tax rate. When the bill already includes tax, the pre-tax portion is bill / (1 + tax rate) and tax is the remainder.
Tip amountTip = tip base Ă— tip percent / 100. A $60 base at 20% gives $60 Ă— 0.20 = $12.00 in gratuity.
Grand totalTotal = pre-tax bill + sales tax + tip. This is the full amount you pay, before any optional rounding.
Per personPer person = grand total / number of people. Tip per person = tip / number of people so each share is equal.
Round up totalRound up bumps the grand total to the next whole dollar, then any extra cents raise the effective tip a little. Nearest rounds to the closest dollar instead.
Effective tip %Effective tip % = tip / pre-tax bill Ă— 100. Rounding up nudges this figure above your chosen percent by the rounded pennies.

đź“‹Reference Values

InputCommon EntryHow It Is UsedEffect On Result
Bill amount$10 to $250Sets the tip baseDrives every card live
Tip percent10% to 25%Base Ă— percent / 100Raises tip and total
People1 to 12Divides the totalsLowers per-person share
Tax rate0% to 10%Adds tax to the billRaises total, may raise tip
Tip base modePre or post taxChooses the basePost-tax gives a bigger tip
RoundingUp or nearestCleans the totalNudges effective tip %

đź’ˇPractical Tipping Tips

Live entry tip: You never need to press a button. Start typing the bill and every card, including tip, grand total, and each person's share, updates instantly as the number changes.
Fair split tip: Splitting the grand total keeps tax and tip shared evenly. If one person ordered far more, split the bill first and apply the same tip percent to each subtotal.

It is that point in your meal, somewhere between “just long enough” and the awkward moment when someone has to get the check. It is a moment when everyone is thinking: did I have the appetizer but only one course? And he got the salad too, so is it even fair if we split it 3-ways? It is a battle between math and social anxiety.

This is the kind of thing that makes most people pull out their phone calculators and get stuck in a debate over percentages with themselves. That awkward pause are removed here because this app updates the totals instantly as you type. This allows you to change the split or total amount without having to press anything and wait for it to reload. In other words, it lets you go back to worrying about getting home instead of wondering how many pennies to spare.

How to Use the Tipping Calculator

Determining which tip percentage to select isn’t about following strict rules, but about understanding the service environment. Eighteen to twenty percent will typically apply when someone is curating your dining experience, such as during a sit-down meal where they are actively working the table. Coffee shops and counter service environments follows a different model, using smaller percentages or tipping into jars, given that these interactions are transactional rather than personal.

In addition to a quick-tap button for each, the calculator also displays the impact of common rates (such as 10%, 15%, 18% and 25%) at a glance. Seeing results helps you visualize whether you’d like to round-up for exceptional service, or stay put at the base amount for a standard experience.

There is a reference table on the page to help you know what to expect. It breaks down tipping guidelines by common bill sizes to give you a mental benchmark before you pull out your wallet.

What’s most challenging about today’s tipping: Should you calculate your tip based off the pre-tax price or the post-tax cost? Most etiquette authorities say that since sales tax is a governmental charge rather than a service fee, you should base your tip on the subtotal before taxes gets applied. (Local custom varies, though, in certain places it’s expected to tip on the gross total; others feel it means over-paying for a governmental charge.) To reflect your preference, there’s a toggle for that option within the calculator.

Tipping pre-tax tends to keep things easier and often leads to smaller tip. This will make a big difference if you’re dining at a restaurant with high tax rates or expensive wine. That couple of bucks can mean the difference between several dollars up or down on a big meal out with friends.

Splitting the bill evenly is path of least resistance. But that’s never really what happens with wildly differing orders. If the group ordered the same amount, they can just enter the party size into the calculator to divide the total. For all other occasions, where one person went out to eat twice as much as others, splitting the bill evenly look like you’re being too nice to the big-eater, or not nice enough to the little eaters.

On these occasions, the best approach is to find out each person’s separate bill. Then, add the same tip percentage to each bill and total all individual costs together. That way everyone’s paid exactly what they should, including their appropriate portion of the gratuity. To help do this, the calculator lets you change the number of heads at a table, and watch as the price-per-head adjust accordingly in realtime.

Small decisions accumulate; one such place is rounding. Rounding to the nearest dollar makes things convenient and is also perhaps a little bonus for the server (though some may find that exact cents are more important). If you want to have the option of rounding to the nearest dollar or up, you can select this in the calculator, which will change the actual tip percentage a little bit.

If your bill is $28 and you round up to $29, then you’re tipping just under a dollar more, which moves the rate up by a tiny bit compared than the percentage you specified. It is a very small difference on its own, but it represents a deliberate decision about whether you favor precision over generosity. There’s a breakdown section to show exactly what you’re tipping above-and-beyond for rounding. No surprises!

Tipping boils down to a social contract: be transparent and contribute fairly. It’s not rocket science to pay the bill graciously; just create a system that minimizes mental effort at the moment. Visualize how different options for rounding, splitting the bill, and tax impact the bottom line. Make the decision that feels respectful towards service staff and right by your wallet.

With the live updates, you’re never committed to anything until you’re certain you want it, no more pressure to decide quickly! When the next check arrives, you’ll already know the answer, even before they ask.

You should of seen how easy this is. It could of been much harder without the app. The moddern way to tip is simple. It looks naturaly easy when you use it. Making sure you recieve every penny is important. One shouldn’t feel uncomfortably about the math.

JavaScript Tip Calculator: Live Bill, Tip %, and Split