# Test repetition sample size calculator

> Estimate the repetitions needed to notice an intermittent failure at a chosen confidence level. See how the result depends on independent runs.

Source: https://cueapril.com/tools/test-sample-size-planner
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## For an assumed failure rate, how many independent repetitions meet our detection target?

Choose a number of repetitions from an assumed independent failure probability and the chance you want of seeing the fault at least once.

A defect that appears in one in twenty independent runs can easily escape a five-run check. Twenty clean attempts do not prove it has disappeared.

## Inputs to collect

Use one consistent observation window for the inputs below. Replace the calculator’s illustrative defaults with measurements from your own software and runners.

Inputs behind the calculation

| Input | Where to get it |
| --- | --- |
| Assumption | Estimate per-run failure probability from an appropriate population. |
| Detection target | Choose the probability of seeing at least one failure. |
| Independence | Reset state or explain which conditions remain correlated. |

## Interpreting your result

For failure probability p and n independent trials, detection probability is 1 − (1 − p)ⁿ. A shared poisoned cache or a fixed seed can invalidate the independence assumption.

## Primary documentation

- [QA metrics for release decisions](/guides/qa-metrics)
- [Risk-based testing and release exceptions](/guides/risk-based-testing)

By Cue April. Updated 2026-12-01.

## Related

- [QA calculators](https://cueapril.com/tools): Estimate runner capacity, flaky-test cost, browser coverage and CI budgets. Change the assumptions and inspect the trade-offs for your release.
- [Test automation ROI](https://cueapril.com/guides/test-automation-roi): Calculate test automation ROI online or in Excel. Enter reviewer time, check volume and costs to find your first-year return, break-even volume and payback.
- [AI test management](https://cueapril.com/use-cases/ai-test-management): A test manager’s guide to AI test management. Prioritise changes by risk, agree what agents can run and report the evidence behind a release decision.
