x402AgentTools

🍽️Tip Calculator

Calculate the tip for any bill, the grand total, and how much each person pays when splitting. Defaults to a 15% tip.

Worked examples

64.50 with 15% tip

GET /api/v1/calculators/tip-calculator?bill=64.5&tipPercent=15&people=1

Result: 74.18

120 with 20% tip, 4 people

GET /api/v1/calculators/tip-calculator?bill=120&tipPercent=20&people=4

Result: 144

35 with 10% tip

GET /api/v1/calculators/tip-calculator?bill=35&tipPercent=10&people=1

Result: 38.5

Machine API (x402)

$0.001 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/calculators/tip-calculator?bill=64.5&tipPercent=15&people=1 HTTP/1.1
Host: agenttools-hub.vercel.app

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "calculators/tip-calculator",
  "input": {"bill":64.5,"tipPercent":15,"people":1},
  "result": { "value": 74.175, "answer": "74.18" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

Work out the tip on any bill in one step: choose a percentage (15% preloaded), see the tip amount and grand total, and split the total evenly across any number of people.

tip = bill × tip% ÷ 100 · total = bill + tip · per person = total ÷ people

Frequently asked questions

How much should I tip?

Customs vary by country. In the US, 15–20% at restaurants is standard; in much of Europe service is included and smaller tips are normal. This calculator works for any percentage.

Should I tip on the pre-tax or post-tax amount?

Etiquette guides usually suggest tipping on the pre-tax amount, but many people simply tip on the bill total for convenience.

Related tools