Kanban Quantity Calculator (Number of Cards)
Operations
- The kanban quantity formula sizes the loop so the containers in circulation cover demand over the replenishment lead time, plus a safety margin.
- Demand during the lead time is 500 units a day for 2.0 days: 1,000 units.
- Adding the safety allowance of 10.0 percent (100 units) and dividing by the container capacity of 50 gives 22.00 cards.
- Rounding up, the loop needs 22 kanban cards.
A kanban loop is a promise kept by arithmetic. Parts are consumed from containers; each empty container sends its card back as the only authorisation to make or fetch more; and the number of cards in the loop caps the inventory absolutely - nothing exists that a card did not summon. Sizing the loop is therefore the whole design problem: too few cards and the line starves at the first late delivery, too many and the supermarket quietly becomes the warehouse the system was built to abolish.
Enter the demand per day, the replenishment lead time in days, the safety allowance as a percentage, and the number of units per container. The calculator returns the card count rounded up to the next whole card, with the demand during lead time, the safety stock allowance and the exact unrounded value shown, so the rounding - and the reasoning - stay visible.
Worked examples
500 a day, 2 day lead
(500 units/day · 2 days · 10 % · 50 units)
| Number of kanban cards | 22 cards |
| Demand during lead time | 1,000 units |
| Safety stock allowance | 100 units |
| Exact value before rounding | 22.00 cards |
240 a day, 3 day lead
(240 units/day · 3 days · 20 % · 25 units)
| Number of kanban cards | 35 cards |
| Demand during lead time | 720 units |
| Safety stock allowance | 144 units |
| Exact value before rounding | 34.56 cards |
Fast loop, half-day lead
(1200 units/day · 0.5 days · 15 % · 100 units)
| Number of kanban cards | 7 cards |
| Demand during lead time | 600 units |
| Safety stock allowance | 90 units |
| Exact value before rounding | 6.90 cards |
The kanban sizing formula
Cards = demand during lead time x (1 + safety factor) / container capacity. Demand during lead time is the consumption the loop must cover while a card travels back, the container is refilled, and it returns: daily demand multiplied by lead time in days. The safety factor inflates that cover by a percentage chosen for the variability of both demand and supply - a stable in-house loop may run at 10 percent, a bought-in part with a wandering supplier at 30 or more. Dividing by the container size converts units of cover into containers, and therefore into cards.
The formula's honesty is its exposure of assumptions. Every input is a lever someone chose: the lead time is the supplier's actual performance, not their brochure; the demand is the customer's real rate, ideally the levelled rate the production plan runs to; the container size is a handling decision with ergonomic and transport consequences. A kanban calculation argued over in the open, input by input, is worth more than a precise answer from unexamined defaults.
- Cards = D x L x (1 + S) / C, rounded up
- Demand during lead time = daily demand x lead time days
- Safety factor prices demand and supply variability
- The card count is a hard cap on loop inventory
Worked examples
Example one is the tidy loop: 500 units a day, a 2 day lead time, 10 percent safety, 50 units per container. Demand during lead time is 1,000 units, the safety allowance adds 100, and 1,100 over 50 gives exactly 22.00 - 22 cards, and at most 1,100 units can ever sit in the loop. Example three is the fast, coarse loop: 1,200 a day but a half-day lead time and big 100-unit containers - 600 units of cover, 90 of safety, 6.90 cards, rounded to 7.
Example two is where the rounding earns its explanation: 240 a day, 3 days of lead time, 20 percent safety and small 25-unit containers give 720 plus 144 over 25 - 34.56 cards. There is no such thing as 0.56 of a card, and rounding down to 34 would leave the loop 14 units short of its own design cover, so the count goes up to 35. The calculator shows the exact value precisely so that decision is auditable rather than buried.
| Example | Demand/day | Lead (days) | Safety | Container | Exact | Cards |
|---|---|---|---|---|---|---|
| 1 | 500 | 2 | 10% | 50 | 22.00 | 22 |
| 2 | 240 | 3 | 20% | 25 | 34.56 | 35 |
| 3 | 1,200 | 0.5 | 15% | 100 | 6.90 | 7 |
Choosing the safety factor
The safety percentage is where judgement lives, and it should be set from measured variability, not temperament. A loop fed by a co-located supermarket with hourly milk runs and levelled demand may honestly need 5 percent. A loop fed by an external supplier with a quoted 3 day lead time that actually varies between 2 and 6 needs the factor that covers the bad week, not the average one - and the honest fix is usually to attack the lead-time variability itself, after which the factor, and the inventory it was hiding, can come down.
Review the factor on evidence and on a schedule. Every stockout with full cards is data that the factor or the lead time was wrong; every quarter in which the last two containers never move is data that the loop is oversized. Kanban systems are meant to shrink deliberately - removing a card is the classic improvement provocation - and the safety factor is the dial those experiments turn, one card at a time, with the results watched.
Cards, containers and inventory caps
The cap is the system's conscience. With 22 cards of 50, the loop's inventory cannot exceed 1,100 units no matter what anyone's spreadsheet says, because there is no authorisation for a twenty-third container to exist. That physicality is what separates kanban from reorder-point systems, where the 'cap' is a number in a database that an urgent phone call can override. When a loop genuinely needs more - a promotion, a seasonal peak - the correct move is to add cards openly and remove them when the peak passes, keeping the cap real.
Container size deserves its reputation as a quiet lever. Halving the container doubles the cards and halves the batch each replenishment moves, smoothing flow and halving the inventory granularity - at the price of twice the handling moves. The examples span the practical range from 25 to 100; the right size is the largest that still keeps the loop's response fine-grained against demand, and it is set by handling reality, not by the arithmetic.
When the loop keeps starving
A loop that empties regularly despite a correct-looking calculation is sending a diagnostic, and the order of suspects matters. First, the lead time: measure the actual card-to-full-container time over twenty cycles, because the quoted figure is the one most often divorced from reality. Second, demand spikes: if consumption arrives in weekly lumps rather than a levelled flow, the daily rate in the formula is an average the loop never experiences, and either levelling or a larger safety factor must absorb the lumps. Third, leakage: containers diverted to another line, cards lost under a bench, a supermarket quietly raided for a rush job - the physical audit finds what the spreadsheet cannot.
Only after those three should the card count itself be suspected, and the remedy then is one card, observed for a fortnight - not a recalculation with friendlier assumptions. Kanban's improvement method is deliberately empirical: the loop is a physical system, its parameters are measured on the floor, and its adjustments are experiments with results, which is why a page of arithmetic like this one is the beginning of the work rather than its conclusion.
- Measure actual lead time over twenty cycles
- Lumpy demand needs levelling or more safety
- Audit for lost cards and raided supermarkets
- Adjust one card at a time and observe
Electronic kanban notes
Modern systems replace the physical card with a barcode scan or an ERP signal, and the sizing arithmetic does not change at all - this page's formula sizes an e-kanban loop exactly as it sizes a card loop. What changes is the failure mode: a lost card announces itself, while a misconfigured electronic signal can silently authorise nothing, or everything, at scale. The disciplines that made paper kanban trustworthy - a fixed card count, a visible supermarket, a rule that no signal means no production - must be re-implemented deliberately in the electronic version, because the software will not supply them by default.
Whether paper or electronic, the loop's health is read the same way: cards should circulate at a steady rhythm, the supermarket should breathe between mostly-full and partly-drawn, and neither permanent emptiness nor permanent fullness is a stable state. The card count from this calculator is the opening position of that system - the number to start the loop, observe, and then improve.
FAQs
How many cards do 500 units a day, 2 day lead time, 10 percent safety and 50 per container need?
Demand during lead time 1,000 plus 100 safety units gives exactly 22.00, so 22 cards. That cap is the loop's conscience: no twenty-third container can exist, because no card authorises it, whatever the expediting pressure of the day.
How many cards does the 240 a day example need?
720 units of lead-time demand plus 144 safety units over 25 per container is 34.56, rounded up to 35 cards.
How many cards does the fast loop need?
1200 a day over 0.5 days is 600 units, plus 90 safety, over 100 per container is 6.90, so 7 cards.
Why round the card count up?
A fractional card cannot circulate; 34.56 rounds up to 35 so the loop never starves below its design cover.
What does the safety percentage cover?
Demand and lead-time variability: 20 percent adds 144 units in the second example.
What inventory does the card count cap?
At 22 cards of 50 units, at most 1,100 units can sit in the first loop - the cap is physical, not advisory.