Free guide · Sample size · Repeated measurementsUpdated October 17, 2026

Repeated measures sample size calculator with correlation

Measuring each participant several times does not give several times the information, because the measurements are correlated. Apply the design effect for m measurements and the baseline-adjustment factor to your single-measurement sample size, and see exactly what you are assuming.

  • Design effect (1 + (m − 1)ρ) / m
  • ANCOVA baseline factor 1 − ρ²
  • Compound-symmetry assumption stated

Free sandbox · No credit card · 21 CFR Part 11 aligned

Demo: difference 5, SD 12, ρ = 0.5, 80% power: participants per group

One post measure

91

Baseline + mean of 3

38

Saving

58%

One post-baseline measure91/100

91 per group

Mean of 3 measures61/100

61 per group

One measure, baseline-adjusted68/100

68 per group

Mean of 3, baseline-adjusted38/100

38 per group

Normal-formula values. Correlation drives all of the saving; the assumption must be sourced.

What this page calculates

  • If each participant contributes the mean of m measurements and the correlation between any two of them is ρ (compound symmetry), the variance of that mean is σ² (1 + (m − 1)ρ) / m. The sample size is the single-measurement n multiplied by (1 + (m − 1)ρ) / m.
  • Adjusting for a single baseline value in an ANCOVA multiplies the sample size by (1 − ρ²) when the outcome is one follow-up measurement. With a mean of m follow-ups and a baseline the factor becomes (1 + (m − 1)ρ) / m − ρ².
  • Worked example: difference 5, SD 12, 80% power, two-sided alpha 0.05 needs 91 per group with one measurement. With ρ = 0.5 and the mean of 3 measurements it needs 61; with baseline adjustment as well, 38.
  • Extra measurements help less and less. With ρ = 0.5 the factor can never fall below 0.5, however many times you measure, and with ρ = 0.7 the floor is 0.7.
  • The factors assume equal correlation, a constant treatment effect, complete data and a pre-specified analysis of the mean or a baseline-adjusted model. A trial analysed with an MMRM needs its own calculation, and a statistician should confirm the design.

The calculation

The design effect, step by step

Start from the single-measurement sample size for two parallel groups: n₁ = 2σ² (z₁₋α/2 + z₁₋β)² / δ², the formula on the two-means sample size calculator. For δ = 5, σ = 12, two-sided alpha 0.05 and 80% power, n₁ = 2 × 144 × 7.85 / 25 = 90.4, so 91 per group by the normal formula. Now suppose every participant is measured m times after randomisation and the primary analysis uses each participant’s mean (or, equivalently for this purpose, an average of the repeated measures). Under compound symmetry every measurement has variance σ² and every pair has correlation ρ. The variance of the mean of m measurements is then σ² (1 + (m − 1)ρ) / m. The sample size scales with variance, so n = n₁ × (1 + (m − 1)ρ) / m.

The limits are instructive. If ρ = 0, the measurements are independent and the factor is 1/m: three measurements need a third of the participants. If ρ = 1, every repeat is a copy of the first and the factor is 1: measuring again adds nothing. Real clinical data sit between the two. With ρ = 0.5 and m = 3 the factor is (1 + 2 × 0.5) / 3 = 0.667, so n = 90.4 × 0.667 = 60.3, which rounds up to 61 per group. A simulation of the two-sample t-test at 61 per group gives 79.5% power and at 62 gives 80.2%, so plan for 62 to allow for estimating the SD.

Baseline adjustment works through the correlation between the baseline measurement and the outcome. Fitting an ANCOVA with the baseline as a covariate reduces the residual variance of a single follow-up measurement to σ² (1 − ρ²) (Borm et al., J Clin Epidemiol 2007), so n = n₁ × (1 − ρ²). With ρ = 0.5 that is 90.4 × 0.75 = 67.8, so 68 per group. When the outcome is the mean of m follow-ups and a baseline is in the model, the variance is the variance of the mean minus the part explained by the baseline: σ² [ (1 + (m − 1)ρ) / m − ρ² ] (Frison and Pocock, Stat Med 1992). For m = 3 and ρ = 0.5 that is 0.667 − 0.25 = 0.417, so n = 90.4 × 0.417 = 37.7, or 38 per group. Both formulas were checked here against matrix algebra and a 200,000-run simulation of the variances.

Sensitivity

Participants per group by correlation and number of follow-up measurements, no baseline

Difference 5, SD 12, two-sided alpha 0.05, 80% power, normal formula, rounded up. One measurement needs 91 per group.

Correlation ρm = 2m = 3m = 4m = 6
0.359494338
0.568615753
0.777737168

The more correlated the repeats, the less each extra one adds. At ρ = 0.7, going from 2 to 6 measurements saves only 9 participants per group.

With a baseline

The same trial with a baseline measurement in an ANCOVA

Same inputs. The first column is one follow-up measurement adjusted for baseline; the others are the mean of m follow-ups adjusted for baseline.

Correlation ρm = 1m = 2m = 3m = 4m = 6
0.38351413530
0.56846383431
0.74733292624

Per group. Baseline adjustment helps most when the correlation is high; with ρ = 0.7 and a baseline, a single follow-up needs 47 per group instead of 91.

Assumptions

What you are assuming when you use these factors

These are planning approximations, and the assumptions matter more than the arithmetic. The first is compound symmetry: one correlation ρ for every pair of measurements, regardless of how far apart in time they are. In practice correlation usually decays with the gap between visits. Take adjacent-visit ρ = 0.5 that decays as an autoregressive AR(1) process. With four measurements the variance factor for the mean is 0.516, lower than the 0.625 that compound symmetry predicts, but the correlation between distant visits is then much lower than 0.5. Neither number is wrong; the point is that ρ must be the average correlation among the measurements you will actually use, taken from data on the same endpoint with a similar visit spacing, not a single guessed value.

The second is a constant treatment effect across the m time points, which is what makes the mean a sensible summary. If the effect grows over time, the mean understates the effect at the last visit and the trial may be over- or underpowered for a final-visit claim. The third is complete data: dropout and missed visits remove information, and the factors above give evaluable participants, so divide by (1 − dropout) to get enrolment using the dropout-adjusted sample size calculator. The fourth is that the SD σ is the SD of a single measurement at the scale of the outcome (and, with baseline adjustment, that baseline and outcome are measured the same way).

Finally, the primary analysis must match the calculation. If the SAP specifies a mixed model for repeated measures (MMRM) with an unstructured covariance and a test at a particular visit, the power comes from that model, not from the mean-of-m shortcut; the factors here are a starting point, and the final number should come from a published MMRM formula or a simulation done by the trial statistician. If the analysis is an ANCOVA of the mean of the repeats, the factors apply directly. Group-randomised designs need a different design effect again, covered on the cluster-randomised sample size calculator.

Build the visit schedule your calculation assumes

Build the eCRFs, visit schedule and randomization in the free sandbox with every feature. No credit card. You pay only when you go live.

Build your study free

From the number to the protocol

Writing it down, and building repeated visits in Capture

A justification that names the assumptions reads: “Assuming a common SD of 12 mmHg for a single measurement, a correlation of 0.5 among the three post-baseline measurements and between each of them and baseline, and analysis by ANCOVA of the mean of the three measurements with baseline as a covariate, 38 evaluable participants per group provide 80% power to detect a difference of 5 mmHg at the two-sided 5% level. Allowing for 10% dropout, 43 per group will be enrolled.” (38 / 0.9 = 42.2, rounded up to 43.) The correlation should come with a source, such as a previous trial of the same endpoint, and the protocol should state that the SD and ρ will be reviewed at the blinded interim if one is planned.

The number then drives the build. In Capture the repeated measurements are the same eCRF form scheduled at several visits, each with a visit window so the spacing the correlation assumes is respected. The baseline and follow-up values are numeric fields with units and range edit checks, calculated fields can derive the mean of the visits for review during entry, and the monitoring dashboard shows how many participants have reached each visit. Data export as CSV or Excel with a data dictionary for the statistician, and the field-level audit trail records old value, new value, user, time and reason for each change. The power analysis calculator shows what a fixed enrolment can detect, and the crossover sample size calculator is the within-participant design where each person receives both treatments. See the sample size calculation glossary entry for the basic terms.

Before you lock it

Repeated measures sample size checklist

Primary analysis matches the calculation

Mean of m with or without baseline in ANCOVA, or an MMRM with its own power calculation.

Correlation is sourced

From the same endpoint and similar visit spacing; state compound symmetry or the structure used.

SD is for one measurement

At the scale of the outcome, from a comparable population.

Treatment effect is plausibly constant

Or the key visit is named as the primary time point.

Sensitivity checked

Re-run with ρ 0.2 lower and an SD 20% higher.

Dropout converted to enrolment

Evaluable / (1 − dropout), rounded up.

Visit windows defined

So the spacing behind the correlation is what the study delivers.

FAQ

Questions teams ask before they switch

Something not covered here? Ask us directly.

What is the repeated measures sample size formula?

For the mean of m measurements with equal correlation ρ, multiply the single-measurement sample size by (1 + (m − 1)ρ) / m. With a baseline covariate in an ANCOVA, multiply by (1 + (m − 1)ρ) / m − ρ². For one follow-up and a baseline the second factor reduces to 1 − ρ².

Why do more measurements not reduce the sample size proportionally?

Because measurements on the same person are correlated. With ρ = 0.5 the factor tends to 0.5 as m grows, so no number of repeats can halve the sample size more than once. With ρ = 0.7 the floor is 0.7. Repeats mainly reduce measurement noise, not between-person variation.

How do I choose ρ?

Use the observed average correlation among the same measurements in a comparable population, with similar visit spacing. A pilot or previous trial is the best source. If unsure, use a lower value: it gives a larger, safer sample size for the repeated-measures factor, and a lower baseline correlation gives a larger sample size for the ANCOVA factor.

Does this replace an MMRM power calculation?

No. It is a planning approximation for the analysis of a mean (or a baseline-adjusted mean). If the SAP specifies an MMRM with an unstructured covariance, confirm the sample size with a published MMRM formula or a simulation by the trial statistician.

Do I still adjust for baseline if randomisation balances it?

Yes, if the SAP says so. Randomisation makes baseline balanced on average, but adjusting for a prognostic baseline reduces the variance of the treatment estimate by the factor above. It only counts in the sample size if the adjusted analysis is the pre-specified primary analysis.

How do I allow for missing visits?

The factors assume complete data. Convert the evaluable number into enrolment by dividing by (1 − expected dropout). If many participants will have partial data, a model-based analysis such as MMRM uses them, and the sample size should be confirmed by simulation.

Can I use this for a binary or time-to-event outcome?

No. The factors are for a continuous outcome with equal-variance, equally correlated measurements. Repeated binary outcomes need methods such as generalised estimating equations, and time-to-event outcomes use the survival sample size calculator.

Is this calculation validated?

It is a planning aid. The variance factors were checked against matrix algebra and simulation, and the worked examples against a simulated two-sample t-test. A statistician should confirm the design, the correlation and the final sample size before a protocol is submitted.

Plan the number, then schedule the visits

Build the eCRFs, visit schedule and randomization in the free sandbox with every feature. No credit card. You pay only when you go live.

Build your study free