Free browser-based study planning

Free Sample Size Calculator

DataStatPro is free for students, teachers, and researchers with a valid email address whose domain contains .edu. A 15-day free trial is available to everyone. Educational Account features and plan limits apply. View free access and trial details.

Share, cite, or teach with this page

Get free practice datasets and teaching exercises

Cite DataStatPro

Use the DataStatPro software citation in your chosen style. Confirm the version matches the software used for your analysis.

Paste into the HTML editor of your course site, or use the page link in an LMS link activity. The card loads no scripts and shares no student data.

Find the minimum number of participants your study needs from its design, expected effect size, significance level, and target power. You can also calculate achieved power or the smallest effect a fixed sample can detect.

  • No download
  • Design-specific inputs
  • Attrition adjustment
  • APA-ready summary

⚡ Quick Answer: How Many Participants Do I Need?

To calculate sample size, enter your confidence level (typically 95%), statistical power (80% or 90%), expected effect size (Cohen's d: small=0.2, medium=0.5, large=0.8), and your study design (t-test, ANOVA, proportion, regression) into the DataStatPro calculator. Common benchmarks: a survey with 95% confidence and ±5% margin of error requires 385 participants; an independent t-test with medium effect and 80% power needs 64 participants per group.

📊 Survey (95% CI, ±5%) Minimum: 385 participants
🔬 t-test (medium effect, 80% power) 64 per group / 128 total
📈 ANOVA (medium effect, 80% power) ~52 per group
💊 Clinical Trial Protocol-specific review required
🎓 Dissertation Ready APA-formatted justification

📌 Direct Answer

What is a sample size calculator? A sample size calculator determines the minimum number of participants needed for a research study to reliably detect a true effect at a specified confidence level and statistical power. You input your significance level (α, typically 0.05), desired power (typically 80%), expected effect size, and study design — the calculator returns the minimum N. For surveys, the standard formula is: n = (Z² × p × (1−p)) / e², which gives 385 participants for 95% confidence and 5% margin of error with an unknown population size.

Sample Size and Power Analysis Overview

DataStatPro provides browser-based sample-size and power tools for planning studies before data collection and examining fixed-design scenarios. Supported modes include a priori sample-size calculation, achieved-power calculation, sensitivity analysis for a minimum detectable effect, criterion analysis, and compromise analysis. Researchers should select the calculator that matches the planned design and estimand.

Required sample size depends on the statistical test, effect-size assumption, alpha level, target power, allocation, number of groups or predictors, design effects, and expected attrition. A single generic sample-size answer is not appropriate for every study.

  • Common survey answer: 385 participants for a large or unknown population at 95% confidence and 5% margin of error.
  • Common t-test answer: about 64 participants per group for a medium effect (Cohen's d = 0.50), 80% power, and alpha = .05.
  • Common reporting answer: report the software, test family, effect size, alpha, target power, tails, required sample size, and any attrition adjustment.

What Power Analysis Can DataStatPro Calculate?

The DataStatPro power calculator covers both planning and diagnostic questions, so researchers can move beyond a single "required N" result.

A priori sample size Calculates required N from alpha, target power, effect size, and study design.
Post hoc achieved power Calculates the power of a planned or completed study from sample size and effect size.
Sensitivity analysis Calculates the minimum detectable effect size for a fixed sample size and target power.
Criterion analysis Estimates the alpha level needed for a planned design and power target.
Compromise analysis Balances alpha and beta error rates when sample size is constrained.
⚠️ Important: ICH E9 describes statistical principles relevant to confirmatory clinical trials, but using this calculator does not by itself establish regulatory compliance. Verify the design assumptions, formula, attrition allowance, and analysis plan with a qualified biostatistician before regulatory, ethics, or grant submission.
🎓 Named Statistical Reviewer
🔬 Design-Specific Inputs
🔓 Browser-Based Calculator
📄 Reporting Guidance
🏥 Independent Review for High-Stakes Use
🖥️ No Download Required

What Can This Sample Size and Power Calculator Do?

DataStatPro's free calculator supports research planning, achieved-power review, sensitivity analysis, and APA-ready reporting across survey, dissertation, clinical, experimental, and observational study designs.

🔬

Clinical Trial Calculator

Plan sample sizes for supported continuous and binary endpoints used in randomized and other medical studies. Regulatory or confirmatory designs require protocol-specific review; calculator output alone does not establish FDA or ICH compliance.

📊

Survey Sample Size Calculator

Calculate the minimum sample for surveys and market research. Handles both unknown (large) populations (n=385 for 95% CI, ±5% MOE) and finite known populations using correction factors.

Complete Power Analysis Tool

Run a priori sample size, post hoc achieved power, sensitivity/minimum detectable effect, criterion alpha, and compromise power analyses. Visualize the relationship between sample size, power, and effect size.

🎯

Free G*Power Alternative

Replace desktop G*Power with a fully web-based alternative. No download, no installation. Supports t-tests, ANOVA, chi-square, regression, proportion tests, and correlation.

📈

Multiple Study Designs

t-tests, one-way/factorial/repeated-measures ANOVA, ANCOVA, MANOVA, proportions, Pearson and partial correlation, multiple/logistic/Poisson regression, chi-square, and nonparametric tests.

🎓

Dissertation & Grant Ready

Generate an APA-style power-analysis statement that you can adapt for a dissertation method section, grant proposal, or ethics application.

Turn your sample-size plan into a complete analysis

Use the calculator first, then choose a plan when you are ready to analyze personal data and export your results.

Analyze My Data Compare Plans

Types of Sample Size Calculators

Select the calculator that matches your research design for an accurate sample size estimate.

📋 Survey — Unknown Population

Most common for surveys and questionnaire studies where the full population size is unknown or very large.

  • Standard: 95% confidence, ±5% MOE → n=385
  • Precise: 95% confidence, ±3% MOE → n=1,067
  • Conservative: use p=0.5 for maximum variance

👥 Two-Group Comparison (t-test)

Compare means between two independent groups (e.g., treatment vs. control, experimental vs. comparison).

  • Uses Cohen's d effect size
  • Medium effect (d=0.5), 80% power → 64/group
  • Adjustable for attrition/dropout

📊 ANOVA (Multiple Groups)

Calculate sample size per group for one-way or factorial ANOVA designs with three or more groups.

  • Uses Cohen's f effect size
  • Accounts for number of groups (k)
  • Suitable for experimental designs

🔗 Correlation & Regression

Determine the sample size required for Pearson/Spearman correlation and simple or multiple regression studies.

  • Green's formula: N ≥ 50 + 8m (predictors)
  • Power-based: f²=0.15 (medium), 80% power
  • Covers 1–10+ predictor variables

💊 Proportion Tests

Sample size for testing one or two proportions — essential for clinical trial response rate comparisons.

  • Uses Cohen's h effect size
  • One-sample and two-sample tests
  • Regulatory use requires expert protocol review

🧪 Pilot Study Calculator

Estimate sample size for preliminary feasibility studies before the main research is conducted.

  • 10% rule of thumb (n = 0.10 × planned N)
  • Variance estimation for later power analysis
  • Resource and timeline optimization

Effect Size Reference Guide for Sample Size Calculation

Effect size determines how many participants you need. Use this table to select the correct effect size metric and benchmark values for your statistical test.

Statistical Test Effect Size Metric Small Medium Large Sample Size (medium, 80% power, α=.05)
Independent t-test Cohen's d 0.20 0.50 0.80 ~64 per group (128 total)
Paired t-test Cohen's d 0.20 0.50 0.80 ~34 participants
One-way ANOVA (3 groups) Cohen's f 0.10 0.25 0.40 ~52 per group (156 total)
Proportion test (2-sample) Cohen's h 0.20 0.50 0.80 ~65 per group (130 total)
Pearson correlation r 0.10 0.30 0.50 ~84 participants
Multiple regression (5 predictors) Cohen's 0.02 0.15 0.35 ~92 participants
Chi-square test Cohen's w 0.10 0.30 0.50 ~133 participants
Survey (unknown population) Margin of error (e) ±1% (n=9,604) ±5% (n=385) ±10% (n=97) 385 (95% CI, ±5% MOE)

All sample sizes assume two-tailed tests, α=0.05, and 80% power unless otherwise noted. Based on Cohen (1988) conventions.

How to Calculate Sample Size: Step-by-Step Guide

Follow these 7 steps to calculate and document your sample size correctly for research proposals, dissertations, and ethics submissions.

1

Define Your Research Question and Primary Outcome

Clearly specify your study objective and primary outcome variable: Is it continuous (e.g., blood pressure), binary (e.g., recovery: yes/no), or categorical? Your outcome type determines which statistical test — and therefore which sample size formula — to use.

2

Set Your Significance Level (Alpha, α)

Choose α = 0.05 (95% confidence level) for most academic research. For clinical trials or regulatory submissions, α = 0.01 may be required. This is your acceptable Type I error rate — the probability of a false positive result.

3

Choose Your Statistical Power (1 − β)

Select a power target that fits the study. An 80% target (β=0.20) is a common planning convention; 90% (β=0.10) may be appropriate when missing a meaningful effect would be especially consequential. Higher power requires a larger sample.

4

Determine Expected Effect Size

Find an appropriate effect size from a systematic review, meta-analysis, or pilot study in your field. When uncertain, use a conservative (smaller) estimate: Cohen's d=0.5 (medium), Cohen's f=0.25 (medium ANOVA), r=0.30 (medium correlation). Never use the observed effect size from your own pilot study without correction for inflation.

5

Enter Values into the DataStatPro Calculator

Open the DataStatPro Sample Size Calculator. Select your study design from the menu. Enter your alpha, power, and effect size. For surveys, enter confidence level and margin of error instead. Click Calculate for instant results.

6

Adjust for Attrition and Non-Response

Add 10–20% to your calculated sample to account for dropout, missing data, or non-response. Formula: Adjusted N = Calculated N ÷ (1 − dropout rate). Example: If calculated N=100 and 20% dropout expected: 100 ÷ 0.80 = 125 participants to enroll.

7

Copy APA-Formatted Justification for Your Proposal

DataStatPro generates a ready-to-use APA 7th edition power analysis statement. Copy it directly into your grant proposal Methods section, IRB/ethics application, or dissertation Chapter 3 — complete with software citation, effect size, power, alpha, and final N.

Sample Size Quick Reference Table

Use this table to find approximate sample sizes for the most common research scenarios — then use the calculator for your exact parameters.

Study Type Effect Size Power 80% Power 90% Alpha
Survey (large population)MOE ±5%385 total664 totalα=.05
Survey (large population)MOE ±3%1,067 total1,843 totalα=.05
Independent t-testSmall (d=0.2)197/group264/groupα=.05, 2-tail
Independent t-testMedium (d=0.5)64/group85/groupα=.05, 2-tail
Independent t-testLarge (d=0.8)26/group34/groupα=.05, 2-tail
ANOVA (3 groups)Medium (f=0.25)52/group70/groupα=.05
Pearson correlationMedium (r=0.30)84 total112 totalα=.05, 2-tail
Multiple regression (5 pred.)Medium (f²=0.15)92 total122 totalα=.05
Proportion test (2-sample)Medium (h=0.50)65/group87/groupα=.05, 2-tail
Chi-square (2×2)Medium (w=0.30)133 total177 totalα=.05

Reference values based on Cohen (1988) conventions. For exact calculations specific to your study parameters, use the DataStatPro Calculator.

DataStatPro vs. Other Sample Size Calculators

How does DataStatPro compare to G*Power, SurveyMonkey, Calculator.net, and manual calculation?

Feature DataStatPro G*Power SurveyMonkey Calculator.net Manual Formula
Cost ✅ Free ✅ Free ⚠️ Paid plan needed ✅ Free ✅ Free
Web-based (no download) ✅ Yes ❌ Desktop install ✅ Yes ✅ Yes N/A
t-test Sample Size ✅ Full support ✅ Full support ❌ Not available ✅ Basic ⚠️ Error-prone
ANOVA Sample Size ✅ Full support ✅ Full support ❌ Not available ❌ Not available ⚠️ Complex
Survey Sample Size ✅ Full support ❌ Not available ✅ Basic ✅ Yes ⚠️ Manual
Clinical-trial planning Supported designs; expert review required ✅ Comprehensive ❌ No ❌ No ❌ Risk of error
APA-Formatted Output ✅ Ready-to-paste ⚠️ Manual write-up ❌ No ❌ No ❌ No
Effect Size Guidance ✅ Built-in guide ⚠️ Requires expertise ❌ No ❌ No ❌ No
Attrition Adjustment ✅ Automatic ❌ Manual calculation ❌ No ❌ No ❌ Manual
Ease of Use ✅ Beginner-friendly ❌ Steep learning curve ✅ Simple (surveys only) ✅ Simple (surveys only) ❌ Expert required

How to Report Sample Size Calculation in APA Format

Use the following APA 7th edition templates for dissertations, grant proposals, and journal article Methods sections.

📝 Template 1: For Experimental Studies (t-test, ANOVA)

"A priori power analysis was conducted using DataStatPro (DSRConsult LLC, 2026) to determine the required sample size. To detect a [small/medium/large] effect size (Cohen's d = [X]) with [80/90]% power at a significance level of α = .05 (two-tailed), a minimum sample size of n = [X] participants per group (N = [total] total) was required. To account for expected attrition, [X]% was added, resulting in a target enrollment of N = [adjusted total]."

📝 Template 2: For Survey Studies (Margin of Error)

"Sample size was determined using a margin-of-error approach. At a 95% confidence level and ±[X]% margin of error, a minimum sample size of n = [X] was required for a population of unknown size. This estimate was calculated using the DataStatPro Sample Size Calculator (DSRConsult LLC, 2026), consistent with standard survey methodology."

📝 Template 3: For Correlation/Regression Studies

"Power analysis was conducted a priori using DataStatPro to determine adequate sample size for the planned multiple regression analysis. Based on a medium effect size ( = .15), α = .05, power = .80, and [k] predictors, a minimum sample of N = [X] participants was required (Cohen, 1988)."

💡 DataStatPro generates this text automatically — copy and paste directly into your Methods section. Replace bracketed placeholders with your calculated values.

Sample Size Calculator — Frequently Asked Questions

How do I calculate sample size for a research study?
You need four inputs: (1) confidence level — typically α=.05 (95% confidence); (2) statistical power — typically 80%; (3) expected effect size — from prior literature (Cohen's d: small=0.2, medium=0.5, large=0.8); (4) study design — t-test, ANOVA, proportion, regression. Enter these into the DataStatPro calculator to get the minimum required sample size instantly, with APA-formatted output ready to paste into your proposal.
What sample size do I need for a survey with unknown population?
For a survey with 95% confidence level and ±5% margin of error with a large or unknown population, you need a minimum of 385 participants. This is calculated using: n = (Z² × p × (1−p)) / e² = (1.96² × 0.5 × 0.5) / 0.05² = 384.16, rounded up to 385. For ±3% margin of error: n ≈ 1,067. For ±1% margin of error: n ≈ 9,604.
What is statistical power and why does it matter?
Statistical power is the probability of detecting an effect of the specified size when it exists. Power = 1 − β, where β is the Type II error rate. A power target of 80% (0.80) is a common convention; some studies use 90% or another justified target. For confirmatory work, document the choice before data collection and align it with the protocol or field-specific guidance.
What effect size should I use for my sample size calculation?
Always base effect size on published literature or meta-analyses in your field — do not guess. Cohen's conventions for t-tests: small (d=0.2), medium (d=0.5), large (d=0.8). For ANOVA: small (f=0.10), medium (f=0.25), large (f=0.40). For correlation: small (r=0.10), medium (r=0.30), large (r=0.50). When evidence is limited, use a small or medium effect size for conservative (larger) sample estimates. Using too large an effect size leads to underpowered studies.
How many participants do I need for a dissertation?
Dissertation sample size depends on your specific test and effect size. Common benchmarks: independent t-test (medium effect, 80% power): 64/group (128 total); ANOVA with 3 groups (medium effect): 52/group (156 total); multiple regression with 5 predictors (medium effect): ~92 total; survey (95% CI, ±5% MOE): 385 total. Add 15-20% for expected attrition. Use the DataStatPro calculator with your specific parameters and cite it in your Methods section.
Is DataStatPro a free alternative to G*Power?
DataStatPro is a browser-based option for supported t-test, ANOVA, proportion, correlation, and regression planning workflows. It is not a complete G*Power replacement, and formulas, test families, defaults, and access conditions should be compared for the intended design before switching.
What is the minimum sample size for a clinical trial?
There is no universal minimum; it is study-specific. Key inputs include the primary endpoint, expected treatment effect, target power, significance level, allocation, test directionality, attrition, and design features. Confirmatory and regulatory studies require a documented justification aligned with the applicable protocol and guidance. Have the calculation and assumptions reviewed by a qualified biostatistician.
How do I adjust sample size for dropouts and attrition?
Use the attrition adjustment formula: Adjusted N = Calculated N ÷ (1 − dropout rate). Examples: 10% dropout with N=100 → enroll 112; 20% dropout with N=100 → enroll 125; 30% dropout with N=100 → enroll 143. Typical attrition rates: 10-15% in cross-sectional studies; 15-25% in longitudinal behavioral studies; 20-35% in clinical trials. DataStatPro applies this adjustment automatically when you enter your expected dropout percentage.
What is the sample size formula for surveys?
For unknown or very large populations: n = (Z² × p × (1−p)) / e² — where Z=1.96 (for 95% confidence), p=0.5 (conservative proportion), e=0.05 (5% margin of error) → n=385. For known finite populations, apply the finite population correction: nadj = n ÷ (1 + (n−1)/N). The DataStatPro calculator handles both formulas automatically when you enter your population size.
What is the difference between a priori and post-hoc power analysis?
A priori power analysis is conducted before data collection to determine the required sample size for a specified power, alpha, and effect size. This is the correct approach for planning research and is required for grant proposals, IRB submissions, and registered reports. Post-hoc power analysis is calculated after a study completes, using the observed effect size and actual sample — it is often criticized because it is mathematically redundant with the p-value and does not provide independent information about study quality.
What sample size do I need for multiple regression?
Several guidelines exist for multiple regression sample size. Green's rule (1991): N ≥ 50 + 8m (for overall model) or N ≥ 104 + m (for individual predictors), where m = number of predictors. Power-based calculation: for f²=0.15 (medium effect), 80% power, α=.05, with 5 predictors → approximately 92 participants. Tabachnick & Fidell: N ≥ 10-20 per predictor as a practical minimum. Use the DataStatPro regression calculator with your specific number of predictors for precise estimates.
How do I report sample size in APA format?
APA 7th edition requires reporting: (1) software used for power analysis, (2) effect size type and value, (3) alpha level, (4) desired power, (5) test directionality (one- or two-tailed), and (6) resulting minimum sample size. Example: "A priori power analysis using DataStatPro indicated that to detect a medium effect (Cohen's d = 0.50) with 80% power at α = .05 (two-tailed), a minimum of 64 participants per group (N = 128 total) was required." DataStatPro generates this statement automatically.