Queueing Calculator: M/M/1 and M/M/c Waiting Times with Erlang C
By FindMySum · Last reviewed
A queueing calculator estimates how long people or jobs wait when work arrives at random and a fixed number of servers handle it. Enter the arrival rate, the average service time and the number of servers, and it gives the utilisation, the chance of having to wait, the average wait and queue length, and the share served within a target time. It covers the M/M/1 queue (one server) and the M/M/c queue (several servers sharing one line), the models behind Erlang C staffing in call centres.
The model
Queueing theory names a model by its arrivals, its service times and its servers. M/M/c means:
- M (arrivals): random, independent arrivals at an average rate λ, a Poisson process. Calls to a help line, requests to a website and customers at a counter all come close to this when many independent people are involved.
- M (service): service times vary randomly around an average S, following an exponential distribution.
- c servers: agents, checkouts, worker threads or machines, all taking from one shared queue in arrival order.
Set c to 1 and you have M/M/1, the simplest queue.
Offered load and utilisation
The first number to look at is the offered load:
a = arrival rate × service time
measured in Erlangs: how many servers would be busy if work could be spread perfectly. The calculator opens with 100 arrivals an hour taking 3 minutes each: 100 × 3 ÷ 60 = 5 Erlangs. With 6 servers, utilisation is 5 ÷ 6 = 83.3%.
If the offered load reaches the number of servers, the queue is unstable: on average more work arrives than can be done, and the line grows without limit. The calculator says so and gives the minimum number of servers, here 6.
Waiting: Erlang C
Even below 100% busy, random bunches of arrivals mean some must wait. The Erlang C formula gives the probability that an arrival finds every server busy. From it follow the rest:
average wait = C ÷ (c ÷ S − λ)
share served within t = 1 − C × e^(−(c ÷ S − λ) × t)
average queue length = λ × average wait (Little's law)
For the default example, C is 58.8%: more than half of arrivals wait. The average wait is 105.8 seconds, about 1 minute 46 seconds, and only 47.4% are served within 20 seconds. Those who do wait average 3 minutes, because the queue drains at c ÷ S − λ = 1 arrival every 180 seconds.
The staffing table
The breakdown table shows the same traffic with other numbers of servers, and it carries the most useful lesson of queueing theory. Adding one server to the default example, 7 instead of 6, drops utilisation to 71.4% but cuts the chance of waiting from 58.8% to 32.4% and the average wait from 106 seconds to 29 seconds. The service level within 20 seconds rises from 47% to 74%. Near full utilisation, a little more capacity buys a lot less waiting; further servers help less and less.
That is also why systems run "hot" feel slow. For M/M/1, the average time in the system is the service time divided by (1 − utilisation): 5 times the service time at 80% busy, 10 times at 90%, 100 times at 99%.
Bigger pools are more efficient
Compare one large pool with several small ones at the same utilisation. 360 calls an hour of 4 minutes each is 24 Erlangs; 30 agents run at 80% busy. Only 17.3% of callers wait, averaging under 7 seconds, and 89.5% are answered within 20 seconds. Split the same traffic into 6 teams of 5 agents, each with its own queue, and waits are many times longer, because an idle agent in one team can't help a caller waiting for another. Pooling servers behind one queue is one of the cheapest ways to cut waits.
Using the results
The model gives steady-state averages for a constant arrival rate, so plan for the busiest period. Real systems differ from the assumptions: people hang up when they wait too long, service times may be steadier or more variable than the exponential model, and staff take breaks. Treat the numbers as a planning baseline, then add a margin and compare with what you measure.
More questions
What is the difference between Erlang B and Erlang C?
Erlang B is for systems with no queue: an arrival that finds every server busy is turned away, as on old telephone trunks, and the formula gives the share blocked. Erlang C is for systems where arrivals wait in line until a server is free, which is this calculator's model.
Can I use this for web servers and thread pools?
As a first estimate, yes. Treat each worker thread or process as a server, the request rate as arrivals and the average handling time as the service time. Real request times vary less or more than the exponential model assumes, and servers often share CPUs, so confirm with a load test.
What is a service level of 80/20?
A contact-centre target: 80% of calls answered within 20 seconds. The calculator's service level is the share answered within the target wait, 1 − C × e^(−(cμ − λ)t), so enter 20 seconds and add agents until it reaches 80%.
What is shrinkage?
The share of paid staff time when agents are not available to take calls: breaks, training, meetings, absence. If the calculator says 30 agents and shrinkage is 30%, you need 30 ÷ 0.7 ≈ 43 agents scheduled. Shrinkage isn't in the queueing formula, so apply it afterwards.
Why should the arrival rate be for the busiest period?
Because the formulas give steady-state averages for a constant rate. Averaging a quiet morning with a busy afternoon understates the afternoon's waits badly, since waits grow much faster than linearly with load. Work with the busiest 15-minute or 1-hour interval you need to handle.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.