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

Ready to run the numbers?

Open Tip & Split Calculator