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.