Skip to main content

Confidence intervals & samples

Confidence Interval Calculator

Calculate confidence intervals and margin of error for the population mean. Z-value lookup, sample mean interval formula.

Sample data & confidence

Population (σ) or sample (s) standard deviation.

Result
Plus/Minus22.8000 ± 0.5292
Percentage margin22.8000 ± 2.32%
Interval[22.2708 – 23.3292]
Critical value (Z)Z = 1.9600 (95%)

How it was calculated

22.8000 ± 1.9600 × (2.7000 / √100) = 22.8000 ± 0.5292

Formula: x̄ ± Z × (σ / √n). Margin of error = Z × (σ / √n).

Using this calculator

Enter sample size, sample mean, and standard deviation (population σ or sample s). Choose a confidence level to get the interval and margin of error. For what a confidence interval means, the role of sample size, and Z-values, see the article below.

When and How to Use the Confidence Interval Calculator

When to use which output, definitions and formulas are in the article below.

Workflow Tips

When You Have Sample Data

Use when you have n, x̄, and σ or s and want an interval for the population mean.

When You Need the Margin of Error

Results panel shows MoE in absolute and percentage form; "How it was calculated" shows the formula.

When You Need a Different Confidence Level

Change the dropdown; Z and interval update. Toggle the Z-value table in the right column for 70%–99.99%.

Interpreting the Interval

Narrower interval = more precision. For what the interval means and why n matters, see the article below.

Confidence Interval Calculator: Margin of Error & Z-Value

Free confidence interval calculator: margin of error and interval for the population mean. How to calculate margin of error, Z-value for 99% confidence level, sample mean confidence interval formula, what does 95% confidence level mean. Normal distribution.

How to Use This Calculator

Enter the sample size (n), sample mean, and standard deviation (σ or s) in the input fields. Select a confidence level from the dropdown—common choices are 90%, 95%, and 99%, but the calculator supports levels from 70% to 99.99%. The corresponding Z-value (critical value) updates automatically. The results panel displays the confidence interval as a lower and upper bound, the margin of error in both absolute and percentage terms, and the Z-value used. Expand the calculation step to see the formula x̅ ± Z × (σ/√n) applied with your specific numbers. Toggle the Z-value reference table in the right column for a quick lookup of critical values across common confidence levels.

What This Calculator Does & Who It's For

Calculator Purpose & Ideal Users

This confidence interval calculator computes a range for the population mean from your sample mean, sample size, and standard deviation, using a chosen confidence level and Z-value.
  • What You'll Get:
    Confidence interval: [lower, upper] for the population mean. Margin of error: Plus/minus value and percentage of the mean. Critical value (Z): The multiplier for your chosen confidence level (70% to 99.99%). Calculation step: The formula x̄ ± Z × (σ/√n) with your numbers. Z-value reference table: Toggle in the calculator for common levels.
  • Ideal Users:
    Students & coursework: Homework on confidence intervals, margin of error, or the sample mean confidence interval formula. Researchers & analysts: Quick interval estimates from summary statistics (n, x̄, σ or s). Anyone reporting survey or experiment results: Get the interval and margin of error for reports or presentations.
  • Assumptions & Scope:
    Assumes a normal distribution (or large n). Accepts population (σ) or sample (s) standard deviation. For very small samples (e.g. n < 30), a t-interval may be more appropriate; this tool uses Z. All calculations are local; no data is uploaded.

What Is a Confidence Interval Calculator?

A confidence interval calculator computes a range within which an unknown population parameter (e.g. the mean) is likely to fall, based on sample data and a confidence level (e.g. 95%). You enter n, x̄, and σ or s; the tool returns the confidence interval for the population mean, margin of error, and Z-value. Use it for how to calculate margin of error, the sample mean confidence interval formula, or a Z-value for 99% confidence level. See above for what you'll get and who it's for. Free online; all calculations local.

Defining the Interval: What Does a Confidence Level Mean?

A confidence interval is a range of values that is likely to contain the true population parameter (e.g. the population mean), based on your sample and a specified confidence level. The interval is x̄ ± Z × (σ/√n). What does a 95% confidence level mean? It means that if you repeated the sampling and interval construction many times, about 95% of those intervals would contain the true parameter, it describes the procedure’s reliability, not the probability that your single interval contains the parameter (the parameter is fixed; the interval is random).

The Role of Sample Size: Why Larger n Narrows the Interval

Increasing the sample size (n) typically narrows the confidence interval, giving a more precise estimate. The standard error of the mean is σ/√n, so doubling n reduces the standard error by a factor of √2, and the margin of error (Z × σ/√n) shrinks. Larger n means a smaller margin of error and a tighter range. This calculator lets you change n and see how the interval and margin of error update.

How to Calculate Margin of Error: Sample Mean Confidence Interval Formula

How to calculate margin of error: the margin of error for the mean is Z × (σ/√n). The sample mean confidence interval formula is x̄ ± Z × (σ/√n), or [x̄ − Z×σ/√n, x̄ + Z×σ/√n]. The Z-value comes from the confidence level (e.g. Z-value for 99% confidence level ≈ 2.576, 95% → 1.960). This calculator shows the calculation step and a Z-value reference table. Supports population (σ) or sample (s) standard deviation; for very small samples a t-interval may be more appropriate.

Confidence Interval Calculator FAQ

What does a 95% confidence level mean?

A 95% confidence level means that if you repeated the same sampling and interval construction many times, about 95% of those intervals would contain the true population parameter (e.g. the population mean). It describes the reliability of the procedure, not the probability that a single interval contains the parameter. This confidence interval calculator lets you choose 70% to 99.99% and shows the corresponding Z-value and margin of error.

How do I find the Z-score for a confidence level?

For a given confidence level (e.g. 95%), the Z-value (critical value) is the number of standard errors on each side of the sample mean so that the area under the normal curve between −Z and +Z equals that percentage. Common values: 90% → Z ≈ 1.645, 95% → Z ≈ 1.960, 99% → Z ≈ 2.576. This calculator includes a Z-value reference table (toggle “Z-value reference”) for levels from 70% to 99.99%.

What is the difference between sample and population standard deviation?

Population standard deviation (σ) uses the true mean of the entire population and divides by the population size N. Sample standard deviation (s) uses the sample mean and divides by n−1 (Bessel’s correction). For large samples the difference is small; this calculator accepts either σ or s in the “Standard deviation” field and uses it in the formula x̄ ± Z × (σ/√n). For very small samples you may prefer a t-interval; this tool assumes a normal distribution and uses Z.

How do I calculate margin of error?

The margin of error for a confidence interval for the mean is Z × (σ/√n): the critical value Z (from the confidence level) times the standard error of the mean (σ/√n). Enter your sample size n, sample mean x̄, standard deviation σ or s, and confidence level into this confidence interval calculator; it shows the margin of error, the plus/minus range, the percentage margin, and the interval [lower, upper].

What is the sample mean confidence interval formula?

The confidence interval for the population mean (assuming a normal distribution) is x̄ ± Z × (σ/√n), where x̄ is the sample mean, Z is the critical value for the chosen confidence level, σ is the population standard deviation (or sample s), and n is the sample size. The interval is [x̄ − Z×σ/√n, x̄ + Z×σ/√n]. This calculator computes that range and shows the calculation step so you can follow the math.

Mathematical Reference Note

Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.

Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.

Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.

© 2026 CalcRegistry Reference Last System Check: May 2026Free Online Utility Tools