Statistics & probability

M G 1 queue mean waiting time calculator with service time variance

Calculate stationary FCFS M/G/1 mean queueing and system times from Poisson arrivals and supplied service-time moments.

Your numbers

Arrivals per selected time unit.
Positive mean in the selected time unit.
Nonnegative variance in squared selected time units.
All rates and service moments must already use the selected common unit.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Calculate stationary FCFS M/G/1 mean queueing and system times from Poisson arrivals and supplied service-time moments.

THE FORMULAρ=λ E[S]<1; E[Wq]=λ{Var[S]+E[S]²}/[2(1−ρ)]; E[W]=E[Wq]+E[S]; E[Lq]=λE[Wq].

A worked example

The default rate 0.8 per minute, mean service 1 minute and variance 0.5 minute squared give utilization 0.8, mean queue wait 3 minutes and mean total system time 4 minutes.

Good to know

Positive Poisson arrival rate and positive mean service with finite nonnegative variance; one FCFS server, independent IID service and infinite waiting room. Strict utilization<1 required. Seconds/minutes/hours label common supplied units, not automatic conversion. Mean measures only; no quantiles, finite buffer, abandonment, priority, non-Poisson arrivals or multi-server approximation.

Service variability affects a single queue

An M/G/1 queue has Poisson arrivals, a general independent service-time distribution and one server. The general service distribution matters even when its mean stays unchanged. A variable job can leave later arrivals waiting behind a long service, producing a larger average queue than a constant-duration service with the same mean.

The Pollaczek–Khinchine formula summarizes the stationary mean waiting effect through the first two service moments. It does not require a named service distribution once those moments are supplied, but the queueing assumptions remain essential. The page does not infer arrival patterns or service-time variation from a list of observed jobs.

M G 1 queue mean waiting time calculator with service time variance worked exampleOne serverρ = 0.8Queue wait = 3 minSystem time = 4 minVar[S] = 0.5 min² · E[S] = 1 minPoisson arrivals: 0.8 per minute
Scroll across to see the full diagram.
The default rate 0.8 per minute, mean service 1 minute and variance 0.5 minute squared give utilization 0.8, mean queue wait 3 minutes and mean total system time 4 minutes.

Compare this with the Erlang C staffing waiting probability and service level calculator. Quantify waiting caused by arbitrary IID service-time variability at a single server; Erlang C sizes multiple exponential-service servers and cannot represent an arbitrary supplied service variance.

Keep rates, durations and variance consistent

Arrival rate is the mean number of arrivals per chosen time unit. Mean service is a duration in that unit, and service variance uses its square. For example, a rate per minute cannot be paired directly with a mean entered in seconds without conversion. The unit selector labels the common system used by all inputs.

The selector does not convert numbers that were originally recorded in incompatible units. Convert mean durations by the time factor and variances by its square, while rates transform inversely. Nonnegative variance is allowed, including zero for a deterministic service time, but the mean service duration must remain strictly positive.

Check the stationarity condition first

Utilization rho is arrival rate times mean service. A stationary finite mean under the stated model requires rho below one. If arrivals demand service as quickly as or faster than the server can supply it on average, the denominator in the mean formula does not define a stable stationary queue.

The calculator rejects rho at or above one instead of returning a negative wait or treating a divergent queue as a valid finite result. A value just below one can still produce a very large mean. That sharp growth is a property of the queueing model, not necessarily a numerical failure or a practical safety margin.

Distinguish waiting from total system time

Mean queue wait excludes the arriving job’s own service time. Mean system time adds the mean service duration. Little’s law then multiplies these mean times by arrival rate to give mean queue length and mean number in the full system, respectively, under the same stationary observation convention.

Queue lengths are expectations and need not be integers. A reported mean of 2.4 waiting jobs does not describe a physically fractional customer at an instant. It describes a long-run average. The returned squared coefficient of service variation separates dispersion from duration and helps compare scenarios with a common mean.

Work through the default utilization and delay

With arrival rate 0.8 per minute and mean service one minute, utilization is 0.8. Service variance 0.5 gives second moment 1.5 minutes squared. The mean queue wait is therefore 0.8 times 1.5 divided by twice 0.2, which equals three minutes.

Adding service gives mean system time four minutes. Multiplying those times by the arrival rate gives mean queue length 2.4 and mean system length 3.2. The difference between the two expected lengths is utilization, 0.8, corresponding to the average probability that the single server is occupied in this model.

Compare variability at fixed mean service

The variability table holds arrival rate and mean service fixed while changing squared coefficient of variation. Deterministic service has coefficient zero. Exponential service has coefficient one and recovers the familiar M/M/1 mean. Greater second-moment dispersion increases the predicted wait even though average service capacity has not changed.

This comparison is a mathematical sensitivity analysis, not a claim that every chosen pair of moments describes a particular operational distribution. The page does not return a waiting-time percentile, service-level probability or tail distribution from only two moments. Different service laws with the same first two moments can share this mean while having different delay tails.

Know when a different queue model is required

Several departures require a different calculation: multiple servers, finite buffers, customer abandonment, priorities, correlated service or arrival processes that are not Poisson. Reusing the same formula after changing the label does not incorporate those mechanisms. A measured business system should be checked against the assumptions before treating the mean as an operational forecast.

Analytic checks include zero-variance M/D/1 service and exponential M/M/1 service, along with consistent conversion between seconds and minutes. The page treats arrival and service moments as known inputs, so it supplies no confidence interval for estimates derived from limited observations. Uncertainty in those inputs must be assessed separately from the stationary arithmetic.

A few questions, answered

Is the waiting time a percentile?

No. The first two service moments determine this stationary mean formula, but do not generally determine waiting-time quantiles.

Does choosing minutes convert the numbers?

No. The selector labels a common supplied unit; rates, means and variances must already be converted consistently.

Why is utilization of one rejected?

At or above one, the stated stationary queue does not have the finite mean required by this formula.

Can this model several servers?

No. It is a one-server FCFS M/G/1 model; a multi-server queue requires different assumptions and calculations.

Find your calculator

Start typing to explore the library.