Formula: Little’s Law (L = λW) Systems Engineering Formula
- arrivalRateRps: Arrival Rate Rps (req/s)
- meanResponseLatencyMs: Mean Response Latency (ms)
- peakTrafficMultiplier: Peak Traffic Multiplier (×)
Apply Little’s Law L = RPS × (Latency_ms / 1000) to size server concurrency.
No. That is one of its strengths. The relation L = λW holds for any arrival pattern and any distribution of service times, as long as the system is stable over the period you average across. Queueing formulas that predict wait times often do assume Poisson arrivals, but the plain concurrency figure on this page does not depend on that assumption at all.
Enter the mean. Little's Law relates averages, so the mean latency gives the true average number in flight. A p99 figure is much higher than the mean on most services and would overstate the average count. If you want a cautious pool size, keep the mean in the latency box and raise the peak multiplier, or add explicit headroom when you round up.
The default gives 102 on average and 255 at a 2.5 times burst, so a thread-per-request server would need at least 255 threads to avoid queueing at peak. Most teams add a margin on top for slow requests and retries. The calculator does not pick that margin for you; it depends on how much latency rises when the service is busy.
Yes, if you change the inputs to match the pool's boundary. Use the rate of queries reaching the database and the mean time a connection is held per query, including network round trips. The answer is the average number of connections in use. Many applications hold a connection longer than the query itself takes, so measure hold time rather than query time.
You probably entered seconds instead of milliseconds. The latency box expects milliseconds and divides by 1000 internally, so typing 0.085 for an 85 ms response gives about 0.1 requests in flight. Re-enter the figure as 85 and the default answer of 102 requests returns. The same check applies to arrival rate, which must be per second rather than per minute.
No. It assumes the latency you enter holds at the peak rate too. Real services often slow down as they approach saturation, and because concurrency is rate times latency, a slower service at peak traffic needs more slots than the peak line shows. If you have measured peak latency, run the calculator again with that figure and use the larger result.
It makes the peak burst line equal to the mean, so both show 102 requests with the defaults. Use it when you have already typed your peak arrival rate into the first box and do not want the burst applied a second time. Otherwise a multiplier above 1 is usually more realistic, since traffic rarely arrives at a perfectly even rate.
No, it uses only the average arrival rate multiplied by the seconds in an hour. With 1200 requests per second that is 4.32 M per hour. The peak multiplier does not change it. That makes the figure suitable for checking billing and logs, which are totals, but not for sizing anything that has to survive a burst.
Yes, at any boundary you choose. For the full chain, use the rate entering the front door and the end-to-end mean latency. For one service inside it, use that service's own incoming rate and its own latency. The concurrency figures for each hop will differ, and each one sizes the pool or connection limit at that hop only.
Usually because the inputs come from different boundaries or time windows. If the rate is measured at the load balancer and the latency inside the application, the product mixes two systems. Averages over a quiet hour also differ from a busy minute. Measure both inputs at the same point over the same window and the law should match your gauge closely.
Start with the default service: 1200 requests arrive every second and each one takes 85 milliseconds on average to finish. Little's Law multiplies the two, after turning milliseconds into seconds. 1200 times 0.085 gives 102, and that is the headline figure.
Those 102 requests are not a queue and not a backlog. They are the average number of requests that have arrived and not yet been answered, at any instant you care to look. Some are being parsed, some are being authenticated, some are waiting on a database, some are halfway through serialising a response. If you could freeze the system and count, you would usually see something close to 102 requests open at that moment.
That count is what your server has to hold at once. Each one needs a thread, a coroutine, a connection slot or a file descriptor, depending on how the stack is built. So the number translates directly into how big a worker pool, a connection pool or a load balancer's connection limit has to be before requests start getting turned away.
The law itself is old and remarkably general. It holds for any stable system where arrivals and departures balance over time, regardless of how arrivals are distributed or how service times vary. That is why it works as a first sizing step even when you know very little about the traffic pattern.
The calculator asks for arrival rate in requests per second and latency in milliseconds, then divides latency by 1000 inside the formula. Most sizing mistakes with Little's Law come from mixing those units, so it helps to check what you are pasting in.
If your dashboard reports requests per minute, divide by 60 first. A per-minute figure is sixty times larger than the per-second one, so entering it unchanged inflates the answer sixtyfold. If it reports latency in seconds, multiply by 1000: a 0.085 second mean is the 85 ms the page expects. Enter 0.085 in the latency box by mistake and the answer collapses to about 0.1 of a request, which is nonsense for a busy service.
The latency figure must be a mean, measured from the moment a request enters the part of the system you are sizing to the moment it leaves. Using the p99 instead of the mean overstates the average concurrency. Using only application time, while ignoring time spent waiting in a load balancer queue, understates it for the load balancer.
The arrival rate should be the rate of requests reaching that same boundary. If a CDN answers half your traffic, the origin sees half the rate, and the origin's concurrency is half as large.
Averages hide bursts. The third input scales the average concurrency by a peak factor, and the default of 2.5 turns 102 into 255 peak burst concurrent requests. That figure is the one most teams should size a pool against, because a pool sized only for the mean will be saturated for a large part of every busy period.
The multiplier is a judgement, not something the calculator measures. A good way to set it is to look at your own traffic history and divide the busiest one-minute rate by the daily average rate. Consumer apps with evening peaks or marketing pushes often see higher ratios. Internal back-office systems with steady traffic may sit near 1.5.
Setting the multiplier to 1 makes the peak line equal the mean, which is useful when you already entered a peak arrival rate in the first box. Do not apply a peak rate and a large multiplier together, or you will count the burst twice.
The multiplier also assumes latency stays at 85 ms during the burst. In practice latency often rises when the system is busy, and since concurrency is rate times latency, the two effects compound. If you know your latency climbs at peak, enter the peak latency too.
Because L is a simple product, the two inputs pull equally. Run the calculator at the default rate with latency doubled from 85 ms and both outputs double: the mean and the peak burst line each come out at twice the default. Cut latency to 40 ms instead and the mean falls to 48 requests in flight, less than half of the default 102 requests. The arrival rate has not changed at all, yet the capacity the system needs has moved by a factor of more than four between the slow run and the fast one. Nothing on the traffic graph would warn you about either change.
This is the practical lesson most people take from Little's Law. A slow downstream dependency does not only make users wait. It also ties up a slot for every extra millisecond, so a slowdown in a database or third-party API can exhaust a thread pool that was perfectly adequate the day before. The arrival rate looks normal on the dashboard while the service falls over.
The same logic works in your favour. Caching a hot query or removing a synchronous call shrinks W, and the concurrency the service must carry shrinks in proportion. Sometimes that is cheaper than adding servers, and it is always worth checking before you buy capacity. A latency budget per dependency, written down next to the pool sizes, makes the link visible to whoever changes that dependency later.
Holding latency at 85 ms and moving only the rate shows the linear side of the law. At 720 requests per second the mean concurrency is 61.2 with 153 at peak. At the default 1200 it is 102 with 255 at peak. At 1800 it is 153 with 382.5 at peak.
Notice the decimals. Little's Law gives a long-run average, so fractional requests are fine in the answer. When you turn that into a pool size you round up, and then add headroom, because a pool that is exactly full at the burst has no room for a slow request or a retry.
These three runs also show why growth planning is straightforward with this tool. If marketing expects traffic to rise by half, concurrency rises by half, provided latency holds. The harder question is whether latency will hold, which depends on whether databases and caches scale as well.
The supporting line labelled throughput per single worker is 1 divided by W. At 85 ms it comes out at 11.76 requests per second. It answers a narrow question: if one worker handles exactly one request at a time and never sits idle, how many can it finish in a second.
That assumption suits a classic thread-per-request server, a synchronous worker process or a database connection that runs one query at a time. Divide the arrival rate by this figure and you get the same 102 again, which is just Little's Law written the other way round.
It does not describe an event-loop server where one process juggles hundreds of waiting requests, or a worker that spends most of its 85 ms waiting on the network. In those designs the useful limit is something else, such as CPU time per request or the number of outbound connections. Treat the 11.76 figure as a ceiling for strictly serial workers, not as a benchmark for your actual process.
The last supporting line multiplies the rate by the seconds in an hour and shows it in millions. The default gives 4.32 M requests per hour, the 720 run gives 2.59 M and the 1800 run gives 6.48 M.
This figure has nothing to do with concurrency, but it is handy for a sanity check against logs, billing for request-priced services and rate limits quoted per hour. If your API gateway charges per million calls, this is the number to multiply. Note that it uses the average rate, not the peak, since a burst lasting a few minutes barely moves the hourly total. If the hourly figure you see in your logs is far from the one here, the arrival rate you typed probably came from a different window or a different layer of the stack.
Little's Law tells you how many requests are in the system, not how long they wait in a queue or how latency behaves as a pool fills. If you size a pool at exactly 102 slots for a mean of 102 in flight, the pool is busy nearly all the time and queueing delay will grow sharply. For that question you need a queueing model such as Erlang C, which uses the same rate and service time but adds the number of workers and returns a probability of waiting.
The law also assumes a stable system, meaning requests leave as fast as they arrive over the period measured. During an overload, where work piles up faster than it drains, the average stops being meaningful because the count keeps rising. Retries make this worse, since each timed-out request comes back as a new arrival.
The calculator does check the basics: arrival rate and latency must be above zero and the peak multiplier must be 1 or more, or it shows an error. It cannot tell whether a positive number came from the wrong dashboard or the wrong unit, so read the answer critically if it looks far from what you expected. Used with honest averages and a realistic peak factor, though, it gives a defensible first number for a capacity review, and the arithmetic is simple enough to check by hand in a design document.