inyourbrowser.com

Tip calculator

Tip calculator is a calculator tool that splits a restaurant bill across up to 20 guests with a custom tip percentage. It supports common presets, custom rates, and an optional round-up for easier cash payment, and shows per-person and total figures. The tool runs in your browser.

Tip total: 10.80. Per person: 35.40.

Tip percentage

Number of guests

2
35.40per person (2 guests)
Tip per person
5.40
Total tip
10.80
Bill total
70.80
Bill per person
30.00

How to calculate a tip

  1. Enter your bill amount.
  2. Choose a tip percentage from the presets or type a custom value.
  3. Set the number of people sharing the bill.
  4. See the tip per person, total per person, and the grand total.

Common uses

Technical specification

  • Algorithm or formula: Tip amount = bill * (tipPercent / 100). Grand total = bill + tip. Per-person share = total / guests. Round-up option applies Math.ceil() to each per-person figure.
  • Browser API or library: Pure JavaScript arithmetic; no external library.
  • Input limits: Bill above 0. Tip percent 0–100. Guests 1–20.
  • Output: Tip amount, grand total, tip per person, and total per person. Updates instantly as you adjust any field.
  • Known limitations: Equal-split only; no per-item or per-person bill breakdown. Round-up increases the effective tip percentage slightly to balance the cash.

Frequently asked questions

What tip percentage should I leave?
Common guidelines vary by location. In the UK, 10–15% is typical for table service. In the US, 15–20% is standard with 18–20% common in most restaurants. This calculator accepts any value from 0 to 100.
How does the per-person split work?
The total bill plus tip is divided equally by the number of guests. Each person's tip share and total share are shown separately so you can see both the tip contribution and the full amount each person owes.
What does the round-up option do?
The round-up option applies Math.ceil() to each person's total, rounding up to the nearest whole number. This makes cash splitting easier and slightly increases the tip amount.
Is my data sent to a server?
All calculations run locally in your browser using JavaScript. Our servers are not involved at any point.

Related tools

Percentage calculator
Calculate percentages three ways: X% of Y, X is what % of Y, and percentage change.
Discount calculator
Calculate sale price and savings from a percent-off discount. Handles single or stacked discounts.
Salary calculator
Convert between hourly and annual pay, with weekly, bi-weekly, and monthly figures. Estimate take-home pay.

Reviewed and tested September 30, 2026.