Confidence Level

Calculate Confidence Level instantly with the exact formula and a worked example.

Confidence Level

Margin of error (interval half-width)
Standard deviation σ
Sample size
Confidence level
95.45%
Calculate Confidence Level instantly with the exact formula and a worked example.
Critical value z
2
Significance level α
4.55%

Usually you pick a confidence level and solve for the margin of error. This calculator runs it backwards: given your sample size and the precision you want to report, what confidence level can you actually claim?

How the calculation works

It starts from the standard margin-of-error formula for a mean, E = z × σ / √n, and solves for z: z = E × √n / σ. The confidence level is the area under the standard normal curve between −z and +z, CL = 2Φ(z) − 1, where Φ is the normal cumulative distribution function. The significance level is α = 1 − CL, the probability left in the two tails.

Inputs: the margin of error E — the half-width of the interval (“± 2 points”), in the same units as your data; the standard deviation σ of the population, or a reliable estimate; and the sample size n. Outputs: the confidence level in percent, the critical value z and α in percent.

The calculation is two-sided and uses the normal (z) approximation. It is appropriate when σ is known or the sample is reasonably large (several dozen observations or more) and drawn at random.

Worked example

With the defaults E = 2, σ = 10 and n = 100: z = 2 × √100 / 10 = 2, so the confidence level is 2Φ(2) − 1 ≈ 95.45% and α ≈ 4.55%. Relax the margin to ±3 with the same σ and n and z becomes 3, giving 99.73%.

Things to keep in mind

  • For a proportion (polls, conversion rates) use σ = √(p(1 − p)) and express E as a fraction: p = 0.5, E = 0.03 and n = 1,000 give z ≈ 1.897 and about 94.2% confidence.
  • With a small sample and σ estimated from the same data, the Student t distribution is the correct reference; the true confidence will be lower than the z-based figure.
  • Handy anchors: z = 1.645 → 90%, z = 1.96 → 95%, z = 2.576 → 99%.
  • Confidence describes the method, not one interval: if you repeated the sampling many times, about that share of the intervals would contain the true value.
  • The formula covers random sampling error only. Biased samples, non-response and measurement error are not fixed by any confidence level.

More about: Confidence Level

What it calculates

The “Confidence Level” calculator computes Confidence level in % from 3 parameters: margin of error (interval half-width), standard deviation σ, sample size.

A core calculation for studying, engineering tasks, and checking solutions.

Example calculation

With parameters Margin of error (interval half-width) = 2, Standard deviation σ = 10, Sample size = 100 the result is 95.45 %.

How to use

  1. Enter margin of error (interval half-width), standard deviation σ and sample size — each field above is adjustable with a slider.
  2. Confidence level (%) is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

What is the difference between confidence level and significance level?
They are complements: α = 1 − confidence level. At 95% confidence, α = 5% — the chance that the procedure produces an interval that misses the true value.
How can I raise the confidence level without widening the margin?
Only by increasing the sample: z grows with √n. Going from z = 2 to z = 3 at the same margin needs 2.25 times as many observations.
Where do I get σ if I don’t know it?
Use a pilot study, earlier survey waves, or the standard deviation of your current sample if it is large. For proportions, the worst case is p = 0.5, giving σ = 0.5.
Why can the result never reach exactly 100%?
The normal distribution has infinite tails, so for any finite margin there is always a small probability of falling outside the interval.

More calculators in this category

Explore related free tools

Partial Eta²Cohen's fCohen's kappaFleiss' kappaKrippendorff's AlphaICC (Intraclass)Bland-AltmanMahalanobis DistanceBonferroni CorrectionHolm-BonferroniTukey HSDScheffe's Test