A change maker (cash register) calculator works out how much change to give a customer and breaks it into the smallest number of notes and coins. It is handy for shop tills, market stalls, teaching arithmetic and double-checking change. Enter the amount owed and the amount paid, and you instantly get the change due plus a denomination breakdown.
How it works
The tool first converts both amounts to whole minor units (cents or pence) to avoid floating-point errors, then subtracts to find the change. It breaks that change down with a greedy algorithm: starting from the largest denomination (100, 50, 20, 10, 5, 2, 1, then 0.50, 0.25, 0.20, 0.10, 0.05, 0.02, 0.01), it takes as many of each as fit, subtracts, and moves down. For standard 1/2/5-style currencies this gives the fewest pieces. If the amount paid is less than owed, it shows the shortfall instead.
Example
A bill of 7.43 paid with 10.00:
change = 10.00 − 7.43 = 2.57
| Denomination | Count |
|---|---|
| 2 | 1 |
| 0.50 | 1 |
| 0.05 | 1 |
| 0.02 | 1 |
That is 2 + 0.50 + 0.05 + 0.02 = 2.57, using just four pieces. Everything runs in your browser with nothing uploaded.
Why fewest coins matters
A change breakdown with the smallest number of notes and coins benefits everyone at a busy till. The cashier handles fewer pieces, the queue moves faster, and the customer receives change that is easy to count and pocket. The greedy algorithm — always taking the largest denomination that fits — produces the fewest pieces for standard denomination systems because those systems are specifically designed so that the greedy approach is optimal.
When greedy is not optimal
The greedy algorithm can fail for non-standard coin sets. For example, with denominations of 1, 3, and 4 (and change of 6 needed), greedy picks 4 + 1 + 1 (three coins) where two 3s would be better (two coins). This is a well-known computer science puzzle and the basis of the classic dynamic-programming “coin change” problem. In everyday currency (1/2/5 multiples), this situation never arises — the greedy solution is provably optimal.
Teaching change-making
This tool is also useful in primary and secondary education for practising mental arithmetic around money. A common classroom exercise is:
- Show students the amount owed and the amount paid.
- Ask them to work out the change on paper or mentally.
- Verify with the calculator and check the denomination breakdown.
The denomination breakdown helps students think about money not just as an abstract number but as real notes and coins. The step from “change = 2.57” to “that’s a 2, a 50p, a 5p, and a 2p” builds the kind of practical numeracy that tests often miss.
Using it for event pricing and market stalls
When running a market stall or event, pricing in round numbers that minimise change (multiples of the smallest available denomination in your float) speeds up every transaction. If your float has mostly 1-unit coins, pricing items at whole units avoids coin handling entirely. If you price at 7.50, every 10-unit note requires only two coins back. Running your expected prices through this calculator before the event lets you plan your float denominations to minimise the number of pieces you need on hand.