Change Calculator Coins: How It Works
- Fewest coins/notes
- Result
- Amount tendered
- 20 $
- You entered
- Purchase amount
- 13.75 $
- You entered
A change calculator coins tool works out the exact coins you should give back as change when a customer pays with cash. You enter the amount owed and the cash tendered, and it returns the minimum number of coins (and notes) that make up the difference. This guide explains the math behind it, how to use it, and what to watch out for.
Formula
The core formula is simple: Change = Amount Tendered − Purchase Amount. For example, if a customer hands you $20.00 for a $13.75 purchase, the change is $6.25. The calculator then breaks that $6.25 into the fewest coins and notes possible, using the standard denominations: $100, $50, $20, $10, $5, $2, $1, 50¢, 20¢, 10¢, 5¢, and 1¢ (or your local set).
The greedy algorithm is used: start with the largest denomination, subtract as many as possible, then move to the next smaller one. This always gives the minimum number of coins for standard currency systems.
Worked Example
Using the default values: tendered $20.00, purchase $13.75.
- Change = $20.00 − $13.75 = $6.25
- Convert to cents: 625 cents
- Largest coin/note ≤ 625: $5 (500 cents), remainder 125
- Next: $1 (100), remainder 25
- Next: 20¢ (20), remainder 5
- Next: 5¢ (5), remainder 0
So the change is one $5 note, one $1 coin, one 20¢ coin, and one 5¢ coin – 4 pieces total. The calculator shows $6.25 as the change and 4 as the fewest pieces.
How to Use the Calculator
Enter the amount the customer gave you (tendered) and the purchase total. The calculator instantly shows the change amount and the smallest number of coins/notes needed. You can also use it in reverse: if you know the change amount, set the purchase to $0 and tendered to the change value.
For cash registers, this tool helps verify manual calculations or train new staff. It’s also handy for budgeting – for instance, if you need to make change for a $50 bill, you can see the breakdown.
Choosing the Right Denominations
Different countries have different coin sets. The calculator uses a generic set that matches many currencies, but you can adapt it. For example, if you’re in the US, you’d use $20, $10, $5, $1, quarters, dimes, nickels, pennies. In the UK, you’d use £20, £10, £5, £2, £1, 50p, 20p, 10p, 5p, 2p, 1p. The greedy algorithm works for all these systems because each denomination is at least twice the next smaller one (except for some odd cases like the 20¢ and 50¢, but it still works).
Common Mistakes and Misconceptions
- Forgetting the penny: In many places, the 1-cent coin is still legal tender, but some countries round to the nearest 5 cents. Always check local rounding rules.
- Mixing up notes and coins: Some currencies have both a $2 coin and a $2 note; the calculator assumes you use the coin if it exists, but either works.
- Rounding errors: Always work in cents to avoid floating-point issues. For example, $20.00 − $13.75 = $6.25 exactly, but $0.10 − $0.09 = $0.01, which can be tricky with binary floats.
- Assuming the greedy algorithm always works: It does for standard coin systems, but not for all possible sets. For instance, if you had a 30¢ coin and a 40¢ coin, the greedy would fail for 60¢ (it would give 40+20, but 30+30 is better). But real currencies are designed to avoid this.
Costs and Practical Considerations
Using a change calculator is free and instant. In a physical store, you don’t need special software – a simple calculator or even mental math works. However, for high-volume cash handling, automated cash drawers or POS systems do this automatically. The main cost is time if you’re doing it manually, but the calculator minimizes that.
Alternatives to a Change Calculator
If you don’t have a calculator, you can count up from the purchase amount to the tendered amount. For example, for $13.75 to $20.00: count 25¢ to $14.00, then $1 to $15.00, then $5 to $20.00. That gives you 25¢, $1, and $5 – same result. Many cashiers use this “counting up� method because it’s intuitive and reduces errors.
Another alternative is a mobile app that does the same thing, but the formula is so simple that a basic calculator suffices.
Limitations of the Formula
The calculator assumes you have all denominations available. In reality, you might run out of quarters or $1 bills, so you’d have to give larger coins instead. Also, it doesn’t account for cash-back or split payments. Finally, it only handles a single transaction; for multiple items, you’d need to sum the purchases first.
Frequently Asked Questions
How do I calculate change in my head?
Count up from the purchase price to the amount tendered. Start with the smallest coin that gets you to a round number, then work up. For example, $13.75 to $20: add 25¢ to $14, then $1 to $15, then $5 to $20. That’s 25¢ + $1 + $5 = $6.25.
What if I don’t have the exact coins?
You can give a larger denomination and receive less change back, but that’s not ideal. For instance, if you owe 25¢ but only have a $1 coin, you’d give $1 and ask for 75¢ back. That’s awkward, so it’s better to keep a float of small coins.
Does the greedy algorithm always give the fewest coins?
For standard currency systems, yes. But for arbitrary coin sets, no. For example, with coins of 1, 3, and 4, the greedy for 6 gives 4+1+1 (3 coins), but 3+3 is better (2 coins). Real currencies are designed so the greedy works, but it’s not a universal law.
How do I handle rounding in countries without pennies?
Some countries (like Canada) have phased out the penny and round cash transactions to the nearest 5 cents. In that case, you’d round the change amount first, then break it down. For example, $6.26 would round to $6.25.
Can I use this calculator for multiple items?
Yes, but you need to enter the total purchase amount. The calculator doesn’t sum items for you; you’d have to add them up first. Alternatively, use a calculator that can sum a list of prices.
Related
Formula used
in t | Amount tendered | $ | 20.00 | 0 in d | Purchase amount | $ | 13.75 | 0 out change | Change due | $ | t - d | 2 out coins | Fewest coins/notes | - | floor(change * 100) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.