Module 5, lesson 4 · 45 minutes
The Queue: Little's law and the lying-in-state
Little’s law turns a 10-mile queue from a mystery into arithmetic, and shows why closing a queue is a control action, not a failure.
You’ll be able to
- state Little’s law, L = λW, and use it to link the size of a queue, its throughput and the wait;
- model a queue as arrivals against service, and turn a number of people into a length of queue;
- explain closures and wait-time warnings as control actions, and apply all of this to the September 2022 queue.
Introduction
In September 2022 the coffin of Queen Elizabeth II lay in state in Westminster Hall, open 24 hours a day from 5 pm on 14 September to 6.30 am on 19 September
Ten miles of people sounds like chaos. It was arithmetic. Three numbers and one law tell you how long that queue had to be, and the same law tells you what the organisers could and could not control.
Little’s law
Stand at the back of a queue that is moving steadily, and ask how many people are in front of you. Everyone ahead of you will be served before you, and you will wait W hours. If the queue is served at μ people an hour, then μ × W people will go through in that time: exactly the people in front of you. So the queue holds μW people.
That is
L = λ · W so Q = μ · W for a queue served at capacity
- L, Q
- people in the queue
- λ
- rate through it, people/h
- μ
- service rate, people/h
- W
- time each person spends in it, h
Figure 1 shows the same thing with
The 2022 queue in three lines of arithmetic
The real hourly rates were never published, so the first step is to estimate one from the facts.
- Throughput. From 5 pm on 14 September to 6.30 am on 19 September is 109½ hours
. About 250,000 people filed past . That averages 250,000 ÷ 109.5 ≈ 2,300 people an hour, about 38 a minute. This is our arithmetic, not a published figure. - People in the queue. A wait of 24 hours at 2,300 an hour means 24 × 2,300 ≈ 55,000 people were queuing. Every one of them would be served in the next day.
- Length. Suppose the queue was 2.5 m wide and people stood at 1.5 per square metre. Each metre of queue then holds 2.5 × 1.5 = 3.75 people, and 55,000 people need 55,000 ÷ 3.75 ≈ 14,700 m: about 14.7 km, or 9 miles.
The reported maximum was about 10 miles, or 16 km
Packing the queue tighter makes it shorter but not faster. The person at the back waits Q ÷ μ hours whatever the queue looks like. To cut the wait you must serve faster or let fewer people join.
Arrivals against service
While people arrive faster than they are served, the queue grows at the difference between the two rates. If 3,000 people an hour arrive and 2,300 are served, the queue gains 700 an hour: 7,000 more after 10 hours, and each newcomer then faces about 7,000 ÷ 2,300 ≈ 3 hours more wait. When arrivals fall below the service rate, overnight for example, the queue drains at the difference. A queue like this is a running total, not a fixed object, and that is how the model below works.
A model of the queue
The model steps through the five days a tenth of an hour at a time. Each step it adds the people who arrive, subtracts the people served, and works out the wait (queue ÷ service rate) and the length (queue ÷ density ÷ width). Arrivals follow a daily pattern: busy from 9 am to 9 pm, quieter after midnight. Two rules close the queue, described in the next section.
- Keep the defaults. Read the most people queuing, the longest wait and the Little’s law check. Why do the first and last agree?
- Drag the time cursor through 16 September. When does the model first close the queue, and what happens to the wait while it is closed?
- Untick “Final closure”. How many people are still queuing at 6.30 am on the 19th?
- Set daytime arrivals to 3,500 and overnight to 1,500 an hour. Does the wait ever reach 24 hours?
- Raise the service rate to 3,000 an hour. What happens to the wait, and to the number of people who file past?
- Change the density to 3 p/m² and the width to 4 m. Which outputs change, and which do not?
Little’s law makes the 10-mile line arithmetic rather than mystery: 24 h × 2,300/h ≈ 55,000 people, which is about 15 km at 1.5 p/m² and 2.5 m wide. Density and width change only the length. The wait depends only on how many people are queuing and how fast they are served, so the only levers on the wait are the service rate and who is allowed to join.
A deterministic model consistent with the reported facts, not a reconstruction of what happened. The real arrival and service rates were not published. Service defaults to 2,300 an hour, our estimate from about 250,000 people over 109½ hours
| Quantity | Reported | Model (defaults) |
|---|---|---|
| Open | 5 pm 14 Sept to 6.30 am 19 Sept 2022 | The same 109½ hours |
| People who filed past | About 250,000 | About 251,000 |
| Longest queue | About 10 miles (16 km) | 14.7 km (9.2 miles) at 1.5 p/m² and 2.5 m wide |
| Longest wait | More than 24 hours | 24 hours, held there by the closure rule |
| Closure | Temporarily declared closed on 16 Sept | First closes on 16 Sept, mid-afternoon |
Closing a queue is a control action
Closing the queue to newcomers is often reported as something going wrong. In queueing terms it is the organisers using one of the only two levers they have. The service rate is limited by the space and time it takes people to file past; the number of people allowed to join is not. The model uses two closure rules.
- Temporary closure. When the wait passes a limit (24 hours by default), stop admitting people until it falls below a lower one (20 hours). The queue stops growing, so by Little’s law the wait stops rising. It does not get any shorter for those already in it: they are still served at the same rate.
- Final closure. Stop admitting people once the wait equals the time left before the hall closes. Anyone who joins later cannot be served. Without this rule, the model leaves tens of thousands of people queuing when the doors shut at 6.30 am on the 19th.
The third lever is information. Telling people the expected wait changes who decides to come, which changes the arrival rate. Warnings of 24-hour waits were issued in 2022
Suppose the hall could have filed people past at 3,000 an hour instead of 2,300, and the wait was still held at 24 hours by closures. How many people would the queue have held, and how long would it have been at 1.5 p/m² and 2.5 m wide?
Q = μW = 3,000 × 24 = 72,000 people. Each metre holds 3.75 people, so the queue would be 72,000 ÷ 3.75 ≈ 19,200 m, about 19 km. A faster hall with the same wait limit means a longer queue, because more people can be served within the day you have promised them. What it buys is more people through in the same five days.
Altenburg and the queue: what is reported
The queue appears in the Start Right story. The World Marathon Majors magazine reports that Marcel Altenburg’s prediction for it came “within 50 metres and 14 seconds”
What you can say with confidence is that the arithmetic in this lesson is the kind any planner, Altenburg included, would start from: a service rate, a wait and Little’s law give the size of the queue, and a density and a width turn that into a distance.
- “A longer queue always means a longer wait.” Only at a fixed service rate and density. Pack people tighter and the queue gets shorter while the wait stays the same; serve faster under the same wait limit and the queue gets longer.
- “Closing the queue shortens the wait for the people in it.” It stops the wait growing. The people already queuing are served at the same rate as before.
- “A 10-mile queue must have been badly planned.” The length follows from the demand, the service rate and the wait people were prepared to accept. The planning questions are whether the wait limit was right and whether the people in it were safe and looked after along the way.