Change Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Type what the customer owes and what they paid. You get the change due and how to count it out with the fewest bills and coins.
Result
Change due ($; negative = still owed)
$100 bills
- $50 bills
- $20 bills
- $10 bills
- $5 bills
- $1 bills
- Quarters (25¢)
- Dimes (10¢)
- Nickels (5¢)
- Pennies (1¢)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Amount due, in dollars: enter 0 or more.
- Cash received, in dollars: enter 0 or more.
- Read the result: Change due ($; negative = still owed); the panel also shows $100 bills, $50 bills, $20 bills, $10 bills, $5 bills, $1 bills, Quarters (25¢), Dimes (10¢), Nickels (5¢) and Pennies (1¢).
How this calculator works
Change = cash received − amount due, worked in whole cents so that no rounding error creeps in.
The breakdown is the greedy method: take as many of the largest bill as fit, then move to the next one down, ending with pennies. With US denominations ($100, $50, $20, $10, $5, $1, 25¢, 10¢, 5¢, 1¢) this gives the fewest pieces.
$2 bills, half dollars and dollar coins are left out of the breakdown. A negative result means the customer has not paid enough; the breakdown then shows zero.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Amount due | $ | |
| Cash received | $ | |
| Result of step 1 | ||
| Change due (negative = still owed) | $ | |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
Worked example
| Amount due | $37.42 |
|---|---|
| Cash received | $50 |
| $100 bills | 0 |
|---|---|
| $50 bills | 0 |
| $20 bills | 0 |
| $10 bills | 1 |
| $5 bills | 0 |
| $1 bills | 2 |
| Quarters (25¢) | 2 |
| Dimes (10¢) | 0 |
| Nickels (5¢) | 1 |
| Pennies (1¢) | 3 |
Change due ($; negative = still owed) $12.58
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How do I count back change?
Start from the amount due and add coins, then bills, until you reach the cash received. For $37.42 paid with $50, count 3 pennies to $37.45, a nickel to $37.50, 2 quarters to $38, 2 ones to $40 and a ten to $50.
What if the store rounds cash totals?
Enter the rounded total as the amount due; the breakdown then works from that figure.