Queueing theory examines how items or people wait in line for service. An M/M/1 system, one of the simplest models, has a single server, random (memoryless) arrivals at rate , and exponentially distributed service times with rate . The notation "M/M/1" indicates Markovian arrivals and service with one server. Though seemingly abstract, this model approximates call centers, help desks, or manufacturing stations where tasks arrive unpredictably and the server handles one at a time.
Several performance measures follow from basic probability. The utilization factor is . When approaches 1, the server is busy nearly all the time and the queue grows. The average number of customers in the system is , and the average waiting time in the system equals . The queue-only metrics exclude the customer being served: and .
The arrival rate represents how many customers or jobs enter the system per unit time. For example, if a help desk receives 10 calls per hour, then is 10 per hour. The service rate is how many tasks the server can complete per unit time, such as handling 12 calls per hour. To maintain a stable system, must be greater than . Otherwise, the queue length grows indefinitely.
Suppose customers arrive at 5 per hour () and the server can process 7 per hour (). The utilization is , about 0.71. The average number of customers in the system is , approximately 2.45. The average time each customer spends in the system is or about 0.49 hours (roughly 29 minutes). The queue alone averages ≈ 1.74 customers, with an average wait in line of , about 0.35 hours. These formulas appear intimidating at first glance, but they reveal how small improvements in service rate can dramatically reduce wait times.
Enter your arrival rate and service rate in the form above. The script checks that the service rate exceeds the arrival rate, then computes utilization, average number of customers in the system (), queue length (), and both waiting times ( and ). All calculations happen locally in your browser, so you can experiment without sending data anywhere.
Metric | Expression |
---|---|
Utilization | |
System Size | |
Queue Size | |
System Wait | |
Queue Wait |
M/M/1 analysis traces back to early 20th-century telephone engineering, where waiting callers irritated customers and wasted operator time. Agner Krarup Erlang, a Danish mathematician, developed the foundational models to predict call congestion and staffing needs. His pioneering work now informs diverse fields—from computer networks and manufacturing to healthcare and transportation. While real systems can be far more complex with multiple servers, priorities, or non-exponential behaviors, the M/M/1 queue remains an essential building block that illustrates how randomness impacts capacity planning.
Reducing wait time can involve increasing the service rate, splitting customers between multiple servers, or smoothing the arrival process. Even small changes to can yield outsized reductions in . For instance, improving service speed from 10 to 12 customers per hour while arrivals remain at 9 per hour cuts the average waiting time in half. Alternatively, shifting arrivals away from peak periods reduces so the system spends less time congested.
The M/M/1 model assumes a memoryless arrival process (Poisson) and exponential service times, which may not perfectly match reality. Some systems have fixed service durations or bursts of arrivals. However, the general relationships still offer intuition about how variability and utilization affect delays. If your environment violates these assumptions heavily, more sophisticated models like M/G/1 or simulations may be necessary.
This calculator demystifies the mathematics behind everyday lines. By entering just two rates, you gain insight into how busy your server is likely to be, how many customers may be waiting, and how long they might stand in line. Because all computation occurs locally, you can experiment freely with different scenarios to improve staffing or capacity decisions. The elegant formulas of the M/M/1 model provide surprisingly deep understanding for such a simple system.
Compute the Hadamard product of two matrices of the same size.
Compute optimal subsurface drainage tile spacing using soil hydraulic conductivity, drain depth, desired water table height, and drainage coefficient.
Calculate the basic reproduction number (R0) for an infectious disease using contact rate, transmission probability, and infectious period.