Bootstrap CI Calculator
Bootstrapping resamples your data thousands of times to build a confidence interval for any statistic, even ones with no closed-form formula (medians, ratios, custom functions). Paste your numbers, pick a statistic, and get percentile, basic, or BCa intervals across all three methods.
New to bootstrapping? Read the 4-min primer ▾
What the bootstrap does. Resample your data with replacement many times, recompute the statistic on each resample, and use the spread of those values as a stand-in for the sampling distribution. The bootstrap turns "I have one sample" into "here is what the statistic would have looked like across many samples", without assuming a parametric form.
Three ways to get the CI from the resamples. The percentile CI sorts the bootstrap distribution and takes the α/2 and 1−α/2 quantiles. The basic CI (a.k.a. reverse percentile) reflects the distribution about the original estimate. The BCa method adjusts for bias and skewness using a jackknife-derived acceleration; it is the methodologically best-practice default for moderately skewed statistics.
Bias and SE. Bias is the mean of the bootstrap distribution minus the original statistic; if it is large relative to the SE the parametric CI is suspect. The bootstrap SE is the SD of the bootstrap distribution and is a drop-in replacement for the analytic standard error.
When the bootstrap struggles. Very small n (under 10), heavy-tailed data where the variance is infinite, or statistics that depend on a single extreme order value (like the maximum). For those cases, increase B, use BCa rather than percentile, and treat the CI as approximate.
Try a real-world example to load.
Recap
We resampled your data thousands of times to estimate how much your statistic could plausibly vary across studies.
Read more The bootstrap math, end to end
Caveats When the bootstrap is the wrong tool
- If you have…
- Use instead
- n < 10 with no model
- The bootstrap needs enough information in the sample to mimic the population. With n < 10 the resamples are too repetitive. Try a fully parametric model with a likelihood-based CI.
- A statistic depending only on the maximum or minimum
- Order-statistic-driven statistics have non-smooth sampling distributions; the bootstrap can be inconsistent. Use the parametric extreme-value asymptotics or subsampling.
- Time-series or autocorrelated data
- The independent-resample assumption is broken. Use a block bootstrap (moving / circular / stationary) sized to the autocorrelation range.
- A regression coefficient
- The bootstrap CI is fine, but for clean inference use the model-based CI from lm output interpreter or its glm sibling. For non-Gaussian residuals, residual or wild bootstrap is preferred.
- A simple mean of mildly normal data
- The parametric t-CI is exact under normality, faster, and gives the same answer to 2 decimals. Use the Confidence Interval Calculator.
- Heavy-tailed data with infinite variance (Cauchy-like)
- The bootstrap will systematically underestimate the spread. Use a truncated-mean estimator or shift to a robust scale (MAD, Qₙ).
- Statistical tests in R – the parametric companion: t-tests, F-tests, and where bootstrap CIs slot in.
- Confidence intervals in R – closed-form CIs for the mean, proportion, and variance.
- Confidence Interval Calculator – the parametric counterpart to this tool.
- t-Test Calculator – for the parametric mean-difference workflow.
- Effect-size converter – turn any of d, r, OR, CLES, NNT into the others.
Math: seeded Mulberry32 RNG; percentile and basic CIs from the sorted resample distribution; BCa via the Efron (1987) bias correction plus jackknife acceleration, α-adjusted with Wichura AS 241 inverse normal.