Confidence Interval Calculator

Confidence Interval Calculator

Calculate margin of error E = Z * (σ / √n) and lower/upper bounds for population mean confidence intervals.

95% Confidence Interval
Lower Bound
95.8422
Margin of Error (± E)
4.1578
Upper Bound
104.1578

At a Glance

Category
Statistics
Best For
Students and researchers estimating a population mean
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Multiplies the standard error by the z critical value and adds and subtracts it from the sample mean.

Who Should Use It

Statistics students, researchers and analysts.

When to Use It

Reporting an estimate with its uncertainty.

Why It Is Useful

A mean alone hides uncertainty; the interval shows the plausible range.

Key Features & Capabilities

Margin of error

The half-width of the interval.

Lower and upper bounds

The interval limits.

Three confidence levels

Choose 90%, 95% or 99% confidence.

How to Use This Tool

1

Enter the sample mean

Type the average of your sample. Tip: Use the same units as the standard deviation.

2

Enter the standard deviation and n

Type the standard deviation and the sample size. Tip: n must be above zero.

3

Choose the confidence level

Pick 90%, 95% or 99%. Tip: Higher confidence gives a wider interval.

4

Read the interval

The lower and upper bounds appear. Tip: Report them with the confidence level.

Worked Real-World Example

A sample of 50

A sample of 50 has a mean of 100 and a standard deviation of 15.

Sample Inputs
Sample mean100
Standard deviation15
Sample size (n)50
Confidence level95 %
95% confidence interval95.8422 to 104.1578 (margin of error 4.1578)
Calculation Breakdown
Standard error: 15 ÷ √50 = 2.1213
Margin of error (95%): 1.96 × 2.1213 = 4.1578
95% interval: 100 ± 4.1578 = 95.8422 to 104.1578
99% interval: 100 ± 2.576 × 2.1213 = 94.5355 to 105.4645
We are 95% confident the true mean lies between about 95.8 and 104.2. Going to 99% widens the interval.

How It Works (Math & Calculation Logic)

Margin of error = z × s ÷ √n with z = 1.645 (90%), 1.96 (95%) or 2.576 (99%). Interval = mean ± margin of error. The tool uses z critical values, which are accurate for large samples; for small samples a t critical value is more appropriate.

Formula / AlgorithmCI = x̄ ± z × s ÷ √n
Variable & Logic Definitions
x̄Sample mean - Average of the sample
sStandard deviation - Of the sample
nSample size - Number of observations (count)
zCritical value - 1.645, 1.96 or 2.576

How to Interpret Your Results

Typical Benchmarks

Wider intervals mean more uncertainty or higher confidence.

Evaluating Your Output

Quadrupling the sample size halves the margin of error.

Recommended Next Action

Use a t interval for small samples.

Frequently Asked Questions

What is a confidence interval?
A range of plausible values for a population parameter.
What does 95% confidence mean?
If you repeated the sampling many times, about 95% of such intervals would contain the true mean.
How do I reduce the margin of error?
Increase the sample size or lower the confidence level.
Should I use z or t?
Use t for small samples with an estimated standard deviation.
What is the margin of error?
The amount added and subtracted from the mean.

Complementary QuickForma Utilities