Mediation Power (Monte-Carlo)
VerifiedMediation (legacy hub)
Run this test straight away on a free built-in teaching dataset — no data of your own needed — or bring your own. Either opens the guided workspace: variable setup, assumption diagnostics, results with effect sizes and confidence intervals, figures, and APA-ready reporting.
Loading teaching datasets…
Or use your own dataset
Loading your datasets…
Works out the sample size a mediation study needs to detect its indirect effect a·b — by Monte-Carlo simulation, not a formula.
Mediation power analysis estimates the power to detect an indirect effect a·b at a range of sample sizes. Because the product a·b is not normally distributed, there is no closed-form N; instead it simulates many datasets under the assumed a and b paths (Fritz & MacKinnon 2007) and reports the proportion that reach significance at each n — so you can read off the sample size that hits your target power.
Worked example
How many participants do I need to detect a medium effect?
An a priori power analysis for an independent t-test, medium effect (d = 0.5), α = .05, power = .80.
80 participants per group (160 total) are needed to detect d = 0.5 with 80% power.
An a priori power analysis indicated 80 participants per group are required to detect a medium effect (d = 0.5) at 80% power.
When to use it
- Planning a mediation studyYou have plausible a and b path values (from a pilot or the literature) and need the sample size to detect the indirect effect.
- Justifying n in a proposal or ethics applicationA Monte-Carlo power curve is the accepted justification for mediation, where G*Power's t/F routines do not apply.
- Comparing inference methodsSee how required n changes across Sobel, joint-significance and bootstrap tests of a·b.
When NOT to — use instead
- Powering a simple mean comparisonFor a t-test, ANOVA or correlation, use a closed-form power tool (e.g. G*Power) — it is exact and quicker. This page powers a mediation's indirect effect.
- You have no a and b to assumeMonte-Carlo power needs plausible path values; without a pilot or prior estimates the curve rests on guesses.
Hypotheses
Parameter tested: empirical power for the indirect effect a·b at each candidate n, given the a and b paths, α, and the significance method (Sobel, joint-significance, or bootstrap)
Assumptions (and what to do if they fail)
Check: Base them on a pilot, a meta-analysis or a defensible minimum effect of interest.
If violated: Optimistic paths understate the required n; the real study ends up underpowered.
Check: Power under Sobel differs from power under bootstrap — use the one you will actually run.
If violated: The n you plan for is calibrated to a test you won't use; Sobel-based n is typically too small for a bootstrap analysis.
Check: More simulated datasets per n give a smoother, more reliable power estimate.
If violated: The power curve is jagged and the chosen n may sit on simulation noise.
Ready to run a Mediation Power (Monte-Carlo) on your own data?
Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.
Run this test →