The formula
Tip = bill × tip % ÷ 100
Each pays = (bill + tip) ÷ people
Worked example
A bill of 80 with a 15% tip is 80 × 0.15 = 12 in tips and 92 in total. Split between 4 people, each pays 23.
Check the bill first
Tipping customs differ widely between countries, and some restaurants already add a service charge. Look for one on the bill before adding a tip, and decide whether to tip on the amount before or after tax.