Queueing Theory Calculator (M/M/1, M/M/c)
Enter how often customers arrive and how fast each server works, and get the utilisation, queue length, waiting time, chance of waiting and service level, plus a staffing table with costs.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Choose the model
Pick M/M/c, M/M/c/K, M/G/1 or G/G/c and the time unit.
- 2Enter the rates
Type the arrival and service rates or the mean times between arrivals and of service.
- 3Set the servers
Enter the number of servers, the system capacity or the variability if needed.
- 4Read the results
Check utilisation, chance of waiting, queue length, waits and service level.
- 5Plan staffing
Set costs and targets and read the staffing table and chart.
- 6Export
Download the staffing CSV, save the charts or print the report with formulas.
Sobre aquesta eina
Queueing theory predicts how long people, calls, jobs or trucks wait when they arrive at random and are served by a limited number of servers. It answers practical questions such as how many cashiers to open, how many agents a support line needs to answer 80 percent of calls within 20 seconds, or whether a single loading dock will cope with an extra delivery an hour. This calculator covers the standard models. M/M/1 is a single server with random arrivals and random service times. M/M/c extends it to c identical servers fed from one line, using the Erlang C formula, computed through a stable recursion so that hundreds of servers cause no overflow. M/M/c/K adds a waiting-room limit and reports how many arrivals are turned away. M/G/1 uses the Pollaczek-Khinchine formula for any service-time spread, from constant to highly variable, and G/G/c gives the Allen-Cunneen approximation when arrivals are not random either. You can enter rates or mean times in hours, minutes or seconds. The staffing table lists every server count from the smallest stable one upward with utilisation, chance of waiting, average wait, service level and the total cost of servers plus waiting time, and highlights both the cheapest option and the fewest servers that meet your targets.
The key numbers
Utilisation ρ = λ ÷ (cμ) is the share of time a server is busy, and it must stay below 1 or the line grows forever. Lq and L are the average numbers waiting and in the system; Wq and W are the matching average times. Little's law, L = λW, links them. For a multi-server line the Erlang C probability gives the share of arrivals who find every server busy, and the service level is the share answered within a target time t: 1 − P(wait) × e^(−(cμ − λ)t). Waits rise very steeply as utilisation approaches 100 percent, which is why a small change in demand can turn a calm line into a long one.
Worked example
A bank teller serves 12 customers an hour and 10 arrive an hour. As an M/M/1 queue, utilisation is 83.3%, an average of 4.17 customers wait in line and 5 are in the system, the average wait is 0.417 hours (25 minutes) and the average visit lasts 30 minutes. A second teller cuts the wait to about 1 minute. The call-centre sample receives 200 calls an hour with a 3-minute handling time, an offered load of 10 erlangs. With 11 agents the probability of waiting is 68.2%, the average speed of answer is 122.8 seconds and only 39.0% of calls are answered within 20 seconds. Thirteen agents raise that to 79.6% and fourteen to 88.8%; with the example costs, thirteen agents give the lowest total cost per hour.
Limits
The formulas describe steady state over a long run and do not capture the morning rush or a queue that starts empty. They assume one shared line, customers who do not give up, and servers who work at the same speed. Real call centres add abandonment and shift patterns that need Erlang A or a simulation, and this tool does not model them.
Exemple resolt
Call centre, 200 calls/hour, 3-minute calls, 11 agents: P(wait) 68.2%, average answer 122.8 s, 39.0% within 20 s.
En resum
- Categoria: Matemàtiques i ciència
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: Gross, Shortle, Thompson and Harris, Fundamentals of Queueing Theory, 4th edition (Wiley 2008)
Preguntes freqüents
What do M/M/1 and M/M/c mean?
Kendall's notation lists the arrival process, the service-time distribution and the number of servers. M stands for Markovian, meaning random (Poisson) arrivals or exponential service times. M/M/c has both random, with c servers sharing one line.
Why does the calculator say the queue is unstable?
When the arrival rate is at least the total service rate cμ, servers cannot keep up and the queue grows without limit. Add servers, speed up service, or use M/M/c/K if arrivals are turned away when the room is full.
How do I convert handling time into a service rate?
The service rate is one divided by the mean service time. A 3-minute call gives 20 calls an hour per agent. You can also switch the input to mean times and the tool does the conversion.
What is the service level?
It is the share of customers who wait no longer than a target time, such as 80% of calls answered within 20 seconds. The tool computes it exactly for M/M/c and shows it in the staffing table.
When should I use M/G/1 or G/G/c?
Use them when service times are more regular or more variable than exponential. Enter the coefficient of variation, the standard deviation divided by the mean: 0 for constant service and 1 for exponential.
Where do the staffing costs come from?
They are example figures for a server's hourly cost and the cost you assign to one customer waiting an hour. Replace them with your own wages and estimates to find the cheapest staffing level.
