Pollaczek-Khinchine M/G/1 Queue Calculator
Operations
- Utilisation rho = 15 / 20 = 0.75 in this M/G/1 queue
- Pollaczek-Khinchine: Lq = (lambda^2 sigma^2 + rho^2) / (2 (1 - rho)) = 1.85
- Mean wait in queue = Lq / lambda = 7.38 min
- Mean time in system adds one service time: 10.38 min
Between the two textbook queues - M/M/1, where service is exponential, and M/D/1, where it is clockwork - lies the queue most real systems actually are: arrivals effectively random, service times variable but measurably so. The Pollaczek-Khinchine formula is the exact solution for that whole family, M/G/1, and its beauty is its appetite: it needs only the mean and the standard deviation of the service time. Not the distribution, not a histogram - two summary statistics, and the mean queue length and wait follow exactly. Pollaczek and Khinchine derived it independently around 1930, and it remains the sharpest tool in single-server queueing.
Enter the arrival rate and service rate per hour and the standard deviation of service time in minutes. The calculator returns the mean wait in queue, utilisation, mean queue length, the squared coefficient of variation Cs^2, and mean time in system. The worked examples span the variability spectrum: a variable service (sigma 2.4 minutes, wait 7.38), perfectly deterministic service (sigma zero, wait 12.50 at higher utilisation), and the special point where sigma equals the mean service time and the formula lands on the M/M/1 answer (wait 4.50).
Worked examples
Variable service, 7.38 min
(15 per hour · 20 per hour · 2.4 min)
| Mean wait in queue (min) | 7.38 |
| Utilisation rho | 0.75 |
| Mean queue length Lq | 1.85 |
| Service variability Cs^2 | 0.64 |
| Mean time in system (min) | 10.38 |
Deterministic service, 12.50
(10 per hour · 12 per hour · 0 min)
| Mean wait in queue (min) | 12.50 |
| Utilisation rho | 0.83 |
| Mean queue length Lq | 2.08 |
| Service variability Cs^2 | 0.00 |
| Mean time in system (min) | 17.50 |
Cs squared 1.00, 4.50 min
(30 per hour · 40 per hour · 1.5 min)
| Mean wait in queue (min) | 4.50 |
| Utilisation rho | 0.75 |
| Mean queue length Lq | 2.25 |
| Service variability Cs^2 | 1.00 |
| Mean time in system (min) | 6.00 |
The mean-value formula for M/G/1
The formula prices the queue from a single insight: an arriving customer must wait for the work already queued plus, on average, the residual life of the job in service - and that residual is longer when service times vary, because long jobs occupy the server disproportionately when you sample it. Algebra turns the insight into Lq = (lambda^2 sigma^2 + rho^2) / (2 (1 - rho)). The first term in the numerator is pure variability; the second is the M/D/1 skeleton that survives when sigma is zero. Little's law then converts length to wait: divide Lq by the arrival rate. In the first example - 15 arrivals an hour against a service rate of 20, sigma 2.4 minutes - Lq is 1.85 and the mean queue wait 7.38 minutes at a utilisation of 0.75.
Exactness is the formula's claim to fame and worth pausing on. This is not an approximation that improves in heavy traffic like Kingman's; for Poisson arrivals it is the true mean, full stop, for any service distribution whatsoever - lognormal, bimodal, a mixture of quick jobs and monsters. The distribution's entire influence flows through its first two moments. Two service processes with the same mean and standard deviation give the same mean wait however different their shapes, a fact that still surprises engineers the first time they meet it.
Service variance is queue length
Read the numerator as a budget: rho^2 is the queue that utilisation alone would build with perfectly regular service, and lambda^2 sigma^2 is the surcharge that variability adds. In the first example the surcharge dominates - the 2.4 minute standard deviation on a 3-minute mean service (Cs^2 of 0.64) is responsible for most of the queue of 1.85. This is the quantitative version of every operations manager's suspicion that the occasional nightmare job, not the average job, creates the line behind it. Because sigma enters squared, one job in twenty that takes ten times the mean contributes more to the wait than the other nineteen combined.
The management lever follows directly: you can cut the wait by cutting the variance without touching the mean at all. Splitting a mixed stream into a fast lane and a slow lane, standardising the pathological cases, fixing the machine whose occasional long repair poisons the distribution - each reduces sigma, and the formula prices the benefit before you spend it. The second example is the limit of that programme: sigma of exactly zero, deterministic service, and at a utilisation of 0.83 the wait is 12.50 minutes - precisely half of what exponential service would give at the same load, the famous M/D/1 dividend.
- Lq = (lambda^2 sigma^2 + rho^2) / (2 (1 - rho)); Wq = Lq / lambda
- Cs^2 = (sigma / mean service time)^2 - the variability dial
- Deterministic service halves the M/M/1 queue at the same utilisation
- Exact for Poisson arrivals with any service distribution
Worked examples: variable, deterministic and mild service
Example 1: 15 arrivals, service rate 20 per hour, sigma 2.4 minutes. Utilisation 0.75, Cs^2 0.64, Lq 1.85, queue wait 7.38 minutes, time in system 10.38. Example 2 removes variability entirely: 10 arrivals against a service rate of 12, sigma zero. Utilisation rises to 0.83, yet Lq is only 2.08 and the wait 12.50 minutes - and the comparison that matters is against the 25 minutes an M/M/1 queue would impose at the same utilisation. Regularity bought half the wait without a single extra server-hour.
Example 3 sits on the seam between the families: 30 arrivals, service rate 40, sigma 1.5 minutes - exactly equal to the 1.5-minute mean service time, so Cs^2 is exactly 1.00 and the service is, in variability terms, exponential-equivalent. The formula duly returns the M/M/1 figures: Lq 2.25, wait 4.50 minutes, system time 6.00. Three examples, three points on one curve, and the curve is sigma. Plot your own system on it before believing any vendor's promise about what a faster server will do to your queue.
| Example | Rates (arr/svc) | Sigma (min) | Cs^2 | Lq | Wq (min) |
|---|---|---|---|---|---|
| 1 | 15 / 20 | 2.4 | 0.64 | 1.85 | 7.38 |
| 2 | 10 / 12 | 0 | 0.00 | 2.08 | 12.50 |
| 3 | 30 / 40 | 1.5 | 1.00 | 2.25 | 4.50 |
From queue length to waiting time
Little's law, L = lambda x W, is the bridge between the two currencies of queueing: how many are waiting and how long they wait. The calculator reports both because different decisions spend different currencies. The customer's experience, the service-level agreement and the abandonment risk all live in the wait - 7.38, 12.50 and 4.50 minutes across the examples. The floor space, the WIP inventory and the chair count live in the length - 1.85, 2.08 and 2.25. Time in system adds the service itself: 10.38 minutes in the first example, of which the service is 3 - a reminder that at moderate utilisation the queue, not the work, is most of the customer's visit.
Averages deserve their usual warning label. The PK formula gives means, and means hide the tail: in an M/M/1-flavoured queue the 95th percentile wait runs about three times the mean, and variability stretches tails further. If your commitment is a percentile - '95 percent seen within 30 minutes' - use the mean from this page as the screening number and a distribution-aware method or simulation for the promise. If your commitment is throughput, staffing cost or space, the mean is usually the whole argument.
Pollaczek-Khinchine versus Kingman
Kingman's formula, which has its own calculator here, approximates the general G/G/1 queue and handles non-Poisson arrivals through the Ca coefficient; PK is exact but demands Poisson arrivals. When arrivals are genuinely Poisson - uncoordinated demand from a large population is the usual case - PK is strictly the better instrument, and Kingman with Ca set to 1 should land close to it, which makes the pair a useful cross-check on each other. When arrivals are scheduled or batched, PK's premise breaks and Kingman is the honest tool.
The deeper difference is what each teaches. Kingman spreads the blame for waiting across arrival and service variability symmetrically. PK, staring only at service, isolates the mechanism: the residual-life effect, the way a random arrival inherits the unfinished remainder of a job whose expected length grows with the variance. That mechanism - the inspection paradox in work clothes - is the reason variability costs more than intuition prices it, and it operates in every queue on this site whatever formula you choose to compute with.
Estimating sigma deserves one practical warning: service-time data collected by rounding to the nearest five minutes, or by dropping the jobs that were abandoned mid-service, understates the true spread - and the formula squares the understatement. Pull the raw timestamps, keep the disasters, and let the variance be as ugly as the operation actually is.
FAQs
15 arrivals an hour, service rate 20 and service sigma of 2.4 minutes - what is the wait?
Rho is 0.75, Cs squared is 0.64, Lq is 1.85 and the mean queue wait is 7.38 minutes.
What does zero service variance give?
Deterministic service: Cs squared of 0.00 and a 12.50 minute wait at rho of 0.83 - half the queue of exponential service at the same load.
What does the third example show?
A sigma of 1.5 minutes gives Cs squared of exactly 1.00, an Lq of 2.25 and a 4.50 minute wait.
Why does variance matter so much?
Lq grows with lambda squared times sigma squared: the first example's 2.4 minute spread produces most of its queue of 1.85.
What is the time in system?
Add the mean service time: 10.38 minutes in the first example and 6.00 in the third.
Is the formula exact or approximate?
Exact for M/G/1 - unlike Kingman's approximation, the 7.38 minute figure is the true mean for Poisson arrivals.