How to calculate a tip
Short answer
Multiply the bill by the tip percentage as a decimal: for 18% on $50, that is 50 x 0.18 = $9. Add it to the bill for the total, then divide by the number of people to split it.
The formula
A tip is a percentage of the bill. Convert the percentage to a decimal (divide by 100) and multiply. See how to calculate a percentage for the underlying math.
tip = bill * (percent / 100)
total = bill + tip
each = total / peopleExample: a $50 bill at 20% is 50 x 0.20 = $10 tip, $60 total. Split between 3 people that is $20 each.