Cash Denomination Planner
Find a minimum-item allocation of exact minor units using allowed denominations and optional stock limits.
Loading tool…
How to use Cash Denomination Planner
A bounded dynamic program minimizes item count for each amount. Monotone queues consider each denomination’s allowed stock, and recorded stage choices reconstruct a feasible optimum. Greedy selection is not assumed correct.
- Enter amount in whole minor units, allowed whole-unit denominations, optional matching stock counts; blank means unlimited.
- Choose the stated convention and check the units and supported model.
- Calculate, inspect the result, then copy or download it.
Good to know
- Whole minor-unit amount0–100000,1–30 unique positive denominations up to100000, optional matching whole stock limits0–100000. At most3million amount-stage positions; no live currency or legal-tender assumptions.
- Runs locally. Text/JSON fields are capped at30,000 characters; stricter page-specific and numeric-string limits also apply. Numeric inputs are bounded to magnitude1e15 and nonzero magnitude at least1e-100 unless an exact-string mode states otherwise. Approximate summaries use12 significant digits; CSV numeric cells retain the complete stored value and potentially formula-like string cells gain a protective apostrophe; unsupported, non-finite or detected underflow states return an error.
- Educational user-assumption arithmetic only. No live prices, laws, tax rules, quotes or financial advice.
Common questions
Does choosing the largest denomination first always minimize items?
No. For amount6 and denominations4,3,1, two3s beat4+1+1. The bounded dynamic program checks the optimum under the entered stocks.
Is the input uploaded or saved?
No. The tool calculates inside this browser tab and provides a local download; it does not persist your input.
Keep going with related tools
All calculators →GCD and LCM Calculator
Find the greatest common divisor and least common multiple of a list of whole numbers.
MathFraction Calculator
Add, subtract, multiply, or divide two fractions and reduce the exact result.
CalculatorsPercentage Calculator
Calculate a percentage of any amount, then see the totals after adding or subtracting that percentage.
CalculatorsCash Drawer Shift Reconciliation
Reconcile opening and closing denomination counts with actual cash tender, change, refunds and drawer transfers, keeping ticket discrepancies visible.