How it works
This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.
Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.
Formulas used by this calculator
The Pizza Tip Calculator works with 42 quantities and 27 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.
- No people (
no_people) = x
- x (
x) = no_people
- Input tip percent (
input_tip_percent) = input_tip/bill
- Input tip (
input_tip) = bill × input_tip_percent
- Bill (
bill) = input_tip/input_tip_percent
- Recommended tip amount (
recommended_tip_amount) = (((service > 0) ? ( max(distance + weather + 3, bill × service + distance + weather) ) : ( 0 )))
- Recommended tip percent (
recommended_tip_percent) = ((((service > 0) ? ( max(distance + weather + 3, bill × service + distance + weather) ) : ( 0 )))/bill)
- Total (
total) = (((custom_tip > 0) ? ( bill + (((service > 0) ? ( max(distance + weather + 3, bill × service + distance + weather) ) : ( 0 ))) ) : ( bill + input_tip )))
19 further rearrangements of the same relations let you solve for other quantities.
Inputs
| Field | Name in formulas | Can be solved for |
| x | x | Yes |
| Bill | bill | Yes |
| Total | total | Yes |
| Deliver | deliver | Input only |
| Service | service | Input only |
| Weather | weather | Input only |
| Distance | distance | Input only |
| No slice | no_slice | Input only |
| Input tip | input_tip | Yes |
| No people | no_people | Yes |
| Custom tip | custom_tip | Input only |
| Equal bill | equal_bill | Yes |
| Equal split | equal_split | Input only |
| Uneaten cost | uneaten_cost | Yes |
| Person 1 final | person_1_final | Yes |
| Person 2 final | person_2_final | Yes |
| Person 3 final | person_3_final | Yes |
| Person 4 final | person_4_final | Yes |
| Person 5 final | person_5_final | Yes |
| Person 6 final | person_6_final | Yes |
| Person 7 final | person_7_final | Yes |
| Person 8 final | person_8_final | Yes |
| Person 1 slices | person_1_slices | Input only |
| Person 2 slices | person_2_slices | Input only |
| Person 3 slices | person_3_slices | Input only |
| Person 4 slices | person_4_slices | Input only |
| Person 5 slices | person_5_slices | Input only |
| Person 6 slices | person_6_slices | Input only |
| Person 7 slices | person_7_slices | Input only |
| Person 8 slices | person_8_slices | Input only |
| Price per slice | price_per_slice | Yes |
| Person 1 initial | person_1_initial | Yes |
| Person 2 initial | person_2_initial | Yes |
| Person 3 initial | person_3_initial | Yes |
| Person 4 initial | person_4_initial | Yes |
| Person 5 initial | person_5_initial | Yes |
| Person 6 initial | person_6_initial | Yes |
| Person 7 initial | person_7_initial | Yes |
| Person 8 initial | person_8_initial | Yes |
| Input tip percent | input_tip_percent | Yes |
2 more inputs are available in the calculator form.