Can Math Can Save You From the Slow Line?


A sight we’ve all seen, but can we increase our odds of choosing the fastest line?

It seems obvious. You arrive at the checkouts and see one line is much longer than the other, so you join the shorter one. But, before long, the people in the bigger line zoom past you and you’ve barely moved toward the exit. The Conversation

When it comes to queuing, the intuitive choice is often not the fastest one. Why do lines feel like they slow down as soon as you join them? And is there a way to decide beforehand which line is really the best one to join? Mathematicians have been studying these questions for years. So can they help us spend less time waiting in line?

The intuitive strategy seems to be to join the shortest line. After all, a short line could indicate it has an efficient server, and a long line could imply it has an inexperienced server or customers who need a lot of time. But generally this isn’t true.

Without the right information, it could even be disadvantageous to join the shortest queue. For example, if the short line at the supermarket has two very full trolleys and the long queue has four relatively empty baskets, many people would actually join the longer loner. If the servers are equally efficient, the important quantity here is the number of total items in the line, not the number of customers. But if the carts weren’t very full but the hand baskets were, it wouldn’t be so easy to estimate and the choice wouldn’t be so clear.

This simple example introduces the concept of service time distribution. This is a random variable that measures how long it will take a customer to be served. It contains information about the average (mean) service time and about the standard deviation from the mean, which represents how the service time fluctuates depending on how long different customers need.

The other important variable is how often customers join the line (the arrival rate). This depends on the average amount of time that passes between two consecutive customers entering the shop. The more people that arrive to use a service at a specific time, the longer the lines will be.


Depending on what these variables are, the shortest line might be the best one to join – or it might not. For example, in a fast-food restaurant you might have two servers both taking orders and accepting money. Then it is most often better to join the shortest queue since the time the servers’ tasks take doesn’t vary much.

Unfortunately, in practice, it’s hard to know exactly what the relevant variables are when you enter a shop. So you can still only guess what the fastest line to join will be, or rely on tricks of human psychology, such as joining the leftmost line because most right-handed people automatically turn right.

Did You Get It Right?

Once you’re in the line, you’ll want to know whether you made the right choice. For example, is your server the fastest? It is easy to observe the actual line length and you can try to compare it to the average. This is directly related to the mean and standard deviation of the service time via something called the Pollaczek-Khinchine formula, first established in 1930. This also uses the mean inter-arrival time between customers.

Unfortunately, if you try to measure the time the first person in the line takes to get served, you’ll likely end up feeling like you chose the wrong line. This is known as Feller’s paradox or the inspection paradox. Technically, this isn’t an actual logical paradox but it does go against our intuition. If you start measuring the time between customers when you join a line, it is more likely that the first customer you see will take longer than average to be served. This will make you feel like you were unlucky and chose the wrong queue.

The inspection paradox works like this: Suppose a bank offers two services. One service takes either zero or five minutes, with equal probability. The other service takes either ten or 20 minutes, again with equal probability. It is equally likely for a customer to choose either service and so the bank’s average service time is 8.75 minutes.

If you join the queue when a customer is in the middle of being served then their service can’t take zero minutes. They must be using either the five, ten or 20 minute service. This pushes the time that customer will take to be served to more than 11 minutes on average, more than the true average for the of 8.75 minutes. In fact, two out of three times you encounter the same situation, the customer will want either the 10 or 20 minute service. This will make it seem like the line is moving more slowly than it should, all because a customer is already there and you have extra information.

So while you can use math to try to determine the fastest queue, in the absence of accurate data – and for your own peace of mind – you’re often better just taking a gamble and not looking at the other options once you’ve made your mind up.


Enrico Scalas, Professor of Statistics and Probability, University of Sussex and Nicos Georgiou, Lecturer in Mathematics, Probability and Statistics, University of Sussex

This article was originally published on The Conversation. Read the original article.

CATEGORIZED UNDER: Space & Physics, Top Posts
  • Uncle Al

    You go with your sweetie and you each join a line. I am there to win, always.

    • Daddy’s Princess

      I have found that when I am in a long, slow moving line I can usually cut the line down if I crap in my pants. It really helps if I exaggerate the straining and grunting. Most of the other people in line will just leave. If some are stubborn and won’t leave the line I start making a show of sniffing and making faces, then I accuse the other people in line of farting. I rarely spend more than 5 minutes in any line.

      • Uncle Al

        Saul Alinsky lives!

  • OWilson

    In our bank there’s a rope line.

    I play a math game trying to estimate when I’ll be in front of one of the 4 tellers.

    But it always seems when I get to the front of the rope line, one teller always seems to go for a break, and another two have a deep conversation, reducing the servers to 1 or 2.

    It happens often enough to be compared to dropping the bread butter side down. :)

    • Uncle Al

      It is my observation that the bread always lands butter side down, even if both sides are buttered. Mythbusters is definitive.

      • Mike Fowler

        I stop working hard at shopritte and afterwards from now on I am getting $75-97$ p/hour. How? I am working on-line! My employment didn’t actually make me joyful hence I have decided to take an opportunity on something new…after just 4 years it wasn’t easy to resign my day employment but now I couldn’t be pleased.>>> S.ID/3Bm

      • OWilson

        The “Gore Effect” states that every protest demonstration against global warming will experience unusually cold weather!

        While the hoi polloi were in the fancy Paris Ballroom drinking chardonnay and opining on the weather, as The Greatest Threat to Mankind, outside a real threat was murdering 143 innocent civilians!

        Sometimes I think there IS a god!

        • Conuly

          I’m going to regret asking, but exactly what do you imagine “hoi polloi” means?

  • OWilson

    It is similar to the Mall Parking Paradox.

    Should you take the first spot you find in a busy parking lot, or drive around hoping to find a spot closer to the entrance?


The Crux

A collection of bright and big ideas about timely and important science from a community of experts.

See More


Discover's Newsletter

Sign up to get the latest science news delivered weekly right to your inbox!

Collapse bottom bar