Queuing Theory in Healthcare

Decision Sciences
Introduced by
Agner Krarup Erlang
Year
1909
Type
Stochastic modeling and optimization technique
Family
Operations research, Service management

What does it do?

Queuing theory is a mathematical discipline that models waiting lines, service capacity, and patient flow.

Agner Erlang began the analysis of random telephone traffic in 1909, which is generally regarded as the origin of the field. It has since been applied in healthcare to analyze emergency departments, outpatient clinics, surgical suites, and diagnostic services.

The intuition behind the method

Queuing problems arise when demand for service varies unpredictably and service capacity is fixed or limited. In healthcare, patients arrive at irregular intervals, their service times vary, and providers have capacity constraints. Queuing theory uses probability and statistics to predict queue lengths, wait times, and system utilization without needing to simulate every patient. By understanding these relationships, managers can decide how many staff members, beds, or equipment units are needed to achieve acceptable service levels.

History

Agner Erlang began the analysis of random telephone traffic in 1909, work that is generally regarded as the origin of queuing theory. David Kendall formalized the mathematical treatment of queues in 1953, and the classification scheme used on this page, Kendall notation, is named after him. Healthcare applications came later, as operations research methods were applied to emergency department flow, surgical scheduling, and outpatient clinic management. Extensions to nonexponential service times and time-varying arrivals have made the theory more applicable to real healthcare systems.

When to use it

Use queuing theory when a service faces irregular demand and capacity that cannot be changed quickly, such as an emergency department, an outpatient clinic, or a diagnostic scanner, and the question concerns how capacity relates to waiting. It is suited to planning questions that need fast estimates of how waits respond to changes in staffing or service time. The standard models assume that arrivals and service times can be treated as random, that the system is in steady state rather than in start-up or shutdown, and that the queue discipline (for example first-come first-served or priority) is clearly defined. Do not rely on it when arrivals are strongly scheduled or have several peaks in the day, when demand shifts substantially over the period of interest, or when patients abandon the queue or move between stations in ways the standard formulas cannot represent. In those cases simulation is usually the better tool.

Limitations and considerations

  • Standard models assume Poisson arrivals and exponential service times; these assumptions are often poor for scheduled clinic arrivals or for procedures with fixed or narrowly distributed durations.
  • Basic formulas do not represent patient abandonment (reneging) or complex routing between stations, so waits can be misestimated where impatient patients leave or where patients move between linked services.
  • Steady-state results assume stationary demand and do not describe time-of-day or seasonal surges, which are common in emergency departments.
  • Predictions depend on the assumed distribution shape and on the estimated rates; errors in these inputs can produce large differences in predicted waits, especially at high utilization.
  • A single formula handles interactions between linked stations and priority policies poorly, so such systems usually need decomposition or simulation.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives closed-form expressions for mean waiting time, queue length, and utilization in the standard models, so these can be estimated from arrival rate, service rate, and number of servers alone.
  • Makes what-if comparisons direct: changing the number of servers or the service rate in the formulas shows how the predicted wait responds, which supports staffing discussions.
  • Kendall notation states the arrival process, service process, number of servers, and capacity in a compact form, so models can be compared across studies.
  • Shows that waiting rises nonlinearly with utilization, which helps explain why a small loss of capacity can produce a large increase in waits.
  • Computationally cheap compared with simulation, so it can be used for early screening before a detailed model is built.

Applications

  • Predicting emergency department wait times and determining physician and nurse staffing needed to reach a target service level
  • Analyzing outpatient clinic capacity and deciding whether to add appointment slots, parallel clinics, or shift changes
  • Evaluating surgical suite utilization and estimating turnover times to support schedule planning
  • Assessing diagnostic imaging capacity (CT, MRI, ultrasound) and placing maintenance windows in the schedule
  • Planning call center staffing for patient scheduling and advice lines based on expected call volume and target answer times

How it works

How it works

1

Collect data on patient arrival patterns (inter-arrival times), service times (how long treatment takes), and the number of servers (physicians, nurses, beds, scanners). Data should span multiple weeks or months so that variation and seasonality are captured.

2

Summarize arrivals and service times as probability distributions, for example exponential or normal. Test whether the observed data fit these distributions using goodness-of-fit tests such as Kolmogorov-Smirnov or Anderson-Darling. The fit determines whether standard closed-form formulas are a reasonable approximation.

3

Identify the queue structure: single or multiple servers, a single queue or several queues, and whether priority rules apply (for example, emergency patients before scheduled patients, or scheduled before walk-in). Each structural choice changes which formulas are valid.

4

Specify the queuing system in Kendall notation, for example M/M/c/N, which denotes Markovian arrivals, Markovian service, c servers, and system capacity N. Then calculate steady-state metrics such as average queue length, average wait time, and server utilization. Steady-state metrics are meaningful only when utilization is below 100%. For the multi-server case M/M/c with infinite capacity, let a = λ/μ and utilization ρ = λ/(cμ). The probability that an arriving patient must wait is given by the Erlang C formula: C = [a^c / (c!(1 − ρ))] / [Σ(n=0 to c−1) a^n/n! + a^c/(c!(1 − ρ))]. The mean number waiting is Lq = C·ρ/(1 − ρ), the mean wait in queue is Wq = Lq/λ, and Little's law, L = λW, relates the mean number in the system to the mean time in the system. Arrival and service rates must be expressed in the same time unit. Finite-capacity systems (M/M/c/N), and systems with abandonment, require different expressions and are not covered by these relations. Standard textbooks such as Gross et al. (2008) derive these results.

5

Determine whether current capacity meets the service target, for example 90% of patients seen within 4 hours. If it does not, identify whether to add servers, reduce service time, or change triage. Before acting, work through three checks. First, compare the predicted waits with the service target. The mean formulas above do not directly give the proportion of patients seen within a time limit; that proportion requires the waiting-time distribution or a simulation. Second, confirm that utilization is below 100% and that the arrival pattern is stable over the period of interest, because steady-state results describe only the average situation and do not capture peaks or shifts in demand. Third, rerun the model with plausible high and low arrival rates and service times, and base the decision on whether the conclusion holds across that range.

Common pitfalls

  • Treating scheduled or multi-peaked arrivals as Poisson, which can misstate waits during the peaks even when daily averages look reasonable.
  • Applying standard formulas to a mixed system of emergency and routine patients without separating the classes, since priority rules change who waits and for how long.
  • Reading steady-state averages as the experience of a particular day or of the worst shift.
  • Using mean service time when service-time variability is high; variability increases waits beyond what the mean alone suggests.

Frequently asked questions

What is the M/M/1 queue and when is it used?

M/M/1 describes a single-server queue with Poisson arrivals and exponentially distributed service times. It can be a reasonable first model for a single check-in desk, a lone imaging scanner, or one provider when arrivals and service times are roughly random and demand is well below capacity. The mean time a patient waits in the queue before service is Wq = λ / (μ(μ − λ)), where λ is the arrival rate and μ is the service rate. Both rates must be expressed in the same time unit (for example, per hour), so Wq is returned in that unit. The mean total time in the system, including service, is W = 1/(μ − λ). This exceeds Wq by the mean service time 1/μ.

How does adding one more provider reduce wait time?

The effect is nonlinear and depends on current utilization. At low utilization (for example, a server busy 30% of the time), adding capacity has little impact on waits. At high utilization (for example, 85% busy), adding one server can reduce waits substantially. This is one reason that systems run close to full capacity can show long waits.

Can I use queuing theory if patients arrive by appointment?

Partially. Scheduled arrivals reduce randomness and are more predictable, but appointment systems still have no-shows, cancellations, and variable service times. A hybrid model with some scheduled and some walk-in patients is common in healthcare. If arrivals are highly deterministic, as with fixed appointment slots, simulation may be the better approach.

What does 'utilization' mean and how does it affect wait time?

Utilization (ρ = λ / (c × μ)) is the fraction of total server capacity in use. A utilization of 70% means that servers are busy 70% of the time on average. In the standard infinite-capacity models, mean waits grow rapidly as utilization approaches 100%, and the steady-state formulas do not apply at or above 100%. Finite-capacity systems and systems with patient abandonment are not described directly by these formulas, so the trend should be checked against the specific model. The formulas show this trade-off between efficiency and waiting but do not set a target level for a given service.

How do I choose between adding staff and improving efficiency (reducing service time)?

Both can reduce waits, but they act differently. Shorter service times reduce the workload each server carries and do not add staff cost. Adding a server increases the number of parallel servers, and its effect depends on how loaded the system already is. Process improvements are often examined first for this reason, but the size of the benefit of each option should be estimated with the model rather than assumed to be equal.

Related methods

Sources

  1. Erlang, A. K. (1909). The theory of probabilities and telephone conversations. Nyt Tidsskrift for Matematik, 20(B), 33–39.

    Open publication reference
  2. Kendall, D. G. (1953). Stochastic processes occurring in the theory of queues and their application to the theory of failures. Annals of Mathematical Statistics, 24(3), 338–354.

    Open publication reference
  3. Gross, D., Shortle, J. F., Thompson, J. M., & Harris, C. M. (2008). Fundamentals of Queuing Theory (4th ed.). John Wiley & Sons.

    Open publication reference