Reliability and confidence sample size calculator
Favorites
No favorites yet. Press Favorite on any page to keep it here.
This reliability and confidence sample size calculator tells you how many units to test to demonstrate a reliability at a chosen confidence level. Enter the reliability, the confidence and the number of failures you will allow, and it returns the sample size with the working.
| Failures allowed | Units to test |
|---|---|
| 0 | 29 |
| 1 | 46 |
| 2 | 61 |
| 3 | 76 |
| 4 | 89 |
| 5 | 103 |
Show the working, step by step
With no failures allowed, use the success-run formula.
n = ln(1 − C) ÷ ln(R) = ln(0.05) ÷ ln(0.9) = 28.4332
Round up to a whole unit.
n = 29
If all 29 units pass, you can state 90% reliability with 95% confidence.
The success-run formula
n = ln(1 − C) ÷ ln(R)
R is the reliability to demonstrate and C the confidence, both as decimals, and n is rounded up. It comes from a simple argument. If the true reliability were only R, the chance that n units in a row all pass is Rn. Choose n so that chance is no more than 1 − C, and passing the test becomes strong evidence that the reliability is at least R.
Worked example
Show 90% reliability with 95% confidence, no failures allowed.
- 1 − C = 1 − 0.95 = 0.05, and ln(0.05) = −2.9957.
- ln(R) = ln(0.90) = −0.10536.
- n = −2.9957 ÷ −0.10536 = 28.43, rounded up to 29 units.
Check: 0.9029 = 0.047, which is below 0.05, while 0.9028 = 0.052 is not. So 29 is the smallest sample that works.
Common reliability and confidence sample sizes
| Reliability / confidence | 0 failures | 1 failure | 2 failures |
|---|---|---|---|
| 90% / 90% | 22 | 38 | 52 |
| 90% / 95% | 29 | 46 | 61 |
| 95% / 90% | 45 | 77 | 105 |
| 95% / 95% | 59 | 93 | 124 |
| 99% / 90% | 230 | 388 | 531 |
| 99% / 95% | 299 | 473 | 628 |
Raising reliability costs far more than raising confidence. Going from 95% to 99% reliability at 95% confidence takes the zero-failure sample from 59 to 299.
When failures are allowed
Σ C(n, i) (1 − R)^i R^(n − i) ≤ 1 − C, summed for i = 0 to f
With f failures allowed, the calculator finds the smallest n for which a product at exactly the target reliability would produce f or fewer failures with probability no more than 1 − C. That is a cumulative probability from the binomial distribution. A plan that allows failures needs more units, but a single failure does not end the test.
When to use it
- Design verification and process validation. Showing a product or process meets a requirement on pass or fail tests, as in medical device and automotive work.
- Attribute data only. Each unit passes or fails. For measured values, a tolerance interval usually needs far fewer units.
- Not for surveys. For a poll or an estimate of a mean, use the sample size calculator, which works from the margin of error.
Common questions
How do you calculate sample size for reliability and confidence?
With no failures allowed, use the success-run formula n = ln(1 − C) ÷ ln(R), where R is the
reliability and C the confidence, and round up. For 90% reliability at 95% confidence,
ln(0.05) ÷ ln(0.90) = 28.4, so you test 29 units and all must pass.
What sample size do I need for 95% confidence and 95% reliability?
59 units with zero failures. ln(0.05) ÷ ln(0.95) = 58.4, which rounds up to 59. Allowing one failure raises it to 93, and two failures to 124.
What does 90/95 or 95/95 mean?
In this field the pair is usually given as reliability / confidence. 95/95 means showing that at least 95% of units meet the requirement, with 95% confidence in that claim. Some documents write confidence first, so check which is which before you use a table.
What happens if a unit fails during the test?
A zero-failure plan is failed by a single failure. You cannot simply keep testing until the numbers work. Either investigate and restart, or use a plan chosen in advance that allows failures, which needs a larger sample. Set the number of failures allowed before testing begins.
Does this apply to measured (variable) data?
No. This is an attribute plan, where each unit simply passes or fails. If you measure a value on each unit, a tolerance interval can demonstrate the same reliability and confidence with far fewer units, provided the data are close to normal.
Related calculators
-
Sample size calculator
Sample size for a survey proportion or a mean from the margin of error.
-
Tolerance interval calculator
Reliability and confidence from measured data instead of pass or fail.
-
Binomial distribution
The distribution behind pass and fail counts.
-
Power analysis calculator
Sample size to detect an effect in a hypothesis test.