Converter tool

Erlang C Staffing Calculator with Erlang A

Work out how many agents a call centre needs for a service level, average handle time and call volume, with occupancy, shrinkage, an interval table from a forecast CSV and an Erlang A option.

Service level, handle time and shrinkage

1. Targets

One interval

2. Agents needed

Offered load
10 Erlangs
100 calls x 180 s / 1800 s
Agents needed (Erlang C)
14
14 to schedule at 0% shrinkage
Service level
88.8%
82.6% answered at once
Average speed of answer
7.8 s
occupancy 71.4%
Results for each number of agents
AgentsWait probabilityService levelASAOccupancy
1168.2%39.0%122.8 s90.9%
1244.9%64.0%40.4 s83.3%
1328.5%79.6%17.1 s76.9%
14 (needed)17.4%88.8%7.8 s71.4%
1510.2%94.1%3.7 s66.7%
165.7%97.1%1.7 s62.5%
173.1%98.6%0.8 s58.8%
181.6%99.3%0.4 s55.6%
Service level against the number of agents0%20%40%60%80%100%1112131415161718AgentsService level

The red line is the service-level target. Green is Erlang C. Below the offered load the queue grows without limit, so those agent counts are not listed.

Erlang C Staffing Calculator with Erlang A

Operator: Abdulla Al Fahad. How tools are built and checked

A phone queue behaves in a way that surprises people: a few more agents can change the wait from minutes to seconds, and a few fewer can make it explode. The relationship is the Erlang C formula, and it has been the standard for sizing queues for about a century.

Give the page the calls expected in an interval, the average handle time and the service level you promise, and it finds the fewest agents that meet it. It then shows the neighbouring headcounts, the wait and occupancy that go with them, and the number to schedule once shrinkage is added.

Key features

  • Erlang C agents for a service level such as 80% answered in 20 seconds, with optional caps on average speed of answer and occupancy
  • Shrinkage added on top, so the figure to schedule is the agents on the phones divided by one minus shrinkage
  • Erlang A option, where callers hang up after an average patience you set, with abandonment, service level, wait and occupancy
  • A table for each headcount near the answer, and a service-level curve with the target drawn on it
  • A forecast table mode: calls per interval from a CSV, an optional handle time per interval, peak agents, agent hours and a bar chart, exported as CSV or XLSX

The Erlang C and Erlang A formulas, and what each target means

The offered load in Erlangs is calls times handle time divided by the interval length, both in seconds: 100 calls of 180 seconds in 1,800 seconds is 10 Erlangs, the average number of agents kept busy. The queue is only stable with more agents than that, so the search starts one above the load. The service level is the share of calls answered within the answer time, counting calls answered at once. The average speed of answer is the mean wait over all calls, not only those that queue. Occupancy is the load divided by the agents, the share of time they spend handling calls, and a cap on it adds agents even when the service level is already met.

In the forecast table each row is one interval of the length you set. The call count is the only required column; a handle-time column overrides the default for that row. Rows with no valid call count are skipped and counted, up to 5,000 intervals (500 with Erlang A). An interval whose offered load alone is 20,000 Erlangs or more needs more agents than the page models, so it shows n/a, and in single mode the page refuses it and states the load. An interval with no calls needs no agents and is listed with a service level of 100%.

How it works

The probability that a call has to wait is computed from Erlang B by the recursion B(k) = A x B(k-1) / (k + A x B(k-1)), then C = N x B / (N - A x (1 - B)). The service level is 1 - C x exp(-(N - A) x t / AHT), the ASA is C x AHT / (N - A), and the page finds the smallest N that meets every target by stepping up and then halving the gap.

Erlang A adds callers who give up. It solves the steady state of a queue where each waiting caller leaves at rate 1 / patience, and obtains the share answered in time by uniformisation: for a caller with each possible number of people ahead, it follows the chance of reaching an agent before the answer time and before hanging up, with Poisson-weighted steps that stay stable however long the answer time is. Service level here is the share of all calls answered in time, so callers who abandon count against it. Both models have a work limit, and a model too big for it (very large loads with Erlang A, or thousands of heavy intervals) is refused with a message instead of freezing the tab.

Shrinkage is applied after the search: agents to schedule are the agents needed divided by (1 - shrinkage), rounded up.

When to use it

  • A team lead with a 12-interval morning forecast of 1,125 calls, 240 second calls, 80/20 targets, the 85% occupancy cap and 30% shrinkage finds a peak of 22 agents on the phones and 32 to schedule, and 144 scheduled agent hours.
  • A planner sizing 400 calls in 30 minutes at 240 seconds each (53.3 Erlangs, 80% in 20 seconds) finds Erlang C asking for 60 agents, while Erlang A with a 60-second average patience needs 51 and reports 9.8% of calls abandoned: the 9 agents between them are the price of insuring against callers who would have hung up anyway.
  • A manager asked to hold occupancy under 85% sees that the cap, not the service level, sets the headcount in a quiet interval.

Inputs

  1. Enter the interval length, the average handle time, the service level and answer time, and any occupancy cap or shrinkage.
  2. Type the calls expected, or switch to Forecast table and load a CSV.
  3. Read the agents needed and compare the rows above and below it.
  4. Turn on Erlang A and set a patience to see the effect of abandonment.

Worked example

One 30-minute interval: 100 calls, handle time 180 s, 80% in 20 s, maximum occupancy 85%, shrinkage 30%

Interval 30 minutes, calls 100, AHT 180 s
Service level 80% within 20 s
Maximum occupancy 85%, shrinkage 30%

Offered load, the headcounts around the answer, and the agents to schedule

Offered load 10 Erlangs
Agents 11: 68.2% of calls wait, service level 39.0%
Agents 12: 44.9% wait, service level 64.0%
Agents 13: 28.5% wait, service level 79.6%
Agents 14: 17.4% wait, service level 88.8%, ASA 7.8 s, 82.6% answered at once, occupancy 71.4%
Agents needed 14; to schedule 20 at 30% shrinkage

Tips for best results

  • Check the interval length first. The formulas assume the call rate is steady within the interval, so use 15 or 30 minutes, not a whole day.
  • Use the row above the answer as a sensitivity check: one agent fewer in the example drops the service level from 88.8% to 79.6%.
  • Enter handle time as talk plus after-call work, since an agent is busy for both.

Limits

Erlang C assumes no caller ever hangs up and no one gets a busy signal. In a real queue with abandonment it overstates the agents needed, which is why the Erlang A option exists.

Handle times are modelled as exponentially distributed. Real handle times are often less variable than that, so the waits shown are slightly pessimistic.

Service level definitions differ between tools: some drop abandoned calls from the base. Here the Erlang A service level counts every offered call.

The answer is for one interval at a time. It does not smooth staffing across intervals, add breaks or allow for skills routing.

Common errors and how to fix them

The service level must be a percentage above 0 and below 100.
A target of 100% needs unlimited agents under Erlang C. Enter 95 or 99 instead.
Shrinkage must be a percentage from 0 to under 90.
Enter the share of paid time not spent on the phones, such as 30 for 30%.
No staffing level up to 20,000 agents meets these targets.
The combination of an extreme service level and a tight occupancy or ASA cap cannot be reached. Relax one of them.
The offered load needs more than 20,000 agents.
The calls, handle time and interval length together give 20,000 Erlangs or more, which the page does not model. Check that the handle time is in seconds and the interval length in minutes, or split the work across queues.
The abandonment model is too large for this page.
Erlang A refuses loads and patience values whose calculation would run for minutes. Lower the volume, shorten the interval, or use Erlang C.
The abandonment model is limited to 500 intervals per run.
Split the forecast, or use Erlang C for the long table; Erlang A solves a numerical model for every interval.

Best practices

  • Plan from the forecast for each interval, then check the busiest hour with a shorter interval.
  • Keep service-level target, answer time, shrinkage and the model with the staffing numbers you hand over.

Erlang C and Erlang A side by side

For the example queue, 12 agents with Erlang C give a 64.0% service level and a 40.4 second ASA. With callers who hang up after 120 seconds on average, the same 12 agents answer 82.56% of all calls within 20 seconds, with 6.16% of calls abandoned and an ASA of 7.4 seconds (the 82.6% here is a service level; the 82.6% answered at once in the example above is a different quantity that happens to match). Fewer callers waiting means shorter queues for the rest, so staffing for Erlang C can leave a queue over-staffed.

As patience grows, Erlang A converges to Erlang C. At 14 agents the Erlang A service level is 93.27% at 120 seconds of patience, 89.25% at 3,600 seconds and 88.88% at 36,000 seconds, the longest patience the page accepts, against 88.84% for Erlang C; abandonment falls to 0.02%.

Frequently asked questions

Which published Erlang C example does the output match?

The Erlang C figures reproduce a published worked example exactly. Call Centre Helper's worked Erlang C example. For 10 Erlangs, 80% in 20 seconds, 85% maximum occupancy and 30% shrinkage it lists P(wait) of 0.6821, 0.4494, 0.2853 and 0.1741 and service levels of 39.0%, 64.0%, 79.6% and 88.8% for 11 to 14 agents, an ASA of 7.8 seconds, 82.6% answered at once, 71.4% occupancy and 20 agents after shrinkage, and the page gives the same values. The Erlang B recursion gives 0.01838 for 5 Erlangs on 10 lines, matching the standard Erlang B table. For Erlang A, a simulation of 1.1 million calls of the example queue (12 agents, exponential handle times and patience) gave 82.58% answered in 20 seconds and 6.15% abandoned, against the page's 82.56% and 6.16%.

Which model should I use?

Erlang C is the conservative choice and what most planning guides quote. Use Erlang A when you know roughly how long callers wait before hanging up and want the abandonment rate.

Why do I need more agents than the offered load?

The load is the average number busy. With exactly that many agents the queue grows without limit, and a few extra agents are needed to absorb random clusters of calls.

Does shrinkage change the service level?

No. Shrinkage only converts agents on the phones into people to schedule. The service level is calculated on the agents answering calls.

Can I use different handle times per interval?

Yes. In the forecast table, map an AHT column; blank or invalid cells fall back to the default handle time.