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_totalTotal with Tip
total_bill = grand_totalEach Person Pays
per_person = grand_total / num_peopleVariables
| Variable | Description | Default |
|---|---|---|
bill_amount | Bill Amount(USD) | 86.5 |
tip_pct | Tip Percentage(%) | 18 |
num_people | Number of People | 4 |
tip_total | Derived value= bill_amount * tip_pct / 100 | calculated |
grand_total | Derived value= bill_amount + tip_total | calculated |
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
- 01Tip = $86.50 x 18/100 = $15.57
- 02Total = $86.50 + $15.57 = $102.07
- 03Per person = $102.07 / 4 = $25.52
Ready to run the numbers?
Open Tip & Split Calculator