# Split bill > How much should each person pay? Divide one bill by uneven shares, down to the last cent, with shares that always add up. Split a restaurant bill or shared cost by uneven shares: give each person a weight and see what everyone pays, in any currency, adding up to the cent. - Page: https://how.box/split-bill/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/split-bill/?a={a}&c={c}&r={r} - `a` (number 0 to 1e7): The bill in major units of c. Example: `100`. - `c` (AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XCD, XCG, XDR, XOF, XPF, XSU, YER, ZAR, ZMW, ZWG or ZWL): ISO 4217 denomination; never converts the amount. Example: `EUR`. - `r` (array): Ordered rows, versioned: ~2:id[.weight]_id[.weight]… (weight 1 omitted). Example: `[object Object],[object Object]`. Example answer: https://how.box/split-bill/?a=100&c=EUR&r=%7E2%3Ap1_p2.2 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `split_bill_calculate`: Split one bill between 2–20 people by integer share weights. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"split_bill_calculate","arguments":{"amount":100,"currency":"EUR","rows":[{"id":"p1","weight":1},{"id":"p2","weight":2}]}}}` - GET: https://how.box/mcp/run/split_bill_calculate?amount=100¤cy=EUR&rows=%5B%7B%22id%22%3A%22p1%22%2C%22weight%22%3A1%7D%2C%7B%22id%22%3A%22p2%22%2C%22weight%22%3A2%7D%5D ## How it works Shares describe how the bill is divided relative to each other. A person with share 2 pays twice as much as a person with share 1, and equal shares split the bill evenly. Each person's part is their share divided by the sum of all shares, the same part-of-a-whole idea as a percentage (OpenStax Prealgebra 2e, section 6.1). For a bill T and shares w₁ … wₙ adding up to W, person i pays T × wᵢ / W. Money cannot always be divided exactly. The bill is counted in the currency's smallest unit, such as the cent, and everyone's share is first rounded down. The few units left over go one each to the shares that lost the most in rounding. So €100 split three ways is €33.34, €33.33 and €33.33, and the shares always add up to the bill. Tips, taxes and cash rounding are not included. ## FAQ **Can shares be unequal?** Yes. Give someone share 2 and they pay twice as much as someone with share 1. Any whole numbers from 1 to 1000 work. **Why does one person pay a cent more?** When the bill does not divide evenly, the leftover cents go to the people whose exact share was cut the most, earlier rows first on a tie. That keeps the total right. **Can I split a bill in yen?** Yes. Choose any currency; the split uses its smallest unit, so yen are split into whole yen. Changing the currency never converts the amount. **Are tips included?** No. Add a tip to the bill total first if you want it shared the same way. **What is saved in a shared link?** Only the bill, the currency and the list of shares. People are numbered, never named, and nothing is stored on a server. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)