Free Queueing Theory Calculator

Queue Model

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 A/B/cA/B/c. Letters AA and BB denote the probability distributions of inter‑arrival times and service times, while cc 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 A/B/c/K/N/DA/B/c/K/N/D 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 λ\lambda (average arrivals per time unit),
  • service times are exponentially distributed with rate μ\mu (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 ρ=λ/μ<1\rho = \lambda / \mu < 1. If ρ≥1\rho \ge 1, 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: ρ=λμ\rho = \dfrac{\lambda}{\mu}
  • Average number in system: L=ρ1−ρL = \dfrac{\rho}{1 - \rho}
  • Average time in system: W=1μ−λW = \dfrac{1}{\mu - \lambda}
  • Average number in queue: Lq=ρ21−ρL_q = \dfrac{\rho^2}{1 - \rho}
  • Average time in queue: Wq=ρμ−λW_q = \dfrac{\rho}{\mu - \lambda}
  • Probability of empty system: p0=1−ρp_0 = 1 - \rho
  • Probability of nn customers: pn=ρn(1−ρ)p_n = \rho^n (1 - \rho)

These relationships allow you to quickly evaluate a waiting line’s performance using nothing more than λ\lambda and μ\mu.

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 μ\mu, giving a combined service capacity of sμs\mu. Traffic intensity is redefined as ρ=λ/(sμ)\rho = \lambda / (s\mu); again, ρ<1\rho < 1 is required for stability.

The steady‑state probability of zero customers in the system takes a more complex form:

p0=[∑k=0s−1(sρ)kk!+(sρ)ss!⋅11−ρ]−1p_0 = \left[ \sum_{k=0}^{s-1} \frac{(s\rho)^k}{k!} + \frac{(s\rho)^s}{s!} \cdot \frac{1}{1 - \rho} \right]^{-1}

From p0p_0 you can compute the average queue length:

Lq=(sρ)sρs! (1−ρ)2⋅p0L_q = \frac{ (s\rho)^s \rho }{ s! \, (1-\rho)^2 } \cdot p_0

The average number in the system is L=Lq+sρL = L_q + s\rho, and waiting times follow from Little’s law:

Wq=Lqλ,W=LλW_q = \frac{L_q}{\lambda}, \qquad W = \frac{L}{\lambda}

An important additional metric is the probability that an arriving customer finds all servers busy and must wait – the Erlang C formula:

C(s,α)=(sρ)ss!⋅11−ρ∑k=0s−1(sρ)kk!+(sρ)ss!⋅11−ρC(s, \alpha) = \frac{ \frac{(s\rho)^s}{s!} \cdot \frac{1}{1-\rho} }{ \sum_{k=0}^{s-1} \frac{(s\rho)^k}{k!} + \frac{(s\rho)^s}{s!} \cdot \frac{1}{1-\rho} }

where α=λ/μ\alpha = \lambda / \mu.

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 λ\lambda,
  • service rate μ\mu,
  • for M/M/s: number of servers ss.

The tool instantly returns utilization ρ\rho, average system length LL, average queue length LqL_q, average waiting times WW and WqW_q, and the probability that the system is empty (p0p_0). 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

  1. Select the queue model - M/M/1 for a single server or M/M/s for multiple servers.
  2. Enter the arrival rate (λ) and service rate (μ). For M/M/s, also specify the number of servers (s).
  3. All queue metrics are calculated instantly, including traffic intensity, average wait times, and queue probabilities.