API & MCP

Everything a person can do on Tip & Bill Split Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Tip & Bill Split Calculator

Enter the bill, the tax rule (included as in most of Europe, or added at the till as in the US) and a tip as a percentage or an amount, before or after tax. Split equally, by shares or by what each person ordered, round each share up to 0.50 or 1, and get an exact who-pays-what table that adds up to the cent.

Inputs of Tip & Bill Split Calculator
FieldTypeDefaultDescription
symboltext"€"Currency symbol. Display only, e.g. €, $, £, CHF.
billAmount (required)number84.5Bill amount. The amount printed on the bill (before tip).
taxModeselect (included, added, none)"included"Tax
taxPercentnumber19Tax rate
tipModeselect (percent, amount)"percent"Tip given as
tipPercentnumber10Tip percentage
tipAmountnumber0Tip amount
tipBaseselect (pre-tax, post-tax)"post-tax"Tip calculated on
splitModeselect (equal, shares, items)"equal"Split
peopleinteger4Number of people (equal split). Used when the list of people below is empty.
personstable—People. Optional for an equal split. Shares: weight per person (default 1). Items: the bill amount of what each person ordered, in the same terms as the bill (with tax if tax is included); anything not assigned is shared equally.
roundingselect (none, up-0.1, up-0.5, up-1, up-5, nearest-0.05)"none"Rounding per person. Any rounding difference is added to (or taken from) the tip.

Example request

Dinner for 4 in Germany, 84.50 incl. VAT, 10% tip, round up to 1

curl -X POST https://tipbillsplitcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"symbol":"€","billAmount":84.5,"taxMode":"included","taxPercent":19,"tipMode":"percent","tipPercent":10,"tipBase":"post-tax","splitMode":"equal","people":4,"rounding":"up-1"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "tip-bill-split-calculator": { "type": "http", "url": "https://tipbillsplitcalculator.usefulweb.site/mcp" }
  }
}