Queue with limited waiting room calculator (M/M/c/K): how many arrivals are turned away?
When a line has a fixed number of waiting spaces, such as a yard, a staging lane or a call queue limit, arrivals that find it full are lost. Enter arrivals, service time, servers and waiting spaces to get the share turned away, the wait of those served and the servers you need for a target.
How to size a queue with a waiting limit
- Enter arrivals per hour and the average service time in minutes.
- Enter the number of servers and how many customers can wait: 0 if nobody can.
- Set the share of arrivals you can afford to turn away.
- Read the share lost, the wait of those served and the fewest servers that meet the target.
- Press the simulation check, which counts lost arrivals in a seeded run.
Your queue with a limit
Starting values are an example, not data about your site. An arrival that finds every server busy and every waiting space taken is lost and never comes back. The target is your business choice.
Result
With 4 waiting spaces, the fewest servers that keep at most 1% turned away is 6.
Exact M/M/c/K: random arrivals, exponential service, identical servers, K = servers + waiting spaces. Impatient customers who leave the line, appointments and priorities are not modelled.
The formula
a = λ ÷ μ (offered load, in servers of work) pₙ ∝ aⁿ ÷ n! for n = 0 … c pₙ ∝ aⁿ ÷ (c! × c^(n−c)) for n = c+1 … K share turned away = p_K (K = servers + waiting spaces) served per hour = λ × (1 − p_K)The pₙ are the long-run probabilities of finding n customers in the system, scaled to add up to 1. An arrival is lost when it finds K in the system, and by the PASTA property that share equals p_K. Setting K = c gives the Erlang B formula.
Worked example: 4 servers and a limit
30 arrivals an hour, 6 minutes of service each, so the offered load is 3.0 servers of work on 4 servers. The only thing that changes is how many can wait. Exact formula against the engine (seed 7, 30 replications of 200 hours):
| Waiting spaces | Turned away, formula | Turned away, simulated | Average wait, formula | Average wait, simulated | Servers busy |
|---|---|---|---|---|---|
| 0 | 20.61% | 20.79% | 0 sec | 0 sec | 60% |
| 2 | 9.13% | 9.16% | 40 sec | 41 sec | 68% |
| 4 | 4.58% | 4.67% | 1.3 min | 1.4 min | 72% |
| 8 | 1.33% | 1.33% | 2.3 min | 2.3 min | 74% |
The first row is Erlang B: 20.6% turned away and nobody waits. Each added space saves arrivals and costs waiting time; the busy share rises because fewer arrivals are lost. To keep at most 1% turned away with 4 spaces you would need 6 servers. Waits are for those served, not for the lost.
When to use this and not the neighbours
- Nobody can wait (a fully busy line is lost): use the Erlang B calculator.
- Anyone can wait, with no limit: use the Erlang C calculator.
- A limited room, such as a yard with room for n trucks, a staging lane of n pallets or a queue cap of n callers: use this page.
When this model is wrong
- People give up. Customers who join and then leave need an abandonment model, which is not included.
- Lost means gone. If lost customers retry later, the real load is higher than the one you entered.
- Service is not exponential. The formula assumes it. With another shape, blocking and waits can differ: run the simulation with your numbers.
Questions
What does M/M/c/K mean?
Random arrivals, exponential service times, c identical servers, and room for K customers in total, servers included. An arrival that finds K in the system is lost. With K equal to c nobody can wait, which is the Erlang B loss system; with K very large it approaches the unlimited Erlang C queue.
How do I size a yard or staging lane?
Treat the lane as the waiting spaces and the doors or stations as servers. Add spaces until the share turned away meets your target, then check the wait of those served, since each added space also adds waiting time. The example shows blocking falling from 20.6% to 1.3% while the wait grows.
Is it cheaper to add a server or a waiting space?
It depends on your costs; the calculator gives the numbers for both. A server cuts both turn-aways and wait. A space only cuts turn-aways and adds wait. In the example, 4 servers with 8 spaces turn away 1.3% but served customers wait 2.3 min; 6 servers with 4 spaces reach the 1% target.
What does this model leave out?
Customers who leave the line after waiting, those who retry later, priorities, appointments and service times that are not exponential. Blocking is exact for exponential service; with another shape it can differ, and the simulation button runs your numbers through the engine to show by how much.
Keep going
- Erlang B calculator: no waiting room at all
- Dock door calculator with a yard limit
- Queue calculator (Erlang C): unlimited waiting room
- Erlang B vs Erlang C: which one do you need?
- Cross-docking template: doors and staging in the engine
- How the simulation engine was validated
Updated 20 November 2026. Free to use, no account. The calculation runs in your browser; nothing you type is sent to us. The engine behind the simulation checks is validated against exact queueing results.