When to use it
BEFORE collecting data, to plan how many observations you need to detect an effect of a given size with adequate power, or to check the power a planned sample size will actually deliver.
When not to: AFTER collecting data, to compute 'observed' or 'post-hoc' power from the effect you actually found: that number is a deterministic function of your p-value and adds no new information. Also do not use it to reverse-engineer an effect size from the sample size you can afford; the effect size must come from prior knowledge, a pilot study, or a considered judgment about the smallest effect worth detecting.
Step by step
Open it from the menu
Click Analyze in the menu bar; under Power & Corrections choose Power & Sample Size.
Fill in the form
Fill in Size of difference to detect (optional), How many people or items (optional), Chance of detecting it (optional), How strict to be (optional).
Check the options
The options start at their defaults: Test you will use, What to work out, What you expect, Group size ratio, Number of groups (ANOVA), Number of categories (chi-square). Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| Size of difference to detect Effect Size optional | A value you type or choose on the form. Small, medium, large: d (t-tests) 0.2, 0.5, 0.8; f (ANOVA) 0.10, 0.25, 0.40; h (proportions) 0.2, 0.5, 0.8; w (chi-square) 0.1, 0.3, 0.5. Not sure? 0.5 is a common start for a t-test; better, use the smallest difference that would matter to you. |
|---|---|
| How many people or items Sample Size optional | A value you type or choose on the form. Per group for two-group tests; otherwise the total, or the number of pairs. It is computed when you solve for it. |
| Chance of detecting it Power optional | A value you type or choose on the form. The chance the study finds the difference if it really is this size: 0.80 means 80%. Not sure? Keep 0.80. It is the usual minimum; 0.90 is stricter. |
| How strict to be Alpha optional | A value you type or choose on the form. The cut-off for the p-value the study will use. Not sure? Keep 0.05. It is the usual convention in most fields. |
| Test you will use Test | The analysis the study plans: two-sample, one-sample or paired t, ANOVA, two proportions, or chi-square goodness of fit. Not sure? Keep Two-sample t-test. It fits a comparison of two separate groups, the most common plan. |
| What to work out Solve for | Which of the four boxes above is computed from the other three. Usually the sample size. Not sure? Keep Sample size. It answers the usual question: how many do I need? |
| What you expect Alternative | two-sided: a difference in either direction. larger (greater on the test's form) or smaller (less): one direction, decided before the study. Not sure? Keep two-sided. It is the usual choice because it does not assume a direction. |
| Group size ratio Allocation ratio | For two-group tests: the size of group 2 divided by group 1. 1 means equal groups. Not sure? Keep 1. Equal groups need the fewest people in total. |
| Number of groups (ANOVA) | For ANOVA only: how many groups the study will compare, such as 3. Keep 3 unless your study has a different number of groups. |
| Number of categories (chi-square) Number of categories (χ² GOF) | For chi-square goodness of fit only: how many categories the study will compare, such as 3 islands. Keep 4 unless your study has a different number of categories. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Normality (of residuals, not of the raw data)
If it does not hold: The t- and F-based power formulas assume approximately normal data (or a large enough n for the CLT); strong skew or outliers at small planned n make the true achieved power differ from the reported nominal value.
How to check: Not checked by KernelStats: there is no data to check yet at the planning stage; the card states the assumption directly for t-test and ANOVA designs and suggests a nonparametric design as the fallback.
- Homogeneity of variance (homoscedasticity)
If it does not hold: Pooled two-sample-t and one-way-ANOVA power formulas assume equal group variances; with unequal variances the true required sample size differs from a Welch-based design's requirement.
How to check: Not checked by KernelStats: stated directly for two-sample-t and ANOVA designs; switch to a Welch-based design assumption when variances are expected to differ.
- Independence of observations
If it does not hold: Every design here assumes independent observations (with pairing modeled explicitly only in the paired-design option); clustered or repeated measurements need a design that accounts for the correlation, which changes the effective sample size required.
How to check: Not checked by KernelStats: stated directly on every card regardless of test type.
- Adequate expected counts (chi-square)
If it does not hold: The two-proportions and chi-square-goodness-of-fit power formulas use large-sample normal / chi-square approximations that become unreliable when expected counts per cell are small (a common rule of thumb is at least 5).
How to check: Not checked by KernelStats: stated directly only for two-proportions and chi-square-goodness-of-fit designs.
A worked example
Planning a two-sample t-test to detect a medium effect (Cohen's d = 0.5) at alpha = .05 with 80% power, solving for sample size.
Result: n = 64 per group (128 total), achieved power = 80.2% at the rounded n.
Recruiting 64 participants per group gives at least the requested 80% chance of detecting a true medium-sized difference between the two groups, assuming the eventual data satisfy the t-test's usual assumptions (approximate normality, similar variances). If a pilot study suggests the variances differ substantially, this nominal power should be treated as approximate.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- How many participants per group do I need to detect a medium effect (Cohen's d = 0.5) with 80% power at α = .05?
- Explain the power and sample size calculator in plain words.
- What does statistical power mean?
Last reviewed November 16, 2026.
