standarddeviationcalculator.net SD Calculator

Reliability and confidence sample size calculator

Share this page

Favorites

    No favorites yet. Press Favorite on any page to keep it here.

    Methodology

    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.

    Sample size 29 units
    Reliability90%
    Confidence95%
    Failures allowed0
    Zero-failure sample size29
    Sample sizes for 90% reliability at 95% confidence
    Failures allowedUnits to test
    029
    146
    261
    376
    489
    5103
    Show the working, step by step
    1. With no failures allowed, use the success-run formula.

      n = ln(1 − C) ÷ ln(R) = ln(0.05) ÷ ln(0.9) = 28.4332

    2. 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. 1 − C = 1 − 0.95 = 0.05, and ln(0.05) = −2.9957.
    2. ln(R) = ln(0.90) = −0.10536.
    3. 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 / confidence0 failures1 failure2 failures
    90% / 90%223852
    90% / 95%294661
    95% / 90%4577105
    95% / 95%5993124
    99% / 90%230388531
    99% / 95%299473628

    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.
    Reliability and confidence sample size calculator: the worked example on this page, with its result and chart
    Reliability and confidence sample size calculator: the worked example above, at a glance.

    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.