curatedapi

Tip and bill split calculator

Tip amount, total and a fair split between people where the shares add up exactly to the bill.

Bill before the tip.
Tip in percent of the bill.
Number of people splitting the bill.
More options: rounding and decimals
Precision and rounding
Rounding mode applied once to each result. Default half_even.
Round results to this many digits after the decimal point.

Examples

Result: 18% tip on 64.50 for 2

Tip amount
The tip.
11.61 exact
Total
Bill plus tip.
76.11 exact
Per person
Total ÷ people, rounded.
38.06 exact
Shares
What each person pays; adds up exactly to total.
38.06, 38.05
People paying extra
How many shares carry one extra smallest unit.
1

Rounding: Half even, 2 decimal places. Calculator everyday/tip@1.

How it is calculated

tip = bill × p; shares = total split into whole cents, remainder spread one cent at a time

Adds a tip and splits the total. Splitting 100.00 three ways cannot give three equal amounts in cents, so the shares are 33.34, 33.33 and 33.33: they always add up to the total exactly, and the response says how many people pay one extra cent.

  • Amounts are plain numbers in any single currency; no currency conversion is done.
  • The tip is calculated on the bill amount you enter (usually before tax).

References

Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.

Use it from your code

POST /v1/calc/everyday/tipVersion 1
curl https://api.curatedapi.com/v1/calc/everyday/tip \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "bill_amount": "64.50",
    "tip_percent": "18",
    "people": 2
  }'
The same call in Python
import os

import requests

payload = {
    "bill_amount": "64.50",
    "tip_percent": "18",
    "people": 2,
}
response = requests.post(
    "https://api.curatedapi.com/v1/calc/everyday/tip",
    headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
    json=payload,
    timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
    "bill_amount": "64.50",
    "tip_percent": "18",
    "people": 2,
};
const response = await fetch("https://api.curatedapi.com/v1/calc/everyday/tip", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
console.log((await response.json()).result);

MCP tool calc_everyday_tip at https://mcp.curatedapi.com. Inputs, outputs and errors in the API reference.

Put it on your website

<div data-curatedapi-widget="everyday/tip" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>

Use a public key registered for your site. Calculations are billed like API calls. How widgets work.

Related calculators

Add this calculator to your website

Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.

Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.