Sample Mean & Proportion Calculator

Calculate sample mean or proportion with standard error, confidence intervals, hypothesis testing, and sample size planning. Includes Wilson interval for proportions.

Sample Mean
78.5000
x̄ = 78.5000
Standard Error
2.245662
s / √n = 12.3 / √30
Margin of Error
4.4024
z* × SE = 1.960 × 2.2457
95% CI
(74.0976, 82.9024)
x̄ ± 4.4024
Z-Statistic
1.5586
Test against H₀: μ = 75
P-Value (two-tailed)
0.119101
❌ Fail to reject H₀

Confidence Interval

78.500

Sample Size for Desired Margin

Target MarginRequired nCurrent nMultiplier
±1582.0030.0019.4\u00D7
±2146.0030.004.9\u00D7
±524.0030.000.8\u00D7
±106.0030.000.2\u00D7
±153.0030.000.1\u00D7

Confidence Level Comparison

Confidencez*MarginLowerUpperWidth
80%1.282\u00B12.878375.621781.37835.7567
90%1.645\u00B13.694674.805482.19467.3892
95%1.960\u00B14.402474.097682.90248.8048
99%2.576\u00B15.785472.714684.285411.5707
99.9%3.291\u00B17.389971.110185.889914.7799
Planning notes, formulas, and examples

About the Sample Mean & Proportion Calculator

The Sample Mean & Proportion Calculator performs one-sample inference for means and proportions. Enter sample statistics and it returns point estimates, standard errors, confidence intervals, hypothesis tests, and sample-size guidance.

It covers both continuous data, where the parameter of interest is a mean, and binary data, where the parameter is a proportion. The calculator also includes the Wilson score interval for proportions, which is usually more reliable than the plain Wald interval for small samples or extreme rates.

That makes it useful for survey analysis, quality control, experiment summaries, and any quick inference problem where you want the estimate, its uncertainty, and a simple significance check in one place.

When This Page Helps

Sample-based inference is easiest to read when the estimate, its uncertainty, and the null-hypothesis check are shown together. This calculator keeps those pieces in one view so you can compare means and proportions without switching between separate formulas or tools.

How to Use the Inputs

  1. Choose whether you're analyzing a mean or proportion.
  2. For means: enter the sample mean, standard deviation, and sample size.
  3. For proportions: enter the number of successes and sample size.
  4. Enter a hypothesized value (μ₀ or p₀) for hypothesis testing.
  5. Set the confidence level (default 95%).
  6. Use presets for common scenarios like exam scores or defect rates.
  7. Review the output cards, CI visualization, and planning tables.
Formula used
Mean: SE = s/√n, CI = x̄ ± z*×SE, z = (x̄−μ₀)/SE. Proportion: SE = √[p̂(1−p̂)/n], CI = p̂ ± z*×SE, z = (p̂−p₀)/√[p₀(1−p₀)/n].

Example Calculation

Result: x̄ = 78.5, SE = 2.246, 95% CI = (74.10, 82.90), z = 1.559, p = 0.119

SE = 12.3/√30 = 2.246. Margin = 1.96 × 2.246 = 4.402. CI: 78.5 ± 4.40 = (74.10, 82.90). z-test against μ₀=75: z = (78.5-75)/2.246 = 1.559, p = 0.119 (not significant).

Tips & Best Practices

  • For proportions, use Wilson interval when n < 30 or p̂ is near 0 or 1.
  • A non-significant p-value doesn't prove H₀ — it just means insufficient evidence to reject it.
  • To halve the margin of error, quadruple your sample size.
  • The sample size planning table helps you design your next study with targeted precision.
  • Report confidence intervals alongside p-values — CIs convey both significance and effect size.
  • For small samples (n < 30), consider using a t-test instead of a z-test for means.

The Central Limit Theorem

The Central Limit Theorem (CLT) is the foundation of inferential statistics. It states that the sampling distribution of the mean approaches a normal distribution as sample size increases, regardless of the population distribution. This justifies using the z-distribution for confidence intervals and hypothesis tests when n is large enough.

Sample Size Determination

Determining the right sample size before data collection prevents two problems: too few observations (underpowered, wide CIs) and too many (wasteful resources). The formulas balance four factors: desired confidence level, acceptable margin of error, estimated variability, and for proportions, the expected proportion value.

Practical vs Statistical Significance

A statistically significant result (small p-value) may not be practically important. A large sample can detect tiny, meaningless differences. Always consider effect size alongside significance. The confidence interval helps — it shows both whether the effect is significant (excludes null value) and how large the effect could be.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use sample mean for continuous measurements (height, weight, scores). Use sample proportion for binary outcomes (pass/fail, yes/no, defective/good). The proportion is just the fraction of successes.