Calculators
Tip & bill split calculator API
Compute a tip (on pre- or post-tax base) and split the grand total evenly across N people, rounding each share up to the cent so the table never underpays. Answers 'split an $80 bill 4 ways with 20% tip', 'how much each with tip', 'tip on pre-tax amount'.
Price$0.01per request
MethodPOST
Route/v1/calc/budget-tip-split
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
budgettipsplitbillrestaurantgratuitycalculatormoney
API URL
Integration docshttps://x402.hexl.dev/v1/calc/budget-tip-splitExample request
{
"bill": 80,
"tipPercent": 20,
"people": 4
}Example response
{
"bill": 80,
"tipPercent": 20,
"tipAmount": 16,
"total": 96,
"people": 4,
"perPerson": 24,
"collectedTotal": 96,
"rounding": 0
}Input schema
{
"type": "object",
"required": [
"bill"
],
"properties": {
"bill": {
"type": "number",
"description": "Total bill in dollars",
"examples": [
80
]
},
"tipPercent": {
"type": "number",
"description": "Tip percent (default 18)",
"examples": [
20
]
},
"people": {
"type": "number",
"description": "Number of people (default 1)",
"examples": [
4
]
},
"tipOnPreTax": {
"type": "boolean",
"description": "Tip on the pre-tax amount instead of the full bill"
},
"tax": {
"type": "number",
"description": "Tax portion of the bill in dollars (used when tipOnPreTax)"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}