Queue Lab · Erlang C + live simulation

Erlang C Calculator & Live Queue Simulator

How many agents, cashiers or servers you need – and watch the queue form in real time when you have one too few

Quick Answer:Traffic in Erlangs = arrivals per hour × average handling time in hours. You always need more agents than the traffic: 10 Erlangs (100 calls per half hour at 3 minutes each) needs 14 agents for 80% of calls answered within 20 seconds, because random arrivals bunch up. Waits grow like ρ ÷ (1 − ρ): above about 85–90% utilisation every extra percent costs a lot of waiting, and uneven service times make it worse.

--

--

Service level with --

--

--

--

Have to wait

--

--

Average wait

--

--

Utilisation

--

--

Queue length

--

--

Big numbers: formula · small: this simulation run

Your queue

Classic Erlang C assumes random arrivals and exponential handling times (both CV 1). Other choices use the Allen–Cunneen approximation; the simulation shows the real thing. Everything runs in your browser.

Staffing curve · what one more or one fewer does

The hockey stick · wait vs how busy the servers are

--

This simulation run · people waiting over time

Staffing table

Erlang C for your traffic. The highlighted row is the fewest agents that meet your target.

AgentsBusyWait at allAvg waitWithin target

Model assumptions – what this model leaves out

  • Nobody gives up. Erlang C assumes callers wait forever. Real callers hang up, which shortens the queue for everyone else, so Erlang C slightly overstates the agents you need at high load (Erlang A models abandonment).
  • Steady traffic. The arrival rate is constant for the whole period. Plan each 15- or 30-minute interval separately; a lunchtime peak is not averaged away.
  • One queue, identical servers, first come first served. No skills routing, priorities, separate lines per checkout or customers switching lines.
  • No shrinkage. The result is agents logged in and available. Breaks, training, meetings and absence (often 30–35%) come on top when you build a rota.
  • Variability is approximate. For anything other than random arrivals and exponential handling times the formula uses Allen–Cunneen, which is usually within 10–25%; it tends to overstate the wait when both are very regular. Trust the simulation for those cases and run it long enough (a few thousand customers).
  • The simulation is one random run. A short run can look much better or worse than the average – that spread is real, and it is what a single busy afternoon feels like.

How the Erlang C Calculator & Queue Simulator works

Traffic is measured in Erlangs: arrivals per hour × average handling time in hours, i.e. how many servers would be busy on average. With c servers the utilisation is ρ = traffic ÷ c, and the queue is only stable while ρ is below 1.

The Erlang C formula gives the probability that an arriving customer has to wait, assuming random (Poisson) arrivals, exponential handling times, one shared line and nobody giving up. From it follow the average wait, the average queue length and the service level – the share served within your target time. The page computes Erlang B with the stable recursion B(k) = a·B(k−1) ÷ (k + a·B(k−1)) and converts it to Erlang C, so it works for hundreds of agents.

For other kinds of variability (appointments, groups arriving together, very uneven jobs) the average wait is scaled with the Allen–Cunneen approximation. The live simulation is a separate discrete-event model: it draws every gap between arrivals and every handling time from gamma distributions with your average and coefficient of variation, serves people first come first served at the first free desk and measures what happens, so you can see the approximation and its limits.

Traffic a = λ ÷ μ (Erlangs), utilisation ρ = a ÷ c

Erlang B: B(0) = 1, B(k) = a·B(k−1) ÷ (k + a·B(k−1)); Erlang C: Pw = B ÷ (1 − ρ(1 − B))

Average wait Wq = Pw ÷ (cμ − λ) × (ca² + cs²) ÷ 2 (the last factor is 1 for classic Erlang C)

Service level SL(t) = 1 − Pw · e^(−(cμ − λ)·t)

Worked example

100 calls per half hour (200 per hour), 3-minute average handling time, target 80% answered within 20 seconds.

  1. Traffic a = 200 × 3 ÷ 60 = 10 Erlangs, so at least 11 agents are needed just to keep up.
  2. 13 agents: Pw = 28.5%, service level = 1 − 0.285 × e^(−(13 − 10) × 20 s ÷ 180 s) = 79.6% – just short.
  3. 14 agents: Pw = 17.4%, service level = 88.8%, average wait = 0.174 ÷ (14 − 10) × 180 s = 7.8 s, utilisation 71%.

Result: 14 agents meet the 80/20 target, the same answer as the Call Centre Helper worked example. Add shrinkage (breaks, training, absence) to get the people to schedule.

Assumptions and limits

  • Erlang C assumes nobody hangs up; real abandonment shortens queues, so at high load it slightly overstates the agents needed.
  • Arrival rates are taken as steady; plan each 15- or 30-minute interval separately.
  • Allen–Cunneen is an approximation (usually within 10–25%); it overstates waits when both arrivals and service are very regular. The simulation shows the real value for those cases.
  • Checked against Erlang tables: B(5 lines, 2 E) = 0.0367, B(10, 10 E) = 0.2146, C(11 agents, 10 E) = 0.6821; M/M/1 at 80% gives Wq = 4 service times; simulated M/M/3 at 90% matches Erlang C within 2%.

Sources

Last reviewed November 8, 2026 · How we build and check our calculators

Frequently Asked Questions About Queues and Erlang C

What is the Erlang C formula?

Erlang C gives the probability that an arriving customer has to wait in a queue served by c identical agents, when arrivals are random (Poisson) and service times are exponential. From it follow the average wait (Pw ÷ (cμ − λ)), the service level (the share answered within a target time) and the number of agents needed. It assumes nobody hangs up and the queue has unlimited room.

Why does waiting time explode as utilisation approaches 100%?

Because random arrivals bunch up. Waiting time grows roughly with ρ ÷ (1 − ρ): going from 80% to 90% busy doubles the wait of a single server, and 95% doubles it again. There is no spare capacity left to catch up after a burst, so the queue stays long. That is why a call centre planned at 100% occupancy never meets its service level.

How many agents do I need for 80% of calls answered in 20 seconds?

It depends on traffic. For 100 calls per half hour with a 3-minute handling time (10 Erlangs of traffic), Erlang C needs 14 agents: 13 give 79.6% within 20 seconds, 14 give 88.8%, with an average wait of 7.8 seconds. Add shrinkage (breaks, training, absence, typically 30–35%) on top to get the number of people to schedule.

Does variability matter if the average stays the same?

Yes, a lot. With the same average service time, perfectly regular service halves the wait of a random one at one server, and very uneven service (some 1-minute jobs, some 20-minute jobs) makes it much longer. The Allen–Cunneen approximation scales the wait by (ca² + cs²) ÷ 2, where ca and cs are the coefficients of variation of the time between arrivals and of the service time.

Browse all 39 3d visualizers & ai tools calculators →

Copied!