
Which Checkout Line Finishes First? — A Supermarket Queue Simulator Built on Published Checkout Times
At the supermarket you keep deciding whether to join the line with fewer people or get behind the shopper with fewer items. Taking checkout-time distributions published from observations at a German grocery store, I built a simulator that follows each shopper from arrival to exit. A cashier takes 31 seconds to pay and bag plus 2.7 seconds per item; a self-checkout 27 seconds plus 6.8, so one person in line is worth about 11 items. After checking the simulator against queueing-theory formulas, I ran the store. With 8 cashiers who are 85% busy, merging the lines into one cut the mean wait from 29 to 21 seconds and the worst wait from twelve and a half minutes to five and a half. When everyone else counted heads, counting items as well cut my own wait by a quarter. A self-checkout is slower per transaction once you have more than one item, but at busy times swapping one cashier for 4 self-checkouts cut the store-wide wait from 50 to 13 seconds. Yet when every shopper calculated their own best choice, everyone got slower. Everything that went wrong is listed too, from a result 14% off the theory to a bug that let shoppers peek into the future.

When you finish shopping and walk toward the registers, you make one quick decision: which line? One line has just two people, but both carts are full. The next one has five people, each holding a basket. The self-checkouts over there might be free. Whatever you pick, the line next to you always seems to move first.
It feels like a gut call, but it is actually a calculation. If you know when shoppers arrive, how many items they carry, how many seconds each item takes to scan, and how long paying and bagging take, you can follow a line shopper by shopper as it grows and shrinks. And there is a century-old theory for this: queueing theory, born when telephone exchanges needed to calculate how long callers would wait for a free line. I decided to build a checkout-line simulator, check it against the theory, and pull out answers you can actually use at the store.
What I set out to do
- Set checkout times for cashier lanes and self-checkouts based on measurements, separating the time to scan each item from the time to pay and bag.
- Build a checkout-line simulator that follows each shopper: arrive, pick a line, wait, check out, leave.
- Cross-check the simulator against queueing-theory formulas (Little's law, M/M/c).
- Compare four things: one shared line feeding several counters versus a line per counter, express lanes, the share of self-checkouts, and line switching.
- Answer two shopper questions: "Should I get behind the person with fewer items, or join the line with fewer people?" and "Are self-checkouts really faster?"
- Build a playground where you can change the number of counters and shoppers and watch the lines move.
Finding the sources, the simulator, the experiments, the figures, and the playground were all written and run by an AI agent on a laptop. What it got wrong is listed separately under "Where it went wrong."
Checkout times from a published paper
If you invent the checkout times, the whole simulator becomes fiction. So I started by looking for measurements. Register logs are trade secrets and rarely public, and those that are public sometimes come with non-commercial conditions. I couldn't find raw data that could be used freely, so I took published checkout-time distributions from a paper as literature values and put them into the model.
The source is a paper by researchers at Hochschule Hannover in Germany (Godow et al.) in the simulation journal SNE. They obtained transaction records from a grocery store near Osnabrück (4 cashier lanes, 2 self-checkouts), stood in the checkout area for 12 hours noting line lengths every 5 minutes, and timed 100 customers by hand. They split checkout time into two parts:
- Scanning time: time per item. Shoppers differ in speed, so each shopper gets one "time per item," multiplied by the number of items.
- Paying and bagging time: time that doesn't depend on item count. The researchers found no correlation between this time and basket size.
They modeled both as log-normal distributions and published the parameters for cashier lanes and self-checkouts in a table. A log-normal distribution has most values clustered near the average, with a long right tail of occasional very slow cases. The shopper digging through a wallet for coupons is that tail. The table doesn't state units, so I read it as the logarithm of seconds. Read that way, it gives 2 to 3 seconds per item and around 30 seconds for paying and bagging, matching in order of magnitude the estimate by American math educator Dan Meyer from supermarket register records, as reported in the press ("41 seconds per person, 3 seconds per item").

In averages:
- Cashier: 31 seconds to pay and bag + 2.7 seconds per item. Five items take 45 seconds; twenty take 86.
- Self-checkout: 27 seconds to pay and bag + 6.8 seconds per item. The fixed time is 4.5 seconds shorter at self-checkout, which makes sense, since there's no conversation with a cashier. But each item takes 4 seconds longer. With one item, the two are almost equal (33 vs 34 seconds); from two items up, the cashier is faster. With five items, it's 60 versus 45 seconds.
- Times vary a lot from person to person. For cashier customers with 20 items, the middle half spreads from 64 to 101 seconds. Self-checkout is wider still.
For basket size I took only the shape of the distribution from the literature. The same paper models basket size as a geometric distribution: one item is most common, and each additional item becomes less likely by a constant ratio. The average varies by store and time of day, so there was no basis for transferring a number. I assumed a mean of 12 items and also ran 6 and 20 to check whether the conclusions flip (reported separately below).
That gives the first answer of this piece: one person in line equals 11 items. That's 31 seconds of paying and bagging divided by 2.7 seconds per item. One extra person in line delays you as much as 11 extra items on the belt.
How the simulator works
The simulator doesn't tick a clock second by second; it jumps from event to event. This is called discrete-event simulation. There are only two kinds of events.
- A shopper arrives. Shoppers come at a steady average rate, but randomly. Even at five per minute on average, some minutes nobody comes and some minutes ten do. Arrivals scattered independently like this are called Poisson arrivals. Each arriving shopper draws a basket size and picks a line according to their rule.
- A checkout finishes. When a counter frees up, the person at the front of its line starts. Checkout time is "that shopper's time per item × items + paying and bagging time," with both drawn from the log-normal distributions above.
At every event, the simulator records who arrived when and who started checking out when. Waiting time is start time minus arrival time. Each run simulates 25 hours and discards the first hour, because a store that opens empty has shorter lines than usual for a while. Each setting is run 20 times with different random seeds and averaged (the story of why 25 hours and 20 runs weren't always enough is under "Where it went wrong"). The entire set of experiments finishes in about a minute on a laptop.
I gave shoppers four rules for picking a line:
- Fewest people: the line with the fewest people, counting the one being served.
- Fewest items: the line with the smallest total number of items.
- Estimated time: convert people and items into time using the averages above, and pick the shortest. This amounts to using "one person = 11 items."
- Random: any line. A baseline for comparison.
I set one principle: shoppers use only what they can see. They can see the people in line and their baskets, but they don't know when the person currently being served will finish. They can only guess. I broke this principle in the first version, and the results were wrong across the board (item 4 under "Where it went wrong").
Checking against the theory
You can check a simulator on problems whose answers you already know. Queueing theory has some exact formulas.
- Little's law: average number of people in line = arrival rate × average wait. If five people arrive per minute and each waits two minutes on average, there are ten people in line on average. It holds for any queue.
- M/M/c and the Erlang C formula: when shoppers arrive as a Poisson stream (the first M), service times follow an exponential distribution (the second M), and there are c counters sharing one line, this formula gives the exact average wait. The Danish telephone engineer Agner Erlang developed it to calculate how long callers waited for a line at the telephone exchange, and call centers still use it to set staffing.
I checked in two steps. First, I deliberately switched the simulator's checkout times to an exponential distribution (mean 60 seconds), creating conditions where the Erlang C formula must be exactly right. With 8 counters, I varied how busy they were (utilization ρ, the share of time a counter is working) from 0.5 to 0.95.

| Utilization | Erlang C formula | Simulation (50 h × 10) |
|---|---|---|
| 0.7 | 6.8 s | 6.7 s |
| 0.8 | 17.2 s | 16.7 s |
| 0.85 | 28.6 s | 27.9 s |
| 0.9 | 52.6 s | 52.9 s |
| 0.95 | 126.6 s | 109.3 s → 127.9 s after the fix |
Only 0.95 was off. The cause was the experiment design, not the simulator (item 1 under "Where it went wrong"). After the fix it matched within the error margin.
In the second step I put in the literature checkout times. Real checkout times are less erratic than an exponential distribution. The measure of spread (squared coefficient of variation) is 1 for an exponential distribution but 0.42 for these times. So using the M/M/c formula as is greatly overstates the wait. At utilization 0.8, the formula said 18.3 seconds; the simulation said 13.4. The Allen-Cunneen approximation, which accounts for the spread of service times, gave 13.0 seconds, matching the simulation. Applying the textbook formula to supermarket checkouts as is overstates waiting by nearly 40%.
If every counter has its own line and shoppers pick lines at random, 8 counters become 8 independent single-counter queues. In that case the single-counter formula (Pollaczek-Khinchine) must hold. At utilization 0.7, the formula said 106 seconds and the simulation 104; at 0.85, both said 258.
Little's law matched so well that it made me suspicious. The average number in line and "arrival rate × average wait" agreed to the third decimal place. On reflection, this law is close to a bookkeeping identity that holds however you count. It is weak evidence that the simulator is right. The real check was Erlang C.
One line or many?
Now run the store with the literature checkout times. The base store has 8 cashiers. Average checkout time is 64 seconds, so 8 cashiers can handle up to 449 shoppers an hour. I raised the number of shoppers to push utilization from 0.6 to 0.95.
I compared four arrangements: a single shared line feeding several counters (like a serpentine line at airport check-in or a bank's ticket system, where you go to the next free counter); a line per counter, with shoppers choosing the line with the fewest people; a line per counter with shoppers choosing by "estimated time"; and a line per counter with line switching allowed.

At utilization 0.85 (382 shoppers an hour):
| Arrangement | Mean wait | Worst 1 in 20 | Worst | Overtaken |
|---|---|---|---|---|
| One shared line | 21 s | 87 s | 323 s | 0% |
| Line per counter (fewest people) | 29 s | 126 s | 750 s | 33% |
| Line per counter + switching | 24 s | 103 s | 637 s | 28% |
| Line per counter (random) | 245 s | 816 s | 2,565 s | 74% |
- The single line wins. Mean wait drops 30%, from 29 to 21 seconds, and the worst wait drops from twelve and a half minutes to five and a half. In a single line, the next person goes the moment any counter frees up. With many lines, if the person ahead of you has a full cart, you can't go even when the next counter is idle. Counters sit idle while shoppers wait. Queueing theory calls the fix "pooling."
- The fairness gap is even bigger. In a single line, first come is first served; nobody gets overtaken. With many lines, one shopper in three sees someone who arrived later start checking out first. The feeling that "the other line always moves faster" isn't just in your head.
- Line switching closes most of the gap. I let the last person in a line move if another line looked at least 30 seconds faster. One shopper in four (24%) switched at least once, and the mean wait fell to 24 seconds, close to a single line. Switching is shoppers merging the lines by hand. But the worst wait (637 s) is still double the single line's (323 s), because people already in the middle of a line can't easily move.
- Picking a line at random multiplies waiting tenfold. Nobody really picks at random, but the number shows how much simply looking before you choose cuts the wait.
Changing the average basket to 6 or 20 items didn't change the order. At utilization 0.85, single line versus many lines came to 15 vs 21 seconds with a mean of 6 items, and 34 vs 46 seconds with 20.
If the single line is that good, why don't all supermarkets use it? There are several reasons. A serpentine line takes floor space. A single line looks long: three people at each of 8 counters seems short, but 24 people in one line can make an arriving shopper turn around (a study measuring this effect is described under "The people who do this"). And there is research showing that pooling lines can make the people serving them slower. None of this is in the simulator.
Behind fewer items, or in the line with fewer people?
The only thing a single shopper can change is their rule for picking a line. So I had all other shoppers go to the line with the fewest people, and only 10% use a different rule. That 10% is "me." I ran each setting 40 times and measured my average wait.

| My rule | Utilization 0.8 | Utilization 0.9 | Worst 1 in 20 (0.9) |
|---|---|---|---|
| Fewest people | 20 s | 50 s | 189 s |
| Fewest items | 15 s | 37 s | 144 s |
| Smallest people × 11 + items | 15 s | 38 s | 150 s |
| Random | 54 s | 90 s | 262 s |
- Counting items beats counting people. Waiting falls by nearly a quarter (24 to 25%). When the store is busy (utilization 0.9), the mean goes from 50 to 37 seconds, and the unlucky case (worst 1 in 20) drops from 189 to 144 seconds.
- Converting to "people × 11 + items" gives almost the same result. The difference between the two rules is within the margin of error. Counting items already captures much of the head count: lines with more people usually hold more items.
- For example: line A has 2 people with full carts (30 items each), line B has 5 people with baskets (5 items each). By people, A is shorter. By items, B (25) is shorter than A (60). Converted, A is 2×11+60 = 82 and B is 5×11+25 = 80, nearly the same. Counting heads picks A; in fact they're about equal, with B slightly better.
- The bigger the baskets, the more counting items pays. In a store averaging 6 items, my wait went from 35 to 30 seconds (14%); in one averaging 20 items, from 81 to 54 seconds (33%). The more basket sizes vary, the more a head count misrepresents the work ahead.
- When everyone gets smart, the advantage shrinks. When all shoppers picked by item count, the mean wait went from 19.6 to only 17.9 seconds, a 9% gain. The advantage of a rule you use alone comes from grabbing gaps others overlook. When everyone uses the same rule, the gaps disappear.
How do real shoppers choose? A Colombian supermarket study cited by the German researchers above (Alvarado and Pulido, 2008) found that shoppers weigh line length at about 60% and the number of items held by the people waiting at about 40%. People already half-count items.
Whom do express lanes speed up?
A "10 items or fewer" lane rescues small baskets from getting stuck behind big ones. I turned 1 or 2 of the 8 cashier lanes into express lanes. Small-basket shoppers go to whichever has fewer people, express or regular.

| Setting | Utilization 0.8: all / ≤10 / 11+ | Utilization 0.9: all / ≤10 / 11+ |
|---|---|---|
| No express lane | 19.6 / 19.7 / 19.5 s | 51.9 / 52.1 / 51.6 s |
| 1 lane, ≤5 items | 24.9 / 21.3 / 29.7 s | 58.5 / 50.8 / 69.0 s |
| 1 lane, ≤10 items | 21.3 / 18.3 / 25.5 s | 48.5 / 43.2 / 55.9 s |
| 1 lane, ≤15 items | 20.4 / 19.2 / 22.1 s | 49.9 / 47.8 / 52.9 s |
| 2 lanes, ≤10 items | 24.8 / 16.4 / 36.4 s | 55.4 / 40.2 / 76.3 s |
- Express lanes help small baskets and pass the cost to big ones. At utilization 0.8, one lane for 10 or fewer takes small baskets from 20 to 18 seconds and big ones from 20 to 26. The store as a whole gets slightly worse.
- When it's busy, one express lane makes the whole store a bit faster. At utilization 0.9, one lane for 10 or fewer cut the overall mean from 52 to 49 seconds, because small baskets get stuck behind big ones less often. When checkout times within a line are more uniform, the line backs up less.
- Set the limit too low or add too many express lanes and you lose. At 5 or fewer, the express lane often sits idle while the other 7 are swamped. Two express lanes speed small baskets to 40 seconds but slow big ones to 76. Splitting counters is the opposite of a single line: it breaks pooling.
- Under this model's geometric distribution, 58% of shoppers have 10 items or fewer, far more than one express lane can take, so small baskets use the regular lanes too. How many express lanes and what limit work best depends on each store's basket distribution.
Are self-checkouts really faster?
For a single checkout, the answer is nearly clear: not once you have more than one item. In the literature values, self-checkout has 4.5 seconds less fixed time but takes 4 seconds longer per item. In the German researchers' observations, average processing time per item was 10.06 seconds at a cashier and 16.60 at self-checkout, 65% longer. Another study using data from 51 stores of a US grocery chain (Cardinali et al., 2025) also found cashier transactions about 100 seconds shorter on average. Self-checkout feels fast because your hands are busy the whole time.
But what shoppers want is not a fast checkout; it's getting out of the store quickly. If the self-checkout is free and there are people in the cashier line, things change.

A rule for one shopper: when the self-checkout line is empty and there is 1 person ahead at the cashier, self-checkout is faster up to 17 items. With 2 people ahead, up to 33 items. A person in the cashier line averages 64 seconds, while self-checkout costs you 4 seconds more per item minus the 4.5 seconds it saves in fixed time. When both the self-checkout and the cashier are free, self-checkout wins only with a single item.
For the store as a whole: starting from 8 cashiers, I replaced one cashier at a time with 4 self-checkouts (assuming one attendant supervises 4 machines). I assumed that 30% of shoppers never use self-checkout and that nobody with more than 40 items does. Both values are assumptions, since there is no data on them. I ran two arrival rates, giving the 8-cashier store utilization 0.8 (359 shoppers an hour) and 0.9 (404 an hour).
| Setting | 359/h: mean wait / mean total | 404/h: mean wait / mean total |
|---|---|---|
| 8 cashiers | 20 s / 84 s | 50 s / 114 s |
| 7 cashiers + 4 self | 7 s / 77 s | 13 s / 84 s |
| 6 cashiers + 8 self | 6 s / 80 s | 9 s / 84 s |
| 5 cashiers + 12 self | 8 s / 86 s | 10 s / 89 s |
| 4 cashiers + 16 self | 13 s / 94 s | 15 s / 99 s |
(Shoppers pick lines by head count.)
- Self-checkouts show their worth when it's busy. At 404 shoppers an hour, swapping one cashier for 4 self-checkouts cuts the mean wait to a quarter, from 50 to 13 seconds, and the time to get out of the store from 114 to 84 seconds. Four self-checkouts are slow, but together they handle 133 shoppers an hour; one cashier handles 56.
- Swap too many and the line just moves from "waiting" to "scanning." With 16 self-checkouts the wait is short but the average total time rises again (94 s, 99 s). Shoppers spend the time scanning their own items instead of waiting. Big baskets pile up at the remaining 4 cashiers and wait longer.
- When shoppers chose smartly, everyone got slower. This was the most surprising result of the experiment. When each shopper calculated "with my items, self-checkout takes this long and the cashier line that long" and chose accordingly, everyone got slower. With 5 cashiers and 12 self-checkouts, the average total time rose from 86 to 97 seconds. Even with self-checkout open to everyone, it went the same way, 81 versus 86 seconds. Here's why. If the cashier lines are even slightly shorter, everyone judges the cashier to be better for them and goes there. The cashier lines grow until self-checkout and cashier are "about equally bad." Each person who joins a cashier line delays everyone behind them, but nobody counts that cost in their own calculation. It's the same structure as operations researcher Pinhas Naor's 1969 result that when everyone joins a queue rationally for themselves, the queue grows longer than is socially desirable. By contrast, simple shoppers who only count heads see the self-checkout line split across several machines, think it's short, and go there, which empties the cashier lines so big baskets move quickly.
To sum up: self-checkouts are slow for a single transaction, but they are a cheap way to add counters. A busy store that swaps some cashiers for self-checkouts gets faster overall. For an individual shopper, "if there's at least one person ahead at the cashier and you have 17 items or fewer, use the free self-checkout" is a rule of thumb that matches the calculation.
Playground: line them up yourself
Below, change the number of cashiers, self-checkouts, express lanes, and shoppers per hour. Each dot is a shopper; dot size is the number of items, color is how long they have waited (green 0 s, red 5 min or more). Press "One shared line" and the cashier lines merge into one. You can also change how shoppers pick lines and turn line switching on. The panel shows the mean wait, worst 1 in 20, worst wait, and the share of shoppers overtaken by later arrivals, live. "Run 1 hour now" jumps ahead one simulated hour.
Two experiments to try. First, with 8 cashiers and 390 shoppers an hour, toggle between "One per counter" and "One shared line" and compare the worst wait. Second, raise shoppers to 470 an hour so "how busy" exceeds 1, then add 4 self-checkouts.
Where it went wrong
- 14% shorter than the theory. In the exponential check at utilization 0.95, the simulation gave 109 seconds and the Erlang C formula 127. Earlier, when I ran the same kind of problem once with 6 counters, it had also come out 9% low, 67.5 versus 74.0 seconds. The first was luck. Running the same setting 10 times with different seeds scattered the results from 60 to 83 seconds, and the average, 72.9 ± 2.4 seconds, matched the formula. A busy line, once long, stays long for a while, so even 200 hours of simulation can swing a lot. The second was not luck: the 10-run average was more than two standard errors low. The cause was the warm-up. I started with an empty store and recorded from the first hour on, but a rough estimate of how long a queue at utilization 0.95 takes to reach its "normal" state is about 26 hours. I was measuring a line that hadn't finished growing and calling it normal. With a 30-hour warm-up and 40 runs of 500 hours each, it came to 127.9 ± 2.4 seconds, matching the formula (126.6). The left panel of figure 2 shows both before and after. Most of the store experiments here run at utilization 0.9 or below, where a 1-hour warm-up is enough, but results at 0.95 may be a little low.
- Twenty 8-hour runs flipped the ranking. The first store experiments ran each setting 20 times for 8 simulated hours. At utilization 0.9, "line per counter + estimated time" came out at 40.4 ± 3.0 seconds and the single line at 43.5 ± 3.3. Many lines beat one line. I had already fixed the bug in item 4 below, so I suspected another bug. This time it wasn't one. Running the same two arrangements 100 times for 30 hours each put the order back: single line 38.7 ± 0.8 seconds, estimated time 44.2 ± 0.7. The average of a busy line is dominated by a few long stretches, and twenty 8-hour runs weren't enough to separate two arrangements a few seconds apart. I extended all store experiments to 24 hours each and reran them; the numbers in this piece come from that run.
- Little's law matched too well. It agreed to the third decimal place, and I was about to cite it as proof the simulator was right, then stopped. Little's law holds as long as the in-and-out records are consistent, regardless of queue order or service times. It would hold even if the simulator drew checkout times wrongly. So I based the validation only on Erlang C and Pollaczek-Khinchine.
- The shoppers peeked into the future. In the first version, a line per counter with shoppers picking by "estimated time" came out faster than a single shared line. In theory this can't happen. Going to the line with the least remaining work can at best equal a single line, because in a single line no counter sits idle while someone waits. Rereading the code, I found that when a shopper judged "how much longer the current customer will take," it used that customer's actual finish time. A real shopper doesn't know where the person ahead keeps their wallet or how many coupons they'll pull out. This future information was revealing each counter's random swings in advance. I changed it to "how much is left, if things go as average." Deliberately reviving the bug and remeasuring with the current inputs shows the difference: at utilization 0.8, the buggy version gave 12.0 seconds, faster than the single line (12.5), while the fixed version gives 17.1. In the individual-rule experiment, the buggy "fewest items" came to 10.1 seconds, half of fewest people (19.9). After the fix it's 15.2. Had the buggy version been published, it would have carried a plausible falsehood: "count items and your wait halves." The number that disagreed with theory caught the bug.
- Line switching did nothing. The first rule was the textbook one: "the last person moves if another line is at least 2 people shorter." Result: under 1% of shoppers switched (0 to 0.8% depending on utilization), with no effect. Since shoppers already pick the line with fewest people on arrival, lines rarely differ by 2. In reality people switch not because of head count but because "that line is moving faster." So I changed the rule to "move if your eyeballed expected wait drops by 30 seconds or more." Then the two rules gave exactly the same results, to the last digit. One line of code that converted the setting to true/false was turning the "people" rule into the "time" rule too. Only after fixing it did the difference show: at utilization 0.85, 0.4% switching under the people rule versus 24% under the time rule. If two experiments come out identical, you ran the same experiment twice.
- It froze on a self-checkout-only store. To measure the service-time distribution I ran a store with one self-checkout and nothing else, and the program froze. Since shoppers with more than 40 items weren't allowed at self-checkout, some had no line to join. I fixed it so a shopper with no eligible line ignores the limit and goes to the shortest line.
The people who do this
Measuring and fixing lines is studied more widely than you might think.
- Researchers who stand at the registers and count. The Hochschule Hannover team (Godow et al.) whose checkout times this piece uses worked with a grocery chain to rebuild one store's checkout area as a simulation. They wrote down line lengths by hand every 5 minutes for 12 hours and matched the simulation to them. They also built in observations such as: no extra checkout was ever opened while the line was 3 people or fewer, and when a new checkout opened, about a third of waiting shoppers moved to it. Even human judgment, like when a cashier decides to open another lane, goes into the model.
- Operations-management researchers measure how lines affect sales. A team including Columbia University researchers (Lu et al., 2013) installed video-recognition equipment at the deli counter of a large supermarket in Latin America, measured line lengths, matched them with sales records, and measured how much lines cut purchases. Shoppers reacted to how long the line was rather than how fast it was moving. So the researchers warned that merging lines into one could make the visible line longer and reduce sales. That is a force pulling in the opposite direction from the single line's win in our simulator.
- There is also research showing that pooling slows down the people serving. When an emergency department in the US switched from a shared queue to queues dedicated to individual doctors, average length of stay fell 17% (39 minutes) (Song, Tucker, and Murrell, 2015). The interpretation: once patients were "theirs," doctors managed the flow more actively. Human behavior overturned the gain from pooling that theory predicts. Whether the same happens with supermarket cashiers is unknown. In the simulator, cashiers work at the same speed regardless of the line arrangement.
- Cashiers are people. Economists Mas and Moretti (2009), using records of several hundred cashiers at a US supermarket chain, showed that when a fast coworker joins the shift, nearby cashiers speed up, but only when that coworker can see them. Checkout speed isn't fixed; it changes with how the workplace is laid out.
- Self-checkout research. A US team (Cardinali et al., 2025) found that self-checkout runs about 100 seconds slower per transaction than a cashier, and also that people tend to buy items they find embarrassing at self-checkouts. The value of self-checkout isn't only speed.
- Call-center and store staffing. The Erlang C formula is still a basic tool for deciding how many call-center agents to staff. Supermarkets also use workforce-management systems that forecast shoppers by time of day and schedule cashiers, and underneath them are the same queueing calculations as in this piece.
What it can't do
- These are literature values, not raw data. I couldn't find checkout measurements published under terms that also allow commercial use, so I transferred the distribution parameters published in one paper. That paper rests on observations from one store in Germany over one day. The table gives no units; I read it as the logarithm of seconds and only confirmed that it matches other estimates in order of magnitude.
- The mean basket of 12 items is an assumption. Only the shape of the distribution (geometric) comes from the literature. Running means of 6 and 20 kept the same direction (the single line wins, counting items helps), but the numbers in seconds depend on this assumption.
- It assumes steady arrivals. Real shoppers crowd in after work, and stores open more lanes while they do. The simulator handles only a "steady state" where shoppers per hour stay constant. How lines build and clear during a 30-minute rush needs separate treatment.
- Shoppers never turn away. Some people leave or come another day when the line is long, but in the model everyone waits to the end. The single line's weakness, a long line driving shoppers away, isn't in the calculation.
- All cashiers are the same person. In reality skill varies widely, and work speed can change with the line arrangement (the emergency-department and cashier studies above).
- Three key self-checkout values are assumptions: 30% of shoppers never use them, the 40-item limit, and 4 self-checkouts = 1 cashier.
- These aren't measurements from stores where you shop. Payment habits, bagging practice (whether shoppers or cashiers bag), and basket sizes differ across countries and stores. Read the numbers as a sense of direction and size rather than transferring them as is.
So, is it one click?
From finding the sources to the playground, it was done in one sitting. Matching the simulator to theory and running all the experiments took about a minute of laptop computing. The time went to two places. One was choosing data that could be used without worry. Checkout measurements are rarely public and often come with conditions, so in the end I transferred a paper's distributions as literature values and left the mean basket size as an assumption. The other was recognizing wrong numbers: a wait 14% too short, many lines faster than one, a ranking flipped by 8-hour experiments. Theory caught all three. The bug where shoppers peeked into the future, in particular, looked very convincing on its face. "Count items and your wait halves" would have made a fine headline. Had theory not said "that can't be," it would have gone out as is. Fields with theory are good fields to hand to a machine, because there is a standard for recognizing a wrong answer.
The answers for the supermarket come down to three lines. When choosing a line, look at items more than heads (one person is worth about 11 items). If there's at least one person ahead at the cashier and you have 17 items or fewer, go to the free self-checkout. And don't feel cheated when the next line moves first. In a store with a line per counter, one shopper in three has that happen.
Sources
- J. N. Godow et al., "Towards Accurate Modelling of Queueing Behaviour in Hybrid Checkout Systems in Grocery Retail: A Simulation-Based Approach," SNE – Simulation Notes Europe 36(3):131-138 (checkout-time literature values, Table 1; geometric basket sizes)
- J. A. Alvarado, L. M. Pulido, "Simulation and experimental design applied to sizing supermarket cashiers in Colombia," Winter Simulation Conference (2008) (line-choice weights, as cited in the paper above)
- R. Cardinali et al., "Does Automation Reduce Stigma?", Journal of Economic Behavior and Organization (2025), University of Illinois news release
- Y. Lu et al., "Measuring the Effect of Queues on Customer Purchases," Management Science 59(8) (2013)
- H. Song, A. L. Tucker, K. L. Murrell, "The Diseconomies of Queue Pooling," Management Science 61(12) (2015)
- A. Mas, E. Moretti, "Peers at Work," American Economic Review 99(1) (2009)
- Dan Meyer's checkout estimates (press report)
- J. D. C. Little, "A Proof for the Queuing Formula: L = λW," Operations Research 9(3) (1961) · P. Naor, "The Regulation of Queue Size by Levying Tolls," Econometrica 37(1) (1969) · A. O. Allen, Probability, Statistics, and Queueing Theory (1990)