Queue Calculator (M/M/1 and M/M/c)

Enter how fast customers arrive, how fast one server works and how many servers you have. Get the average queue length, waiting time, utilization and the chance a customer has to wait. Set servers to 1 for M/M/1 or more for M/M/c.

Your numbers

Average customers arriving per time unit.

Customers one server can serve per time unit when busy. Use the same time unit as above.

1 gives M/M/1. 2 or more gives M/M/c with one shared queue.

Optional. Gives the probability that the queue wait exceeds this time (in the unit above).

Results

Want it built around your own numbers?

Need a queueing or simulation model of your own process, with real arrival data, multiple stages and what-if scenarios? I build Excel and Google Sheets models, Python automation and simulations for real businesses.

How it works and the formulas

The M/M/c model assumes customers arrive randomly (Poisson process, rate λ), service times are exponential (rate μ per server), there are c identical servers and a single queue with first-come first-served service. M/M/1 is the special case c = 1.

Offered load a = λ / μ Utilization ρ = a / c (must be below 1) P0 = [ Σ(k=0..c-1) a^k/k! + a^c / (c!(1-ρ)) ]^-1 P(wait) = Erlang C = a^c / (c!(1-ρ)) · P0 Lq = P(wait) · ρ / (1-ρ) Wq = Lq / λ W = Wq + 1/μ L = Lq + a

For M/M/1 these reduce to ρ = λ/μ, L = ρ/(1−ρ), W = 1/(μ−λ) and Lq = ρ²/(1−ρ). The results obey Little’s law (L = λW), which the calculator checks for you.

If ρ is 1 or more, the queue is unstable: it grows without limit, so no steady-state averages exist. The calculator tells you how many servers you need at minimum.

Worked example

A single cashier serves 3 customers per hour and 2 customers per hour arrive (M/M/1, λ = 2, μ = 3).

  • Utilization ρ = 2/3 = 66.7%, and P0 = 1/3.
  • L = ρ/(1−ρ) = 2 customers in the system, W = 1/(3−2) = 1 hour.
  • Lq = ρ²/(1−ρ) = 1.3333, and Wq = Lq/λ = 40 minutes in the queue.

Now add a second cashier (M/M/2, same rates). Utilization per server drops to 33.3%, P(wait) falls from 66.7% to 16.7%, and the average queue wait shrinks from 40 minutes to 2.5 minutes. That is why adding capacity near high utilization pays off so strongly.

Frequently asked questions

What do M/M/1 and M/M/c mean?

The letters are Kendall notation. The first M means arrivals are Markovian (random, Poisson). The second M means service times are exponential. The last symbol is the number of servers: 1 for M/M/1, c for M/M/c. Both assume one shared queue and first-come first-served service.

What does utilization mean, and why must it be below 100%?

Utilization (ρ) is the fraction of time each server is busy: λ / (c·μ). If it reaches 100% the servers can never catch up with arrivals, so the queue grows forever. Even at 85% to 95% waits become very long, because queueing delay rises steeply as utilization approaches 1.

What is the difference between Wq and W?

Wq is the average time spent waiting in line before service starts. W is the total time in the system, which adds the average service time 1/μ. Lq and L work the same way for the number of customers in line versus in the whole system.

Is one fast server better than several slow ones?

For the same total capacity, a single fast server usually gives shorter total time in the system, but several servers sharing one queue give a lower chance of waiting for light loads and more resilience. Try both: compare c = 1 at rate 2μ with c = 2 at rate μ.

How do I choose the number of servers?

Start with the smallest c that keeps utilization stable, then increase c until the average wait (Wq) or the probability of waiting longer than your threshold meets your target. The wait threshold field gives P(Wq > t) directly.

When are these formulas not accurate?

The model assumes random arrivals, exponential service times, unlimited waiting room, no abandonment and no priorities. If your service times are very regular or highly variable, arrivals come in batches, or customers leave when the line is long, use these results as a first approximation and consider simulation for decisions with real money on the line.

Step-by-step guides

More free calculators