What this calculator does
The Money Change Calculator works out how much change a customer should receive on a cash transaction and then breaks that amount into the smallest practical number of banknotes and coins. It is a universal utility tool: it is not tied to any one region and lets you pick from common world currencies including the US Dollar (USD, the default), Euro (EUR), British Pound (GBP), Canadian Dollar (CAD), Australian Dollar (AUD), Mexican Peso (MXN), Philippine Peso (PHP), New Zealand Dollar (NZD) and Brazilian Real (BRL).
How to use it
Pick a currency and a mode. In "Calculate change" mode, enter the purchase price and the amount tendered; the tool computes the change as tendered minus purchase. In "Enter change amount" mode, you supply the change directly and skip the purchase math. The result shows the change due plus a table listing how many of each note and coin to hand over, largest first, and the total piece count.
The formula and algorithm
First the change is found: $$C = \text{Tendered} - \text{Purchase}$$ (or the entered amount). To avoid floating-point errors the amount is converted to whole subunits (cents) by multiplying by 100 and rounding. A greedy algorithm then loops over each denomination from largest to smallest, taking \(n_d = \left\lfloor \frac{r}{d} \right\rfloor\) of that piece and subtracting it from the remainder \(r \leftarrow r - n_d\,d\). For standard "canonical" coin systems such as USD, EUR and GBP, greedy gives the true minimum number of pieces.
Worked example
USD, purchase $7.50, tendered $20.00. Change $$= \$20.00 - \$7.50 = \$12.50 = 1250 \text{ cents}.$$ Greedy: one $10 (leaves 250c), one $2 (leaves 50c), one 50¢ coin (leaves 0). Result: \(1 \times \$10\), \(1 \times \$2\), \(1 \times 50\)¢ — 3 pieces in total.
Supported Currency Denominations
The calculator works in the smallest unit of each currency (cents, pence, centavos and so on) and fills the change from the largest denomination down. The tables below list the standard notes and coins for each supported currency. The set the tool uses may differ from what a real till holds. Some currencies have withdrawn small coins, some notes are rarely issued, and some businesses do not stock every coin. Always check against your own cash drawer.
USD (United States dollar)
| Type | Denominations |
|---|---|
| Notes | $100, $50, $20, $10, $5, $1 (a $2 note exists but is rarely used) |
| Coins | 25¢, 10¢, 5¢, 1¢ (50¢ and $1 coins exist but are uncommon in tills) |
EUR (euro)
| Type | Denominations |
|---|---|
| Notes | €200, €100, €50, €20, €10, €5 (the €500 note is no longer issued) |
| Coins | €2, €1, 50c, 20c, 10c, 5c, 2c, 1c (some eurozone countries round cash totals and do not use 1c and 2c coins) |
GBP (pound sterling)
| Type | Denominations |
|---|---|
| Notes | £50, £20, £10, £5 |
| Coins | £2, £1, 50p, 20p, 10p, 5p, 2p, 1p |
CAD (Canadian dollar)
| Type | Denominations |
|---|---|
| Notes | $100, $50, $20, $10, $5 |
| Coins | $2 (toonie), $1 (loonie), 25¢, 10¢, 5¢ (a 50¢ coin exists but is rarely circulated) |
Canada stopped distributing the 1¢ coin in 2012. Cash totals are rounded to the nearest 5¢, so penny change normally does not occur.
AUD (Australian dollar)
| Type | Denominations |
|---|---|
| Notes | $100, $50, $20, $10, $5 |
| Coins | $2, $1, 50c, 20c, 10c, 5c |
Australia withdrew the 1c and 2c coins in 1992. Cash totals are rounded to the nearest 5c, so a till normally gives change in 5c steps.
NZD (New Zealand dollar)
| Type | Denominations |
|---|---|
| Notes | $100, $50, $20, $10, $5 |
| Coins | $2, $1, 50c, 20c, 10c |
New Zealand withdrew the 1c and 2c coins in 1990 and the 5c coin in 2006. Cash totals are rounded to the nearest 10c.
MXN (Mexican peso)
| Type | Denominations |
|---|---|
| Notes | $1000, $500, $200, $100, $50, $20 |
| Coins | $10, $5, $2, $1, 50 centavos, 20 centavos, 10 centavos (the smallest coins are rarely used in practice) |
PHP (Philippine peso)
| Type | Denominations |
|---|---|
| Notes | ₱1000, ₱500, ₱200, ₱100, ₱50, ₱20 |
| Coins | ₱20, ₱10, ₱5, ₱1, 25 sentimo, 10 sentimo, 5 sentimo, 1 sentimo (the smallest coins are seldom handed out) |
BRL (Brazilian real)
| Type | Denominations |
|---|---|
| Notes | R$200, R$100, R$50, R$20, R$10, R$5, R$2 |
| Coins | R$1, 50 centavos, 25 centavos, 10 centavos, 5 centavos, 1 centavo (the 1 centavo coin is rarely used) |
Change Breakdown Scenarios
Each row uses the greedy method: take as many of the largest denomination as fit, then repeat with the remainder. The scenarios use the standard denominations above. The remainders were chosen so that rarely used pieces, such as the US half-dollar, a $2 note or the Canadian 50¢ coin, do not change the result.
| Currency | Purchase | Tendered | Change due | Breakdown | Total pieces |
|---|---|---|---|---|---|
| USD | $13.57 | $20.00 | $6.43 | 1 × $5, 1 × $1, 1 × 25¢, 1 × 10¢, 1 × 5¢, 3 × 1¢ | 8 |
| EUR | €7.35 | €20.00 | €12.65 | 1 × €10, 1 × €2, 1 × 50c, 1 × 10c, 1 × 5c | 5 |
| GBP | £3.88 | £10.00 | £6.12 | 1 × £5, 1 × £1, 1 × 10p, 1 × 2p | 4 |
| CAD | $18.65 | $50.00 | $31.35 | 1 × $20, 1 × $10, 1 × $1, 1 × 25¢, 1 × 10¢ | 5 |
| MXN | $235.50 | $500.00 | $264.50 | 1 × $200, 1 × $50, 1 × $10, 2 × $2, 1 × 50 centavos | 6 |
Checks: USD 5 + 1 + 0.25 + 0.10 + 0.05 + 0.03 = 6.43. EUR 10 + 2 + 0.50 + 0.10 + 0.05 = 12.65. GBP 5 + 1 + 0.10 + 0.02 = 6.12. CAD 20 + 10 + 1 + 0.25 + 0.10 = 31.35. MXN 200 + 50 + 10 + 4 + 0.50 = 264.50.
Worked example (USD): \(C = 20.00 - 13.57 = 6.43\), so \(R_1 = \operatorname{round}(100 \cdot 6.43) = 643\) cents. Then 643 ÷ 500 gives 1 note ($5) with 143 left, 143 ÷ 100 gives 1 note ($1) with 43 left, 43 ÷ 25 gives 1 quarter with 18 left, 18 ÷ 10 gives 1 dime with 8 left, 8 ÷ 5 gives 1 nickel with 3 left, and 3 ÷ 1 gives 3 pennies.
FAQ
Why does it normalize to cents? Working in whole subunits avoids errors like 12.499999 producing a stray penny.
What if I disable a denomination? The greedy breakdown still runs over the remaining denominations; if it cannot reach zero it reports the residual. Keep the smallest coin enabled to guarantee exact change.
Is greedy always optimal? For canonical national coin systems, yes. With unusual or disabled denomination sets it returns a valid but not always globally minimal breakdown.