Free Queueing Theory Calculator
Enter rates and select a model to see queue metrics
Queueing Theory Explained: From Erlang to the M/M/s Model
Queueing theory is the mathematical discipline that analyzes waiting lines (queues) using probabilistic models. Originating from the work of Danish engineer Agner Krarup Erlang in the early 1900s—who studied telephone network congestion—this framework now underpins capacity planning in countless fields, from retail and healthcare to telecommunications and computing. A dedicated queue analysis tool such as the Queueing Theory Calculator makes these concepts practical by automatically computing key performance metrics based on a few input parameters.
What Is Queueing Theory?
Queueing theory predicts the behavior of waiting lines over the long run, focusing on the steady state where statistical averages stabilize. Core measures include:
- the average number of customers in the queue or in the entire system,
- the average waiting and service times,
- the utilization rate of servers, and
- the probability of encountering a queue of a given length.
Because arrivals and service completions involve randomness, the theory relies on stochastic processes—most commonly the Poisson process for arrivals and exponential distributions for service times.
Key Elements of a Queue and Kendall Notation
Every queue can be described by four basic components:
- Arrival process (how customers enter the line),
- Service process (how long customers occupy a server),
- Number of servers (resources that process customers in parallel),
- Queue discipline (the order in which customers receive service; FIFO is the default).
To classify different queue types, the Kendall notation uses the form . Letters and denote the probability distributions of inter‑arrival times and service times, while is the number of servers. The most common symbols are:
- M – Markovian (exponential) distribution,
- E – Erlang distribution,
- G – General (arbitrary) distribution with known mean and variance.
Extended notation can include queue capacity, population size, and discipline. The simplest and most studied model is the M/M/1 queue: exponential arrivals and service with one server.
The M/M/1 Queue: A Single‑Server Model
The M/M/1 queue assumes:
- arrivals follow a Poisson process with rate (average arrivals per time unit),
- service times are exponentially distributed with rate (average completions per time unit when the server is busy),
- a single server with infinite buffer capacity,
- FIFO discipline.
For the system to be stable, the traffic intensity must satisfy . If , the queue grows without bound and never reaches steady state.
The key queuing theory formulas for M/M/1 are derived from a simple Markov chain and Little’s law:
- Server utilization:
- Average number in system:
- Average time in system:
- Average number in queue:
- Average time in queue:
- Probability of empty system:
- Probability of customers:
These relationships allow you to quickly evaluate a waiting line’s performance using nothing more than and .
The M/M/s Queue: Multiple Servers
When more than one server is available, the model becomes M/M/s. Each server works independently at rate , giving a combined service capacity of . Traffic intensity is redefined as ; again, is required for stability.
The steady‑state probability of zero customers in the system takes a more complex form:
From you can compute the average queue length:
The average number in the system is , and waiting times follow from Little’s law:
An important additional metric is the probability that an arriving customer finds all servers busy and must wait – the Erlang C formula:
where .
How to Use the Queueing Theory Calculator
The Queueing Theory Calculator acts as an M/M/1 queue calculator and an M/M/s queue calculator in one interface. Simply choose the model, then input the known parameters:
- arrival rate ,
- service rate ,
- for M/M/s: number of servers .
The tool instantly returns utilization , average system length , average queue length , average waiting times and , and the probability that the system is empty (). For M/M/s it also provides the Erlang C probability.
This waiting line calculator is ideal for performing “what‑if” analyses—for example, seeing how adding one more server reduces waiting times, or how a change in arrival rate affects queue length. It turns abstract formulas into decision‑ready data, making it an essential queue analysis tool for operations managers and students alike.
Applications Beyond Human Waiting Lines
Queueing theory extends far beyond supermarket queues. It models:
- Telecommunications: packet switching, call‑center staffing,
- Computing: process scheduling, memory management,
- Manufacturing: production line balancing,
- Healthcare: patient flow, appointment scheduling,
- Transportation: airport runway use, traffic flow.
By mastering the fundamentals and applying them with a reliable calculator, you can optimize service efficiency, reduce customer wait times, and make informed resource‑allocation decisions.
FAQ
1. What does the notation M/M/1 stand for in queueing theory?
In Kendall notation, the two M’s mean that both the inter-arrival times and service times follow exponential (Markovian) distributions. The 1 indicates a single server. This is the simplest standard queueing model.
2. Under what condition does an M/M/1 queue remain stable?
The queue is stable when the traffic intensity ρ = λ/μ is less than 1. In other words, the service rate μ must be greater than the arrival rate λ, so the server can eventually clear all customers.
3. How can I calculate the average total time a customer spends in an M/M/1 system?
Use the formula W = 1/(μ - λ), where λ is the arrival rate and μ is the service rate. The average waiting time in the queue is W_q = ρ × W, with ρ = λ/μ.
4. What is the main difference between M/M/1 and M/M/s queues?
M/M/1 has one server, while M/M/s has s servers working in parallel. The formulas for performance measures become more complex for M/M/s: the traffic intensity becomes ρ = λ/(sμ), and the probability p₀ involves a summation and factorial term (Erlang formulas).
How to Use
- Select the queue model - M/M/1 for a single server or M/M/s for multiple servers.
- Enter the arrival rate (λ) and service rate (μ). For M/M/s, also specify the number of servers (s).
- All queue metrics are calculated instantly, including traffic intensity, average wait times, and queue probabilities.