general

Calculate tip and split a restaurant bill among multiple people. Given a bill amount, tip percentage, and number of diners, returns the tip amount, total with tip, per-person share, and effective tip percentage. Supports rounding up to the nearest whole number for convenience. Defaults to 18% tip for 1 person. Currency-agnostic — works with any monetary unit.

post/api/tip_calculator

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/tip_calculator
  • Auth: none declared

Request body

bill_amountnumber required

Total bill amount before tip (any currency).

tip_pctnumber

Tip percentage. Common values: 15 (standard), 18 (good), 20 (great), 25 (excellent). Defaults to 18%.

splitnumber

Number of people splitting the bill. Defaults to 1 (no split).

round_upboolean

Round the total up to the nearest whole number. Defaults to false.

Response

Computed result for tip_calculator

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.