What Is Queueing Theory? The Mathematics of Waiting
By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.
A queue forms whenever things arrive at random and are served one at a time, which covers supermarkets, hospitals, telephone exchanges, aeroplanes waiting to land and packets moving through a network. The mathematics that describes it delivers one counter-intuitive and extremely practical result: waiting time does not rise smoothly as a system gets busier, it explodes.
What the model contains
A queueing system is specified by a handful of quantities, and the standard notation names them in order:
- •The arrival process, meaning how customers turn up, usually modelled as random arrivals at a given average rate, which is the assumption that makes the mathematics tractable
- •The service process, meaning how long each service takes and how variable that duration is
- •The number of servers working in parallel
- •The queue capacity, since some systems turn arrivals away when full
- •The population size, since a queue drawn from a small pool behaves differently from one drawn from an unlimited one
- •The queue discipline, meaning the order of service, which is usually first come first served and may be priority-based, last in first out or shortest job first
- •Utilisation, the ratio of the arrival rate to the total service capacity, which turns out to be the quantity that governs everything
Why busy systems collapse
The central result is that average waiting time depends on utilisation in a way that is mild until it is catastrophic. At fifty percent utilisation a system is comfortable. At eighty percent the queue is noticeably longer. At ninety percent the average wait is roughly double what it was at eighty, and at ninety-five percent it doubles again, with the curve rising towards infinity as utilisation approaches one hundred percent. The reason is that a queue only clears during the gaps between arrivals, and as the system gets busier those gaps get shorter and rarer, so a backlog caused by one unlucky run of arrivals has less and less opportunity to be worked off. That is why an emergency department or a motorway or a server running at full capacity does not merely slow down but seizes up, and why the practical rule in operations management is to keep utilisation well below capacity, which looks wasteful on a spreadsheet and is what prevents collapse.
Variability is the other enemy
The second result is that variability, in arrivals or in service times, lengthens queues even when average capacity is more than sufficient. A system where every customer arrives exactly on schedule and takes exactly the same time to serve can run at very high utilisation with almost no queue. Introduce randomness in either and queues appear immediately, because a run of long services or clustered arrivals creates a backlog that takes time to clear while the idle periods that would have cleared it cannot be saved up. That explains why reducing variation frequently does more than adding capacity, and it underlies a great deal of practical process design: appointment systems, which convert random arrivals into scheduled ones; standardised procedures, which reduce service time variation; and triage, which separates long jobs from short ones so that a quick customer is not stuck behind a slow one. Little's law, one of the field's few genuinely general results, states that the average number in the system equals the arrival rate multiplied by the average time spent in it, which holds regardless of the distributions involved and is a useful check on any claimed improvement.
What it says about real queues
Several familiar design decisions follow directly. A single queue feeding several servers outperforms separate queues per server, because no server sits idle while someone waits in another line and because one slow customer delays only their own position rather than an entire line, which is why banks, airports and post offices adopted the arrangement. Priority schemes reduce average waiting overall if short jobs are served first, at the cost of long jobs waiting much longer, which is a genuine fairness trade-off rather than a technical detail. Balking and reneging, meaning customers who refuse to join or who give up partway, change the dynamics and are why visible queue length matters. The field also has a well-developed psychological literature, since perceived waiting differs from actual waiting: unoccupied time feels longer, unexplained waits feel longer, and uncertain waits feel longest of all, which is why estimated wait times, visible progress and something to look at reduce complaints without shortening any queue at all.
The takeaway
Queueing theory models random arrivals meeting limited service capacity, and its central result is that waiting time rises explosively as utilisation approaches capacity, roughly doubling from eighty to ninety percent and again from ninety to ninety-five. Variability in arrivals or service times lengthens queues even when average capacity is sufficient, which is why appointment systems and standardised procedures help. A single queue feeding several servers beats separate lines, and perceived waiting depends heavily on whether the wait is explained and occupied.