3tej home
← Math

What is Confidence Interval?

A Confidence Interval computes confidence interval from the inputs you provide. It applies the standard formula to the values you enter and returns the result instantly, without sending any data to a server. Free, in-browser, no signup. The tool runs.

Confidence Interval

Sample mean ± z × SE. 95% = ±1.96 SE.

Inputs

Confidence Interval

-

Breakdown

Standard error
-
Margin of error
-
Lower bound
-
Upper bound
-

About

Confidence interval estimates a true population parameter from a sample. 95% CI: 'if we repeated this study many times, 95% of the intervals would contain the true mean.' Larger n = narrower CI. Used in polls, A/B tests, scientific studies.

Formula

CI = mean ± z × (SD / √n); z=1.96 for 95%

Frequently asked questions

How accurate is the Confidence Interval?

It applies the standard formula. Accuracy is limited only by your input precision. For decisions with material consequences (taxes, medical, legal, structural), use the result as a starting point and verify with a qualified professional in the relevant field.

Is the Confidence Interval free to use?

Yes. 100% free, no signup, no payment, no API key. The site is funded by display ads around the tool but not inside the calculation flow.

Are my inputs saved anywhere?

No. All inputs stay in your browser tab. Closing the tab discards them. The site uses Google Analytics for traffic measurement (anonymized) but the analytics never see what you type into the form.

Can I use the Confidence Interval on my phone?

Yes. The tool is responsive and tested on iOS Safari, Android Chrome, and major desktop browsers. Touch targets meet Apple's 44pt and Google's 48dp minimum.

Does the Confidence Interval work offline?

Yes. Once the page has loaded, it works without internet. The calculation runs in JavaScript on your device.

How do I report a bug or suggest improvement to the Confidence Interval?

Email hi@3tej.com with the URL of this page and a description of what you saw vs expected. We typically respond within 72 hours.

Can I share results from the Confidence Interval?

Take a screenshot or copy the output. The page doesn't generate shareable URLs for specific calculations - inputs stay in your browser only.

Why are the results different from another confidence interval tool?

Most likely: different formula assumptions, different default values, different rounding rules, or different applicable rates. Check the methodology if both tools document it. Both can be valid for different scenarios.

Is correlation the same as causation?

No. Correlation = two things move together. Causation = one causes the other. Confounders, reverse causation, and coincidence can all create correlation without causation. To establish causation: randomized controlled trials, natural experiments, or instrumental variables.

What's a good correlation coefficient?

Field-dependent. In physics, r = 0.95 is normal; in social science, r = 0.4 is strong. Squared r (R^2) tells you the % of variance explained: r = 0.7 means ~49% of variance is shared.

Should I report mean or median?

If data is symmetric (no skew, no outliers): mean. If skewed (income, house prices, response times): median. Always report both for unfamiliar audiences plus a measure of spread (σ for symmetric, IQR for skewed).

What sample size do I need?

Depends on effect size, variability, and desired power. For detecting a medium effect (Cohen's d = 0.5) with 80% power at α = 0.05: ~64 per group for a t-test. Use a power calculator before running the study.

Why do I get different results from t-test vs Mann-Whitney?

t-test assumes normal data and equal variances. Mann-Whitney (Wilcoxon) is non-parametric - it ranks values and doesn't assume distribution. For non-normal data, Mann-Whitney is more robust but slightly less powerful.

Descriptive statistics quick reference

MeasureFormulaBest when
Mean (arithmetic average)sum / nSymmetric data, no outliers
MedianMiddle value when sortedSkewed data (income, house prices)
ModeMost frequent valueCategorical data
Rangemax - minQuick spread; sensitive to outliers
VarianceΣ(xi - mean)² / nSpread; in squared units
Standard deviation (σ)√VarianceSpread in original units
IQR (interquartile range)Q3 - Q1Robust spread, ignores outliers

The normal distribution

The bell curve. Most natural measurements (heights, IQ, exam scores) approximate normal. Key properties:

  • ~68% of values fall within 1 σ of mean
  • ~95% within 2 σ
  • ~99.7% within 3 σ

A z-score expresses how many σ a value is from the mean: z = (x - mean) / σ. z = 1.96 corresponds to the 97.5 percentile (95% confidence interval bound).

Hypothesis testing decoder

TestUse whenTells you
t-test (one sample)Compare one mean to a known valueIs sample mean different from this number?
t-test (independent)Compare means of two groupsAre these two groups different?
t-test (paired)Compare same subjects before/afterDid treatment change the outcome?
ANOVACompare means of 3+ groupsIs at least one group different?
Chi-squareCategorical data (e.g., 2x2 tables)Is there association between categories?
Pearson correlationLinear relationship between 2 continuous variablesStrength and direction (-1 to +1)
Linear regressionPredict one variable from anotherSlope, intercept, R^2 fit

P-value interpretation

The p-value is the probability of seeing data this extreme (or more) IF the null hypothesis were true. Common misuses:

  • p < 0.05 does NOT mean 'effect is real'. With many tests, ~5% will be false positives.
  • p > 0.05 does NOT mean 'no effect'. Could be underpowered.
  • Effect size matters more than p. A statistically significant 0.1% difference is rarely practically important.

Sample size for confidence intervals

For estimating a proportion within ±3 percentage points (e.g., a poll):

  • 95% confidence: n ≈ 1,067
  • 99% confidence: n ≈ 1,843
  • For ±5%: n ≈ 384 (95%) or 664 (99%)

This is why political polls cluster around n=1,000.

The formula explained

This calculator uses the following formula:

CI = mean ± z × (SD / √n); z=1.96 for 95%

The reason this formula works is rooted in the underlying physics, finance, or biology of the problem. Behind every calculator is a published, peer-reviewed equation or a widely accepted convention. We do not invent formulas; we apply standard ones from textbooks, government tables, professional bodies, and academic literature.

If you are curious about the math, the simplest way to verify is to plug in two known numbers and compare against a known result. The calculator should match published examples to within rounding precision.