M/M/1 Queue Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Queueing theory studies systems where work arrives over time and must wait for limited service capacity. The M/M/1 model is the simplest widely used queue: arrivals follow a Poisson process (memoryless interarrival times), service times are exponential (memoryless), and there is one server. Even with its simplicity, M/M/1 is a practical first approximation for a single help-desk agent, one checkout lane, one machine on a line, or a single API worker processing jobs one at a time.

What you enter (and units)

You provide two rates in the same time unit:

Important: Keep units consistent. If λ is “per hour,” μ must also be “per hour.” The calculated times (W, Wq) will be in that same time unit (hours in this example).

Stability condition (when the formulas apply)

The classic steady-state M/M/1 results require that the server is fast enough on average:

If λ ≥ μ, the system does not reach a steady state: the expected queue length and waiting time grow without bound, so metrics like L and W are not meaningful as long-run averages.

Key formulas (M/M/1)

Define utilization:

Then the standard M/M/1 steady-state metrics are:

The relationships:

Equivalent and often useful identities:

MathML (for unambiguous rendering)

ρ = λ μ , L = ρ 1 - ρ , W = L λ

How to interpret the results

Because M/M/1 is nonlinear in μ - λ, small increases in service rate (or small decreases in arrival rate) can produce large reductions in W and Wq when utilization is already high.

Worked example

Suppose:

1) Utilization:

2) Average number in system:

3) Average number waiting:

4) Average time in system and in queue:

Sanity check: mean service time is 1/μ = 1/7 hour ≈ 8.6 minutes. And W ≈ Wq + 1/μ ≈ 21.4 + 8.6 = 30 minutes.

Formula summary table

Metric Meaning Expression (M/M/1)
ρ Utilization (busy fraction) λ/μ
L Avg. number in system ρ/(1-ρ)
Lq Avg. number waiting ρ²/(1-ρ)
W Avg. time in system L/λ = 1/(μ-λ)
Wq Avg. waiting time Lq/λ = λ / (μ(μ-λ))

Assumptions and limitations

Historical note

M/M/1 analysis is rooted in early telephone-traffic engineering. Agner Krarup Erlang developed foundational queueing models to quantify congestion and staffing needs in telephone exchanges, and those ideas remain central to modern operations, from contact centers to computing systems.

Privacy: Calculations run in your browser; inputs are not sent to a server by default.

Enter rates to see queue metrics.

Embed this calculator

Copy and paste the HTML below to add the M/M/1 Queue Calculator - Analyze Single Server Waiting Lines to your website.