What this calculator does
Calculate change due and break it into common U.S. bills and coins using the fewest pieces.
How it works
The calculator evaluates change due = amount tendered − purchase amount; denominations are selected greedily in descending value. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
2-
?purchaseAmount=Purchase amountMoney · Required · Default: 37.42
-
?amountTendered=Amount tenderedMoney · Required · Default: 50
Outputs
4-
changeDueChange dueCurrency · Primary output
-
pieceCountBills and coins returnedWhole number
-
amountShortAmount still owedCurrency
-
statusStatusText
Inputs and results
The inputs are Purchase amount, Amount tendered. Results include Change due, Bills and coins returned, Amount still owed, Status.