k is a whole number, so the cumulative probability at k is usually a little above p.
k
p
Try:
The calculator finds the mean λ that gives P(X ≤ k) = p.
k
C
t
Try:
Exposure t is the time, area or volume that the count covers. Use t = 1 for an interval on the count.
Results update as you type. Press Enter to save to history and / to jump to the input.
Visualize
Poisson(4). The shaded bars from 0 to k = 8 add up to 0.9786, the first total to reach p = 0.95.
Result
qpois(0.95, 4) =
P(X ≤ 7) = 0.9489 < 0.95 ≤ P(X ≤ 8) = 0.9786
✓ Exact whole number
Mean λ
4
Probability p
0.95
Rule
P(X ≤ k) ≥ p, smallest k
P(X ≤ k)
0.9786365655
P(X ≤ k − 1)
0.9488663842
Variance
4
Formula
P(X ≤ k) = e^(−λ) Σ λⁱ / i!
History
Your recent calculations will appear here.
Step-by-step solution
Identify the values
λ = 4
P(X ≤ k) ≥ 0.95
Find the smallest count k whose cumulative probability reaches p.
Add P(X = i) = e^(−λ) λⁱ / i! until the total reaches 0.95
P(X ≤ 0) = 0.018316
P(X ≤ 1) = 0.091578
P(X ≤ 2) = 0.238103
P(X ≤ 3) = 0.43347
P(X ≤ 4) = 0.628837
P(X ≤ 5) = 0.78513
P(X ≤ 6) = 0.889326
P(X ≤ 7) = 0.948866
P(X ≤ 8) = 0.978637 ≥ 0.95
Each row adds the next probability to the running total.
Answer
k = 8
P(X ≤ 7) = 0.948866 is below the target, so 7 is too small.
Verify
P(X ≤ 8) = 0.978637 ≥ 0.95 ✓
Did this solve your problem?
An inverse Poisson calculator finds the smallest count k whose cumulative Poisson probability reaches p, for a mean λ. It solves for λ from a probability and gives the exact confidence interval for a count, with worked steps, probability bars, the CDF graph and the matching R qpois and Python poisson.ppf calls.
What is the Inverse Poisson Distribution?
The inverse Poisson distribution finds the smallest count k with P(X ≤ k) ≥ p, for a Poisson variable X with mean λ. It answers "how many events should I plan for?" where the Poisson CDF answers "how likely is k events or fewer?".
k = min { k : e^(−λ) Σᵢ₌₀ᵏ λⁱ / i! ≥ p }
X counts events in a fixed interval: calls per hour, defects per metre, arrivals per day.
For λ = 4 and p = 0.95, k = 8: P(X ≤ 7) = 0.9489 falls short and P(X ≤ 8) = 0.9786 reaches 0.95.
The answer is a whole number, so the probability at k usually lands above p, not on it.
Other names: the Poisson quantile function, qpois in R and poisson.ppf in Python.
k for p = 0.95 as λ changes
Move the mean λ. The shaded bars from 0 to k hold at least 95% of the probability.
How to Calculate the Inverse Poisson?
To calculate the inverse Poisson, add the probabilities P(X = 0), P(X = 1), P(X = 2), … until the running total reaches p; the last count added is k. For λ = 4 and p = 0.95:
P(X = 0) = e^(−4) = 0.0183. Total 0.0183.
Each next term is the last one times λ/i: 0.0733, 0.1465, 0.1954, 0.1954, 0.1563, 0.1042, 0.0595.
The total after k = 7 is 0.9489, still below 0.95.
Add P(X = 8) = 0.0298. The total is 0.9786, so k = 8.
The rule "times λ/i" saves work: P(X = i) = P(X = i − 1) × λ / i, so no factorials are needed.
Step-by-step inverse Poisson
Type a mean λ and a probability p.
How to Use This Inverse Poisson Calculator?
Pick a mode, type the numbers, and the calculator returns k, λ or an interval as you type. The steps:
Choose Find k for a count, Find λ for a rate, or Interval for λ for a confidence interval from an observed count.
For k: type the mean λ and the probability p, then pick the rule. "At most k" gives P(X ≤ k) ≥ p. "More than k" gives P(X > k) ≤ p.
Type p as a decimal (0.95), a percent (95%) or a fraction (19/20).
Read the answer, the probabilities on each side of k, the normal approximation and the most likely count.
Open the probability bars or the cumulative graph, and the worked steps.
The result can be copied, shared as a link, printed or kept in the history list.
Try an example
Each button fills the calculator above and scrolls to the result.
Inverse Poisson Formula
The inverse Poisson has no closed formula: k is the smallest whole number where the Poisson CDF reaches p.
P(X ≤ 3) = 0.5: λ = 3.6721, so 3.6721 is the mean whose median count is 3.
P(X ≤ 10) = 0.95: λ = 6.1690.
The same λ comes from the chi-square distribution: λ = χ²(1 − p; 2k + 2) / 2. For k = 3 and p = 0.05, λ = 15.5073 / 2 = 7.7537.
Find λ step by step
Type a count k and the probability P(X ≤ k).
Confidence Interval for a Poisson Count
The exact (Garwood) confidence interval for λ after k events runs from λ₁ with P(X ≥ k) = α/2 to λ₂ with P(X ≤ k) = α/2. After 12 events, the 95% interval is 6.2006 to 20.9616.
Divide both bounds by the exposure to get a rate. 30 events in 10 years gives a 90% interval of 2.16 to 4.07 events a year.
Zero events still gives an upper bound: 3.689 at 95% two-sided, or 2.996 one-sided. The "rule of 3" uses this: no events in n trials puts the rate below about 3/n.
Exact and approximate intervals
Move the count and pick a level. The exact interval sits to the right of the normal one for small counts.
Normal Approximation to the Inverse Poisson
For large λ, k ≈ ⌈λ + z√λ − 0.5⌉, where z = Φ⁻¹(p) and the 0.5 is a continuity correction. The approximation improves as λ grows, since the skewness 1/√λ shrinks.
λ = 4, p = 0.95: the approximation gives 7, the exact answer is 8.
λ = 10, p = 0.95: both give 15.
λ = 100, p = 0.95: the approximation gives 116, the exact answer is 117.
λ = 120, p = 0.99: the approximation gives 145, the exact answer is 146.
The Poisson distribution leans right, so the normal guess tends to fall 1 short in the upper tail. Use the exact sum when the count sets stock, staff or capacity.
Exact k against the normal curve
Move λ. The bars are the Poisson probabilities; the curve is the normal approximation.
Inverse Poisson Graph (Step Function)
The graph of the inverse Poisson is a staircase: k stays flat while p moves inside one step of the CDF, then jumps by 1.
The Poisson CDF F(k) is a step graph that climbs from e^(−λ) towards 1.
Read it sideways: draw a level at p, move right to the first step at or above it, and read k.
The steps are tallest near k = λ, where the probabilities are largest.
For λ = 4, every p from 0.4335 to 0.6288 returns k = 4.
Read k off the CDF
Move p. The dashed level meets the first step that reaches it.
Inverse Poisson in R, Python and Excel
R has qpois(p, λ), Python has scipy.stats.poisson.ppf(p, λ) and MATLAB has poissinv(p, λ); Excel and the TI-84 have no inverse Poisson function.
Python: from scipy.stats import poisson; poisson.ppf(0.95, 4) returns 8.0.
MATLAB: poissinv(0.95, 4) returns 8.
Excel and Google Sheets: list k in one column and =POISSON.DIST(k, 4, TRUE) next to it, then take the first row at or above p.
TI-84: run poissoncdf(4, k) for k = 0, 1, 2, … until the result reaches p.
The same inverse Poisson in code
Type p and λ, then pick a tool.
Inverse Poisson Table (k for Common Probabilities)
The inverse Poisson table lists the smallest k with P(X ≤ k) ≥ p for means from 0.5 to 100. Click a row to load that λ with p = 0.95 into the calculator.
The 0.5 column is the median. For whole-number λ the median equals λ; the 99% column sits about 2.3√λ above the mean.
Inverse Poisson table
Filter by value, or click a row to send it to the calculator.
Mean λ
p = 0.5
p = 0.9
p = 0.95
p = 0.99
p = 0.999
0.5
0
1
2
3
4
1
1
2
3
4
5
2
2
4
5
6
8
3
3
5
6
8
10
4
4
7
8
9
11
5
5
8
9
11
13
6
6
9
10
12
15
8
8
12
13
15
18
10
10
14
15
18
21
12
12
17
18
21
24
15
15
20
22
25
28
20
20
26
28
31
35
25
25
32
33
37
42
30
30
37
39
43
48
50
50
59
62
67
73
100
100
113
117
124
132
Inverse Poisson vs Poisson CDF
The Poisson CDF turns a count into a probability; the inverse Poisson turns a probability back into a count. P(X ≤ 8) = 0.9786 for λ = 4, and qpois(0.9786, 4) = 8.
Property
CDF F(k)
Inverse Q(p)
Input
count k = 0, 1, 2, …
0 < p < 1
Output
a probability
a whole count
R
ppois
qpois
Python
poisson.cdf
poisson.ppf
Graph
rising steps
rising steps, axes swapped
The round trip Q(F(k)) = k always holds. F(Q(p)) = p holds only when p lands on a step; otherwise F(Q(p)) is a little above p.
CDF and inverse side by side
Type a probability between 0 and 1, or a whole count, to see both directions for λ = 4.
Inverse Poisson in Real Life
The inverse Poisson sets capacity: how many staff, parts, servers or beds cover random demand a chosen share of the time.
Call centre: 120 calls an hour on average. Planning for 146 calls covers 99% of hours.
Spare parts: 3 failures a month on average. A stock of 8 parts runs out in fewer than 1 month in 250.
Web server: 40 requests a second on average. Capacity for 55 covers 99% of seconds.
Hospital beds: 18 admissions a day on average. 25 free beds cover 95% of days.
Quality control: with 2 defects per roll expected, a roll with more than qpois(0.99, 2) = 6 defects flags a problem.
Plan for random demand
Pick an example, set the average and choose a service level.
Inverse Poisson FAQ
No question matches your search.
What is the inverse Poisson?
The inverse Poisson is the Poisson quantile function. For a mean λ and a probability p, it returns the smallest whole count k with P(X ≤ k) ≥ p.
What is qpois?
qpois is the R function for the inverse Poisson. qpois(0.95, 4) returns 8, the smallest k with P(X ≤ k) ≥ 0.95 when λ = 4.
Why is P(X ≤ k) not exactly p?
A Poisson count jumps in whole steps, so the CDF skips most values. The calculator returns the first k whose cumulative probability reaches p, which usually lands a little above p.
What is the 95th percentile of a Poisson distribution with mean 4?
k = 8. P(X ≤ 7) = 0.9489 is below 0.95 and P(X ≤ 8) = 0.9786 is above it.
What is the median of a Poisson distribution?
The median is qpois(0.5, λ). For whole-number λ it equals λ; for other λ it lies between λ − ln 2 and λ + 1/3.
How do I find λ from a probability?
Use the Find λ mode. It solves P(X ≤ k; λ) = p by bisection. P(X = 0) = 0.05 gives λ = 2.9957, and P(X ≤ 3) = 0.5 gives λ = 3.6721.
How do I calculate a confidence interval for a Poisson count?
Use the Interval mode. The exact 95% interval after 12 events is 6.2006 to 20.9616. Divide by the exposure to get a rate.
What is the upper bound when no events are observed?
With k = 0, the 95% two-sided upper bound is 3.689 and the one-sided bound is 2.996, the basis of the rule of 3.
Does Excel have an inverse Poisson function?
No. Excel has POISSON.DIST for the CDF. List k = 0, 1, 2, … with =POISSON.DIST(k, λ, TRUE) and take the first row at or above p.
What is the Python function for the inverse Poisson?
It returns the smallest k with P(X > k) ≤ p: a count exceeded with probability p or less. It equals the left-tail answer for 1 − p.
When can I use the normal approximation?
For λ above about 20, k ≈ ⌈λ + z√λ − 0.5⌉ is usually exact or 1 short. For small λ the Poisson leans right and the exact sum is safer.
Can λ be a decimal?
Yes. λ is an average, so 2.5 calls a minute is fine. The answer k is always a whole number.
How large can λ be in this calculator?
Up to 10,000,000. The calculator uses the regularized incomplete gamma function, so large means stay accurate.
Is the inverse Poisson the same as the Poisson CDF?
No. The CDF takes a count and returns a probability; the inverse takes a probability and returns a count. They undo each other: qpois(ppois(k, λ), λ) = k.