Please use the following citations when using this calculator:
Enter the design-stage inputs, including significance level, target power, and treatment proportion, to get the minimum sample size (or achieved power) for three target populations: overall (ATE), overlap (ATO), or treated (ATT).
Optionally, add an expected attrition rate to inflate the sample size into an enrollment target.
Switch the Calculate control (top of panel 1) from "Sample size" to "Power" to run the calculation in reverse: enter a fixed sample size and the calculator returns the power it achieves, instead of the sample size needed for a target power.
Overlap coefficient: how similar the treatment and control groups are, measured by the overlap coefficient of their propensity-score distributions (Inman & Bradley, 1989): the probability mass shared by the two distributions. Equivalently, the overlap coefficient is the largest possible probability that a randomly drawn treated patient and a randomly drawn control patient have the same propensity score. It equals 1 in randomized trials; lower values mean the groups look less alike. Yang, Liu & Li (2026) recommend the following rule of thumb:
Confounding coefficient: captures whether the same patient factors that drove the treatment decision are also driving the outcome. 0 means no confounding (RCT-equivalent); larger values mean stronger confounding. Liu, Yang & Li (2026) recommend values close to zero as the default, absent additional evidence of stronger confounding.
Sensitivity analysis: both are usually uncertain at the design stage. We recommend sliding each over a plausible range and reporting the sample size as an interval, for example, reporting the sample size under overlap coefficients of 0.65, 0.75, and 0.85 to reflect poor, moderate, and good overlap, and confounding coefficients of 0.01, 0.08, and 0.15 to reflect slight, moderate, and severe confounding.
The treatment effect is defined relative to a target population, that is, the population for which the effect is of interest. The choice is primarily based on scientific questions and goals. Computationally, ATO is most efficient when overlap is poor.
The Right Heart Catheterization (RHC) study (Connors et al., 1996, JAMA) evaluated the treatment effect of RHC, an invasive monitoring procedure, in critically ill patients. The dataset contains 5,735 patients. Evidence since has suggested RHC does not improve, and may worsen, clinical outcomes. We illustrate the calculator with three endpoints from this literature:
Suppose researchers use RHC data to design a new study. They expect a treatment proportion of about 0.40, matching the RHC data. Since RHC patients differ systematically from those who aren't catheterized, they also expect poor to moderate overlap: an overlap coefficient of 0.65, with a sensitivity range of 0.55–0.75. Since RHC data is retrospective, no attrition is anticipated. Given the poor to moderate overlap, they compute results for the overall (ATE), overlap (ATO), and treated (ATT) populations. For each outcome, the smallest effect they consider clinically meaningful:
They calculate the sample size using the calculator with the inputs specified above, using a one-sided test at a significance level of 0.05 and 80% power.
| Outcome | ATE | ATO | ATT |
|---|---|---|---|
| Continuous | 920 (743 – 1,522) | 781 (708 – 905) | 1,014 (780 – 1,743) |
| Binary | 3,203 (2,586 – 5,298) | 2,717 (2,463 – 3,148) | 3,530 (2,714 – 6,069) |
| Time-to-event | 7,802 (6,156 – 29,226) | 6,484 (5,905 – 7,374) | 8,322 (6,488 – 14,448) |
Suppose instead they already have the full RHC-sized cohort (5,735 patients) and want to test all three outcomes simultaneously, using a Bonferroni-corrected significance level of 0.05/3 ≈ 0.017 and a one-sided test. They calculate the achieved power for each outcome using the calculator with the same inputs.
| Outcome | ATE | ATO | ATT |
|---|---|---|---|
| Continuous | 100.0% (99.7 – 100.0%) | 100.0% (100.0 – 100.0%) | 100.0% (99.1 – 100.0%) |
| Binary | 88.5% (67.7 – 94.2%) | 93.1% (89.0 – 95.2%) | 85.1% (61.4 – 93.1%) |
| Time-to-event | 50.2% (15.2 – 60.7%) | 58.3% (52.6 – 62.6%) | 47.5% (28.7 – 58.3%) |
Please use the following citations when using this calculator: