Skip to content

Little's Law Calculator

Use Little's law (L = λW) to work out concurrency, throughput or latency from the other two, and size a thread, connection or worker pool.

Calculator Details

Concurrency (L):50See results ↓

The value to work out from the other two

Average arrivals or completions

The time unit of the throughput

Average time each one spends inside: latency, response time, lead time

The unit of the time in system

Your Results

Concurrency (L): 50

Concurrency (L)

50

Average number in the system at once

Throughput (λ) per second

200

200 per second

Time in system (W), ms

250

250 ms

Pool size at 70% busy

72

Workers, threads or connections: ⌈L ÷ utilisation⌉

200 per second × 250 ms in the system = 50 in the system at once on average; at 70% utilisation that needs 72 workers.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

If the time in system changes (throughput stays 200 per second)
Time in systemTimeConcurrency
0.5×125 ms25
As entered (you)250 ms50
2×500 ms100
4×1s200
10×2.5s500

When latency spikes, concurrency rises in proportion: a pool sized for normal latency fills up and requests start to queue.

How This Calculator Works

How it's calculated

L = λ × W · λ = L ÷ W · W = L ÷ λ

pool size = concurrency ÷ target utilisation, rounded up

Your numbers: in seconds, 200 per second × 0.25 s = 50 in the system on average. With the pool kept 70% busy, 50 ÷ 0.7 rounds up to 72.

Frequently Asked Questions

What is Little's law?

L = λW: the average number of items in a system equals the average rate they arrive times the average time each spends inside. John Little proved it in 1961. It holds for any stable system, whatever the arrival pattern, service order or number of servers.

How do I calculate concurrency from throughput and latency?

Multiply them, in matching units. A service handling 200 requests per second with an average response time of 250 ms has 200 × 0.25 = 50 requests in flight on average.

How big should my thread or connection pool be?

At least the concurrency Little’s law gives, plus headroom for bursts. Dividing by a target utilisation such as 70% does that: 50 ÷ 0.7 rounds up to 72. Too small a pool makes requests queue; too large a one can overload the database or service behind it.

Why does a slow dependency exhaust my pool?

Because concurrency is throughput × latency. If a database call slows from 250 ms to 2.5 seconds while traffic stays at 200 per second, the requests in flight rise from 50 to 500. A pool of 72 fills up and new requests wait, even though traffic didn’t change. Timeouts cap W and protect the pool.

Does Little's law need random arrivals?

No. Unlike the M/M/1 and Erlang formulas, it makes no assumption about how arrivals or service times are distributed. It needs only a stable system (what goes in comes out, on average) and averages taken over a long enough period.

How is Little's law used in project management?

In Kanban and lean, it links work in progress, throughput and lead time: average lead time = work in progress ÷ throughput. A team finishing 10 items a week with 30 in progress has an average lead time of 3 weeks; limiting work in progress shortens it.

What if my system isn’t stable?

If arrivals exceed completions, the queue grows and the averages keep changing, so the law doesn’t describe a steady state. Measure over a window where the number in the system starts and ends at about the same level, or fix the capacity first.

Included: Little's law L = λW solved for concurrency, throughput or time in system with unit conversions, a pool size at a target utilisation, and concurrency if the time in system grows. Left out: peaks and percentiles (the law relates long-run averages, so size for the busiest period and the slow tail separately), unstable systems where the queue keeps growing, and the queueing delay that a full pool adds (see the queueing calculator for waiting times).

Little's Law Calculator: Concurrency, Throughput and Latency

By FindMySum · Last reviewed

A Little's law calculator works out one of three linked averages from the other two: how many things are in a system at once, how fast they flow through it, and how long each one stays. In software that means concurrency, throughput and latency; in a shop, customers inside, customers per hour and time spent; in a project, work in progress, items finished per week and lead time. The calculator also turns concurrency into a pool size for threads, workers or database connections.

The law

L = λ × W

  • L is the average number in the system: requests in flight, jobs in progress, people in the queue and being served.
  • λ (lambda) is the average throughput: how many arrive, or equally how many leave, per unit of time.
  • W is the average time each one spends in the system.

The calculator opens with a web service handling 200 requests per second, each taking 250 milliseconds: 200 × 0.25 = 50 requests in flight on average. Choose "Solve for" to rearrange: λ = L ÷ W and W = L ÷ λ. Units are converted for you, so throughput can be per minute and time in milliseconds.

Why it always holds

The striking thing about Little's law is how little it assumes. Arrivals can be steady or bursty, service can be first come first served or random, there can be one server or a thousand. As long as the system is stable, with as much leaving as arriving over the period, and the averages are taken over a long enough window, L = λW. That generality is what makes it useful as a sanity check: if your monitoring shows 200 requests per second, 250 ms average latency and 300 requests in flight, one of the three measurements is wrong.

Sizing pools

Concurrency is what a pool of workers must hold. If 50 requests are in flight on average, a pool of 50 threads would be busy all the time, and every burst would queue. Keeping the pool partly idle absorbs bursts:

pool size = concurrency ÷ target utilisation, rounded up

At the default 70% utilisation, 50 ÷ 0.7 = 71.4, so 72 workers. The same reasoning sizes database connection pools, the number of consumers on a message queue, or the concurrency limit of serverless functions. For how waiting time grows as utilisation rises, the queueing calculator models it explicitly.

When latency spikes

The breakdown table holds throughput steady and multiplies the time in system. At twice the latency, concurrency doubles to 100; at ten times, it reaches 500. This is the mechanism behind many outages: a database or downstream API slows down, requests take longer, the number in flight multiplies, and the pool sized for normal latency fills up. New requests queue, latency rises further, and the problem feeds itself.

Two defences follow directly from the law. Timeouts cap W, so concurrency can't grow without limit. Concurrency limits cap L and reject excess work quickly instead of letting it pile up, which keeps the latency of the accepted requests low.

Beyond software

Little's law came from operations research and applies wherever things flow:

  • Shops and services. 10 customers an hour staying 30 minutes means 5 in the shop on average, which tells you how many seats or staff you need.
  • Manufacturing. Inventory = throughput × flow time; cutting the time parts wait between steps cuts the inventory tied up in the plant.
  • Kanban. Lead time = work in progress ÷ throughput. A team finishing 10 items a week with 30 in progress has a 3-week average lead time; limiting work in progress to 20 cuts it to 2 weeks without anyone working faster.

Keep the units straight

Most mistakes with Little's law are unit mistakes: throughput per second multiplied by latency in milliseconds gives an answer a thousand times too big. The calculator converts both to seconds before multiplying and shows the step in "How it's calculated", so you can check the arithmetic with your own numbers.

More questions

Who was John Little?

John D. C. Little was a professor at MIT's Sloan School of Management and an early operations researcher. The relationship L = λW was used informally before him, but his 1961 paper in Operations Research gave the first general proof, and the result has carried his name since.

Can I use percentiles instead of averages?

Not in the formula itself: it relates averages. Multiplying the throughput by the 99th-percentile latency doesn't give the 99th-percentile concurrency. For sizing, a common approach is to use the busiest period's average throughput and a latency somewhat above the average, then add headroom.

How do I measure the three quantities?

Throughput from request or completion counts per second; time in system from the average response time measured where the work enters and leaves; concurrency from a gauge of in-flight requests or queue depth sampled often. Measured over the same window, the three should satisfy L ≈ λW, which is a handy check on your monitoring.

Does Little's law apply to a single server or the whole system?

Both, as long as the boundary is consistent. You can apply it to one thread pool, one queue, a whole service or an entire company's order pipeline. Count arrivals, time and items for the same boundary.

What is the connection between Little's law and bandwidth-delay product?

They are the same idea. In networking, the data in flight on a link equals the bandwidth times the round-trip time; a TCP window smaller than that product can't keep the link full. Data in flight is L, bandwidth is λ and round-trip time is W.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy