Initializing CalcuStats…

Sample Size Calculator + Statistical Analysis

Calculate sample sizes &
analyze your data
with confidence

Determine your optimal sample size using a complete suite of validated statistical formulas, instantly export everything to Excel, Word, or publication-ready flowcharts, and then analyze your data using powerful descriptive and inferential statistics.

Proportional Allocation

Distribute your sample proportionally across population strata, with full non-response rate adjustment.

Taro Yamane

Classic finite population formula for survey sampling. Fast, reliable, and universally recognized.

%

Cochran's Formula

Precision calculation for population proportions. Supports finite population correction and flexible input formats.

Other Formulas

Single Population Proportion — all in one place.

χ

Descriptive Statistics

Mean, median, mode, variance, standard deviation, range, quartiles, and summary statistics for your data.

Advanced Inferential Tests

t-tests (one-sample, two sample, paired), ANOVA (One-Way, Two-way,ANCOVA, MANOVA), regression (linear, logistic, poisson), chi-square/fisher's exact, Kruskal-Wallis, Mann-Whitney, and others — with estimates, CIs, p-values, and effect size.

5
Sample Size (Formula Types)
Strata Support (Unlimited)
0
Ads / Tracking
100%
Free Forever
19
Inferential Tests

Proportional Allocation

Allocate sample sizes proportionally across population strata. Ensures each group is represented in proportion to its size in the total population.

Parameters
Formula
n_i = (N_i / N) × n
n_i = stratum sample size  ·  N_i = stratum population  ·  N = total population  ·  n = total sample
Major Strata (e.g., Hospitals)
Advanced Mode — Add Sub-strata + Track Returned Questionnaires
Results

Ready to calculate

Fill in the parameters and click Calculate to see the allocation breakdown.

Taro Yamane Formula

Compute the required sample size for finite populations. Simple, widely cited, and assumes a 95% confidence level.

Parameters
Formula
n = N / (1 + N × e²)
N = population size  ·  e = margin of error  ·  Assumes 95% confidence (Z = 1.96)
Decimal e.g. 0.05 = 5%
Allocate across strata?
Strata
Results

Ready to calculate

Enter population size and margin of error, then hit Calculate.

%

Cochran's Formula

Calculates the required sample size based on an estimated population proportion. Supports flexible input formats and finite population correction.

Parameters
Formula
n₀ = Z² × p × (1−p) / e²
Finite correction: n = n₀ / (1 + (n₀−1)/N)  ·  p = proportion  ·  e = margin of error
Accepts: 0.50 (decimal), 50 (percent), or 50%
90%=1.645 · 95%=1.96 · 99%=2.576
For finite population correction
Allocate across strata?
Strata
Results
%

Ready to calculate

Enter proportion, Z-score, and margin of error, then hit Calculate.

Other Statistical Formulas

Additional sample size methods for proportion, mean estimation, case-control, cohort, correlation, and prevalence studies.

Parameters
Formula
Allocate across strata?
Strata
Results

Ready to calculate

Select a formula, enter parameters, then hit Calculate.

Descriptive Statistics Analyzer

Paste your data (with headers), select variables, and get comprehensive statistics — just like any statistical software! Supports both numerical and categorical data.

Data Input
📋 Copy from Excel, Google Sheets, or any spreadsheet. First row must be column headers. Supports any number of columns (10+ columns work great!).
✨ Features: Automatically detects numeric vs categorical variables • Choose which statistics to display • High-quality graphs • Export results to Word/Excel • Download graphs as PNG

Advanced Statistical Tests

Select a test category, then choose a specific test. The configuration panel appears only when you select a test.

📋 Data Input
📋 First row = column headers. Supports numeric and categorical data.

📊 t-Tests

Compare means between groups

📈 ANOVA

Compare multiple group means

📉 Regression

Model relationships

📋 Categorical

Association tests

📊 Non-Parametric Tests

Distribution-free statistical tests

🔬 Multivariate Analysis

Advanced multivariate models

📈 Correlation

Pearson, Spearman, Kendall Tau

Publication-Ready Flowchart Generator

Edit Diagram Nodes
NamePop (N)Sample (n)
Layout & Orientation
60px
Node Label Content
Show % allocation bar
Show non-response note
Show formula in header
Show legend
Colors
Alternating stratum colors
Typography
14px
12px
Node Dimensions
150px
54px
8px
1px
Title & Caption
Full Reset

Resets all colors, layout, typography, dimensions, node labels, and connector settings back to default values from the original calculation.

Live preview — customize with the controls on the left