Tip & Split Calculator Formula

Understand the math behind the tip & split calculator. Each variable explained with a worked example.

Formulas Used

Total Tip

tip_amount = tip_total

Total with Tip

total_bill = grand_total

Each Person Pays

per_person = grand_total / num_people

Variables

VariableDescriptionDefault
bill_amountBill Amount(USD)86.5
tip_pctTip Percentage(%)18
num_peopleNumber of People4
tip_totalDerived value= bill_amount * tip_pct / 100calculated
grand_totalDerived value= bill_amount + tip_totalcalculated

How It Works

How to Calculate Tip and Split a Bill

First compute the tip by multiplying the bill by the tip percentage. Then add the tip to the bill and divide by the number of people.

Formula

Tip = Bill x (Tip % / 100)

Per Person = (Bill + Tip) / Number of People

Worked Example

An $86.50 dinner bill with 18% tip split among 4 people.

bill_amount = 86.5tip_pct = 18num_people = 4
  1. 01Tip = $86.50 x 18/100 = $15.57
  2. 02Total = $86.50 + $15.57 = $102.07
  3. 03Per person = $102.07 / 4 = $25.52

Frequently Asked Questions

How much should I tip at a restaurant?

15% is considered standard for adequate service, 18-20% for good service, and 20-25% for exceptional service. Some diners tip based on the pre-tax amount.

Should I tip on the pre-tax or post-tax amount?

Either is acceptable. Tipping on the pre-tax amount is technically correct, but many people tip on the total for simplicity.

How do I round the tip for easy splitting?

Round the total (bill + tip) up to the nearest number easily divisible by the group size. This makes splitting simpler.

Learn More

Guide

How to Calculate a Tip - Complete Tipping Guide

Learn how to calculate a tip at restaurants, salons, and other services. Covers standard percentages, mental math shortcuts, and how to split the bill fairly.

Ready to run the numbers?

Open Tip & Split Calculator