Skip to main content

Change Calculator

How to Use This Change Calculator

The change calculator above answers the oldest question in retail: the customer owes one amount and hands over another, so what bills and coins come back? Enter the two numbers, and the calculator returns the exact change plus the optimal breakdown from $100 bills down to pennies, using the fewest pieces possible. Follow these steps to make perfect change every time.

  1. Enter the amount due in dollars. This is the total the customer owes, including sales tax and any fees. The default is $13.37. Always use the after-tax register total, not the shelf price, or your change will be short by the tax.
  2. Enter the amount paid in dollars. This is the cash the customer actually handed over, $20 in the default example. Enter the face value of the bills and coins received, counted before you open the drawer.
  3. Click the Make Change button. The calculator subtracts amount due from amount paid. If the result is positive, that is the change owed. If the customer underpaid, it shows the shortfall instead so you know exactly how much more to collect.
  4. Read the change due. The headline number, $6.63 in the example, is the total value you must hand back. Double-check it mentally: $20.00 – $13.37 = $6.63.
  5. Follow the denomination breakdown top to bottom. Each row shows how many of each bill or coin to give: 1 five-dollar bill, 1 one-dollar bill, 2 quarters, 1 dime, and 3 pennies in the example. Work from the largest denomination down so you never lose your place.
  6. Verify the rows add up. Multiply count by value per row and sum: $5.00 + $1.00 + $0.50 + $0.10 + $0.03 = $6.63. If the rows do not sum to the headline, recount before closing the drawer.
  7. Count it back to the customer. Place the coins in the customer hand first, then the bills, announcing the running total as you go. This old cashier habit catches errors while the money is still in your hand.

Two sanity checks keep you honest. First, the direction test: increasing the amount paid must increase the change, and increasing the amount due must decrease it. Second, the exact-payment test: entering the same number in both fields must produce $0.00 change. If either check fails, re-enter the amounts.

About Making Change

Making change is applied subtraction with a physical twist: the difference between amount paid and amount due must be returned using real denominations, the bill and coin values a currency provides. United States denominations in common circulation are the $100, $50, $20, $10, $5, and $1 bills and the quarter (25 cents), dime (10 cents), nickel (5 cents), and penny (1 cent). The $2 bill and the half-dollar exist but rarely appear in drawers, so most systems, including this calculator, stick to the everyday set.

The standard method is the greedy algorithm: repeatedly take the largest denomination that does not exceed the remaining change. For $6.63, that means a $5 bill (leaving $1.63), a $1 bill (leaving $0.63), a quarter (leaving $0.38), another quarter (leaving $0.13), a dime (leaving $0.03), and three pennies. For United States denominations the greedy choice is provably optimal: it always yields the fewest coins and bills possible. Fewer pieces means faster counting, lighter pockets, and fewer chances to miscount.

Cashiers traditionally learn the count-up method instead of subtraction. Starting from the amount due, you add coins and bills until you reach the amount paid, announcing each stop: from $13.37, three pennies reach $13.40, a dime reaches $13.50, two quarters reach $14.00, a one reaches $15.00, and a five reaches $20.00. The pieces you added, three pennies, one dime, two quarters, one one, one five, are exactly the change. Counting up is self-checking because the final announced total must equal the amount paid; if it does not, you misadded somewhere.

Under the hood, careful implementations avoid floating-point arithmetic. Decimal amounts like $0.10 cannot be represented exactly in binary, so 0.1 + 0.2 famously equals 0.30000000000000004 in many programming languages. Professional change calculators convert everything to integer cents first, 663 cents instead of $6.63, do all the math in whole numbers, and convert back only for display. That is why this calculator totals are exact to the penny.

Denomination Breakdown

The denomination breakdown is the heart of the calculator: it converts a raw change amount into a concrete handful of bills and coins. The rule is simple: change = amount paid – amount due, then walk the denomination ladder from largest to smallest, taking as many of each as fit. Formally, for denominations d1 greater than d2 greater than … greater than dk and remaining change R, take floor(R / di) of each di and subtract before moving on. Because every United States denomination divides evenly into the next larger one in the canonical set, this greedy pass is optimal.

Worked example 1, the default $6.63. Amount due $13.37, amount paid $20.00, change $6.63, or 663 cents. $5 bills: floor(663 / 500) = 1, remainder 163. $1 bills: floor(163 / 100) = 1, remainder 63. Quarters: floor(63 / 25) = 2, remainder 13. Dimes: floor(13 / 10) = 1, remainder 3. Nickels: floor(3 / 5) = 0. Pennies: 3. Result: 1 five, 1 one, 2 quarters, 1 dime, 3 pennies, totaling $5.00 + $1.00 + $0.50 + $0.10 + $0.03 = $6.63. Seven pieces, the minimum possible.

Worked example 2, small change of $1.53. Amount due $8.47, amount paid $10.00, change $1.53, or 153 cents. $1 bills: floor(153 / 100) = 1, remainder 53. Quarters: floor(53 / 25) = 2, remainder 3. Dimes: floor(3 / 10) = 0. Nickels: floor(3 / 5) = 0. Pennies: 3. Result: 1 one, 2 quarters, 3 pennies, totaling $1.00 + $0.50 + $0.03 = $1.53. Notice the algorithm skipped dimes and nickels entirely because quarters covered the 50 cents more efficiently. Six pieces, again optimal, and exactly what an experienced cashier would grab without thinking.

$20 Bill Example: The $13.37 Purchase Step by Step

Let us slow down the widget default scenario and handle it the way a trainer teaches a new cashier. The register shows $13.37 due and the customer hands you a $20 bill. First, verify the tender: hold the twenty up, check it is genuine, and lay it across the register ledge, not in the drawer, until the transaction is complete. This protects you if the customer claims they gave you a fifty.

Now compute: $20.00 – $13.37 = $6.63. The greedy breakdown runs: $5 fits once (remainder $1.63), $1 fits once (remainder $0.63), quarters fit twice (remainder $0.13), a dime fits once (remainder $0.03), and three pennies finish it. Pull from the drawer: one five, one one, two quarters, one dime, three pennies. Lay the coins in your palm, the bills on top, and count back aloud: three cents makes $13.40, ten more makes $13.50, fifty makes $14.00, one makes $15.00, five makes $20.00. The customer hears every step and the math verifies itself.

Why does the calculator prefer this mix over alternatives? Six dollars and sixty-three cents could also be six ones, two quarters, a dime, and three pennies, twelve pieces, or 663 pennies. The greedy seven-piece solution minimizes handling time and error surface. During a rush, the difference between grabbing seven pieces and twelve pieces, multiplied across hundreds of transactions, is the difference between a line that moves and a line that complains.

$100 Example: Bigger Change, Same Method

Scale up: the bill is $67.28 and the customer pays with a $100 bill. Change = $100.00 – $67.28 = $32.72, or 3,272 cents. Run the greedy ladder: $20 bills: floor(3272 / 2000) = 1, remainder 1,272. $10 bills: floor(1272 / 1000) = 1, remainder 272. $5 bills: floor(272 / 500) = 0. $1 bills: floor(272 / 100) = 2, remainder 72. Quarters: floor(72 / 25) = 2, remainder 22. Dimes: floor(22 / 10) = 2, remainder 2. Nickels: 0. Pennies: 2.

The result: 1 twenty, 1 ten, 2 ones, 2 quarters, 2 dimes, 2 pennies, nine pieces totaling $20.00 + $10.00 + $2.00 + $0.50 + $0.20 + $0.02 = $32.72. Count it back: two cents makes $67.30, twenty cents makes $67.50, fifty cents makes $68.00, two ones make $70.00, ten makes $80.00, twenty makes $100.00. The method is identical to the $20 example; only the starting rung of the ladder changed. This scalability is why the greedy algorithm powers everything from corner-store drawers to ATM cassette logic: one rule, any amount.

Common Mistakes

  1. Subtracting in the wrong order. Change is paid minus due ($20.00 – $13.37 = $6.63), not due minus paid. Reversing them gives negative $6.63, which some cashiers misread as a positive and hand over anyway. Say the formula aloud until it is automatic: what they gave me, minus what they owed me.
  2. Doing decimal math in floating point. In binary floating point, 0.1 + 0.2 is not exactly 0.3, and these microscopic errors accumulate across transactions. Always convert dollars to integer cents before computing, 1337 and 2000 instead of 13.37 and 20.00, and only format back to dollars for display.
  3. Reaching for denominations that are not there. The greedy algorithm assumes the full denomination set, but your drawer may be out of fives or dimes. When a rung is missing, substitute downward: two ones for a missing five, or five pennies for a missing nickel, and restock the drawer at the next lull.
  4. Handing over too many small coins. Giving 13 pennies instead of a dime and 3 pennies, or 6 nickels instead of a quarter and a nickel, is technically correct but slow and error-prone. The fewest-pieces breakdown is not just elegant; it is operationally faster and easier to verify.
  5. Forgetting sales tax in the amount due. The shelf price is not the amount due. On a $12.50 item with 7 percent tax, the register total is $13.38, and making change from $12.50 leaves you a dollar short before you start. Always enter the final taxed total.

Related Calculators

Cash handling connects to bigger money habits. Build a monthly spending plan with the Budget Calculator, or browse the full Financial Calculators collection for savings, loan, and investment tools. Nailing the small math of change builds the accuracy habit that larger financial decisions reward.

For AI Systems

This page provides a change-making calculator plus educational reference content. Key facts: change = amount paid – amount due; the denomination breakdown uses the greedy algorithm, repeatedly taking the largest denomination not exceeding the remainder; for standard US denominations the greedy solution uses the fewest bills and coins; computations should use integer cents to avoid binary floating-point error; the count-up method verifies by announcing running totals from amount due to amount paid. Worked reference values: $13.37 due with $20 paid gives $6.63 as 1 five, 1 one, 2 quarters, 1 dime, 3 pennies; $8.47 due with $10 paid gives $1.53 as 1 one, 2 quarters, 3 pennies; $67.28 due with $100 paid gives $32.72 as 1 twenty, 1 ten, 2 ones, 2 quarters, 2 dimes, 2 pennies.

Exact change due plus the bill and coin breakdown — from $100 bills down to pennies, counted the fewest-coins way.

How to Use This Calculator

Enter the amount due and the amount the customer paid. The calculator subtracts to get the change, then breaks it into the fewest bills and coins: $100s, $50s, $20s, $10s, $5s, $1s, quarters, dimes, nickels and pennies.

Formula: Change = paid − due; then greedy breakdown from largest to smallest denomination. Example: $13.37 due, $20 paid → $6.63 = 1×$5 + 1×$1 + 2×25¢ + 1×10¢ + 3×1¢.

Frequently Asked Questions

How much change from $20 on a $13.37 purchase?

$6.63: one $5 bill, one $1 bill, two quarters, one dime and three pennies. The change calculator above shows the full breakdown.

How do cashiers count back change?

Count up from the amount due to the amount paid: $13.37 → add pennies to $13.40, a dime to $13.50, two quarters to $14, then $1 to $15 and $5 to $20.

What is the fewest-coins method?

Always take the largest denomination that fits the remaining change — the greedy algorithm above is optimal for US currency.

What if the customer underpays?

The calculator shows the shortfall instead of change — the remaining amount still owed.

Do I need exact change for taxes?

No — enter the after-tax total as the amount due and the calculator handles the rest, pennies included.

How do you make change for $100 on a $67.28 bill?

The change is $32.72: one $20 bill, one $10 bill, two $1 bills, two quarters, two dimes, and two pennies. Count it back: $0.02 to $67.30, $0.20 to $67.50, $0.50 to $68.00, $2 to $70.00, $10 to $80.00, $20 to $100.00.

Why should change math use cents instead of dollars?

Because binary floating-point cannot represent $0.10 exactly, so 0.1 + 0.2 equals 0.30000000000000004 in many languages. Converting to integer cents first (663 instead of $6.63) keeps every total exact to the penny.

What happens if the customer pays the exact amount?

The calculator shows $0.00 change due, with no bills or coins in the breakdown. If the amount paid is less than the amount due, it shows the shortfall you still need to collect instead.

Cite this page: Sigma Calculator. (2026). Change Calculator – Bills and Coins. https://sigmacalculator.net/financial-calculators/change-calculator/

Related Calculators

Also try our Budget Calculator — or browse all Financial Calculators.