Calculate waiting time in a line from the people ahead of you and service time per person, or average queue wait from arrival and service rates.

Simple estimate; ignores time left on the person being served now.

Display unit


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Line estimate: service timeEstimates the wait to reach the front of a lineRequires the people waiting ahead, the service time per person and the number of servers
Line estimate: service rateEstimates the wait in a line from how fast it is servedRequires the people waiting ahead, the people served per hour by each server and the number of servers
M/M/c average queue waitFinds the long-run average wait before service when arrivals and service times are randomRequires the arrival rate, the service rate per server, the rate period and the number of servers
M/D/1 average queue waitFinds the long-run average wait for one server with a fixed service timeRequires the arrival rate, the service rate and the rate period
Average from combined waitsFinds the mean wait per personRequires the total combined waiting time and the number of people
Servers for a target waitFinds the fewest servers that keep the average queue wait at or below a targetRequires the arrival rate, the service rate per server, the rate period and the target wait

Results can be shown in minutes, seconds or hours. Rates are counted per hour, minute or second, and both rates use the same period. The queue functions also show the time including service, the average number waiting, server utilization, the chance of having to wait and the 90th and 95th percentile waits.

Waiting Time Formulas

Wq = ฮป รท (ฮผ ร— (ฮผ โˆ’ ฮป)) [1]
WqAverage wait before service, for one server
ฮปArrival rate (people per period)
ฮผService rate of one server (people per period)

Line estimate: service time

Wait = N ร— s รท c

N is the number of people ahead, s is the service time per person and c is the number of servers. With 6 people ahead, 5 minutes each and 2 servers, the wait is 6 ร— 5 รท 2 = 15 minutes, and 20 minutes including the visitor’s own service. It leaves out the time remaining for anyone being served now.

Line estimate: service rate

s = 60 รท rate

A server that handles 12 people an hour takes 60 รท 12 = 5 minutes each. That service time then goes into the line formula: 6 people ahead of one server wait 6 ร— 5 = 30 minutes.

M/M/c average queue wait

With one server the formula at the top applies. At 10 arrivals an hour and a server that can handle 15 an hour, Wq = 10 รท (15 ร— (15 โˆ’ 10)) = 0.1333 hours, or 8 minutes. The time including service adds one service time, 60 รท 15 = 4 minutes, for 12 minutes. With c servers:

Wq = C รท (c ร— ฮผ โˆ’ ฮป) [1]

C is the chance that an arrival has to wait, which depends on the offered load ฮป รท ฮผ and the number of servers [1]. A second server in the example brings C down to 16.67% and the average wait to 0.1667 รท (2 ร— 15 โˆ’ 10) = 0.0083 hours, or 0.5 minutes. The average number waiting is ฮป ร— Wq. Arrivals must be slower than the combined service rate, ฮป < c ร— ฮผ, or the line has no steady average.

M/D/1 average queue wait

Wq = ฮป รท (2 ร— ฮผ ร— (ฮผ โˆ’ ฮป)) [1]

When every service takes exactly the same time, the average wait is half the one-server value above [1]. The same 10 arrivals and 15 served per hour give 10 รท (2 ร— 15 ร— 5) = 0.0667 hours, or 4 minutes.

Average from combined waits

Mean wait = total รท people

Eight people who waited 120 minutes between them waited 120 รท 8 = 15 minutes each on average.

Servers for a target wait

This runs the M/M/c formula for one more server at a time, starting from the smallest number that can keep up, and stops at the first count whose average wait is at or below the target. With 50 arrivals an hour, 15 served per hour by each server and a 2 minute target, 4 servers give an average wait of 3.95 minutes and 5 servers give 0.78 minutes, so the answer is 5. The search stops at 2,000 servers.

Limits of This Estimate

  • The queue results are long-run averages, not a promise for one visit. Half an hour of unusually heavy arrivals can look nothing like the average.
  • M/M/c and M/D/1 assume random arrivals at a steady rate, one first-come line, identical servers and no one giving up and leaving. Appointments, priorities and rushes break these assumptions.
  • The two line estimates only divide the work ahead by the number of servers. They ignore service already under way and people who join or leave.

Sources

  1. Adan and Resing, Queueing Systems (lecture notes, Eindhoven University of Technology): mean waiting time in the M/M/1, M/M/c and M/G/1 queues, the delay probability and Little’s law