Business
Queue Calculator (M/M/1 Waiting Time and Queue Length)
Queues are everywhere: customers at a counter, calls to a help desk, cars at a toll booth, print jobs, web requests and data packets. Queueing theory, founded by the Danish engineer Agner Krarup Erlang in the early twentieth century to design telephone exchanges, describes how long people and jobs wait. The simplest and most widely taught model is the M/M/1 queue. It assumes that arrivals happen at random with an average rate λ, following a Poisson process, that service times are random and exponentially distributed with an average rate μ, and that there is one server serving in order of arrival. Under these assumptions the important results have simple formulas. The utilisation, the share of time the server is busy, is λ divided by μ, and the queue is stable only if it is below 100 percent. The average number of customers in the system is ρ divided by one minus ρ, and the average time a customer spends in the system is one divided by μ minus λ. The average waiting time before service begins is ρ divided by μ minus λ. These results reveal a surprising fact: waiting times grow explosively as utilisation approaches 100 percent. With 8 arrivals and a capacity of 10 per hour, the server is busy 80 percent of the time and the average wait is 24 minutes; at 9 arrivals per hour, 90 percent utilisation, the wait rises to 54 minutes. This is why systems need spare capacity. The results also satisfy Little’s law, which says that the average number in a system equals the arrival rate times the average time spent there. Real queues often have several servers or less random patterns, needing more advanced models such as M/M/c.
How to use this calculator
- Enter the average arrival rate, for example customers per hour.
- Enter the service rate: how many customers one server can handle per hour.
- Check that the arrival rate is below the service rate.
- Read the average waiting time and queue length.
- Try different rates to see how waits change with utilisation.
Why utilisation targets matter
Because waiting time rises steeply near full utilisation, many service designers aim for utilisation well below 100%, often around 70–85%, depending on how costly waiting is.
Small increases in capacity near the limit can dramatically cut waits: raising μ from 10 to 11 per hour at λ = 8 cuts the average wait from 24 to about 15 minutes.
Variability
Queues form because of variability in arrivals and service times. Reducing variability, for example with appointments or standardised service, shortens queues even without extra capacity.
Models with more servers show that pooling servers into one shared queue usually reduces waiting compared with separate queues.
Formula & method
Utilisation ρ = λ ÷ μ (must be below 1 for a stable queue)Average number in the system L = ρ ÷ (1 − ρ); in the queue Lq = ρ² ÷ (1 − ρ)Average time in the system W = 1 ÷ (μ − λ); waiting time Wq = ρ ÷ (μ − λ)Satisfies Little’s law: L = λ × Wρ = λ ÷ μ. L = ρ ÷ (1 − ρ). Lq = ρ² ÷ (1 − ρ). W = 1 ÷ (μ − λ). Wq = ρ ÷ (μ − λ). P(idle) = 1 − ρ.
Worked example
8 customers per hour, capacity 10 per hour
- Utilisation ρ = 8 ÷ 10 = 80%.
- Average wait Wq = 0.8 ÷ (10 − 8) = 0.4 h = 24 min.
- Average number waiting Lq = 0.64 ÷ 0.2 = 3.2.
Answer: Customers wait about 24 minutes on average, with about 3 people in the queue.
Frequently asked questions
Why does waiting time explode near 100% utilisation?
With random arrivals, there are periods when customers bunch together; as utilisation approaches 100% there is no spare capacity to catch up, so the queue grows without limit.
What does M/M/1 assume?
Random (Poisson) arrivals, exponentially distributed service times, one server and first-come-first-served order; real queues can differ, but the model captures the key trade-offs.
What is Little's law?
The average number in a system equals the arrival rate multiplied by the average time each item spends in it.
What if I have several servers?
Use an M/M/c model; multiple servers sharing one queue reduce waits more than the same servers with separate queues.
Can I use minutes instead of hours?
Yes, use the same time unit for both rates; waiting times are shown in minutes assuming hourly rates.
Who founded queueing theory?
Agner Krarup Erlang, who studied telephone traffic in Copenhagen in the early 1900s.