Rob's Workshop

← All postsSawdustOffcuts from bigger efforts, shared anyway.

Pocket Change: a pay-and-count-the-change game for kids (and anyone)

Rob MonteroExperiment · Inclusion

Change is one of those skills that looks easy until you are the one holding a $20 bill and a price tag that says $3.75. So I made a small shop counter built for practicing exactly that: you pay, you say what change you expect, and the cashier shows you the answer.

Try it below. Pay for the item, say the change out loud, then tap the card to check.

Live demoSandboxed embed
Tap bills and coins to pay, say the change out loud, then tap the card to check. Tap again for the next item.

How it works

  • Read the price tag. Each round picks an item (a box of crayons, a kite, a skateboard) and a price that fits it.
  • Pay with your wallet. Tap bills and coins to put them on the counter. Tap them on the counter to take them back. The Pay button turns on once you have enough.
  • Say the change first. After you pay, the card shows a big question mark. Say your answer out loud, then tap to reveal the amount in digits and in words.
  • Watch the count-up. The cashier counts up from the price, one bill or coin at a time, until the total reaches what you handed over. That is the trick behind making change in your head.
  • Keyboard and presenter remotes: Enter, Space or Right Arrow reveal the change and move to the next item, so it works from a slide clicker.

Design choices that help learning

  • Money looks like money. Coins keep their real relative sizes, so a dime is smaller than a nickel but worth more. That surprise is a lesson on its own. US bills are all the same size, so you have to read the number.
  • Two currencies. Switch between English with US dollars and Spanish with Mexican pesos. Pesos have their own bills, a 12-sided $20 coin, and bills that get longer as they are worth more.
  • Bills, coins or both. Two switches let you practice with only bills or only coins. Prices adapt: bills-only rounds use whole dollars, coin-only rounds stay small.
  • Smart tips. If you handed over a piece you did not need, the card tells you. Paying with the fewest pieces is part of the skill.
  • No impossible rounds. With pesos there is no $10 bill, so some bills-only prices could never give exact change. The tool skips those prices, and explains it if you pay in a way the cashier cannot answer.

Built to be readable and accessible

The type is set in Lexend for the big numbers and Atkinson Hyperlegible for body text, both designed with legibility in mind. Every bill and coin is a real button with a label (“Add a quarter”, “Take back the $5 bill”), the running total and the answer are announced to screen readers through a polite live region, and focus rings are visible. Animations turn off for people who prefer reduced motion, and there is a dark theme that follows the system setting.

Under the hood

It is one HTML file with no framework and no build step. The only external request is Google Fonts. All amounts are whole cents, so there are no floating-point surprises. The cashier uses a small coin-change routine that finds the fewest pieces, and the numbers-to-words code covers both English and Spanish (“veintiún pesos con cinco centavos”).

A note on this embed

The counter above is a standalone HTML file shown in a sandboxed iframe on this page. The sandbox keeps it isolated from the rest of the site, which also means it can’t save anything in your browser. Your language and bills/coins choices reset when you reload.

Using it

Put it on a projector for a whole class, or hand it to one learner on a tablet. Start with bills only and whole-dollar prices, then bring in the coins. The rule that makes it work is simple: say the change before you tap.