Math Calculators

Confidence Interval Calculator

A confidence interval is the sample mean plus and minus a margin of error: the standard error, s divided by the square root of n, times the chosen level's critical value z* β€” 1.644854 at 90 %, 1.959964 at 95 %, 2.575829 at 99 %. It is the normal-approximation interval, with s standing in for Οƒ.

Calculator

Formula

SE = s / √n; margin = z* Γ— SE; interval = xΜ„ Β± margin.

About This Calculator

What It Does

This calculator turns a sample's own figures β€” its mean xΜ„, its standard deviation s and its size n β€” into the interval the population mean is likely to sit in, at one of three fixed confidence levels. It computes the standard error s / √n, multiplies it by the level's critical value z* to get the margin of error, and prints xΜ„ Β± margin with both ends shown. The model is the normal one, with the sample's s standing in for the unknown Οƒ, and the family is scale-free: whatever unit the sample is in, the interval comes back in that same unit with nothing converted.

Worked Example

Example β€” the page opens on a sample with a mean of 100, a standard deviation of 15 and a size of 30, at 95 %: the standard error is 15 / √30 = 2.7386, the margin is 1.959964 Γ— 2.7386 = 5.3676, and the interval runs from 94.6324 to 105.3676. At 90 % the same sample gives 4.5046 either side of the mean, an interval of 95.4954 to 104.5046; at 99 % the margin widens to 7.0542 and the interval to 92.9458 – 107.0542.

Real-World Usage

An interval is how one measurement becomes a claim. A poll reports a share plus or minus a margin; a laboratory repeats a measurement and states a mean with a range; a factory samples 30 units and quotes the batch's average strength to within so many units. Reading it correctly is what the margin is for: 100 Β± 5 at 95 % is a statement about the method, so two overlapping intervals are not proof that two populations differ, and a margin wider than the effect you are looking for means the sample cannot settle the question yet.

Local Context

The interval carries no unit and no country's convention: xΜ„ and s are in whatever the reader measured, and the arithmetic is identical on every page this site serves. Only the formatting follows the page, where a French catalogue writes 94,6324 and an English one 94.6324 for the same bound. The levels are deliberately not regional either β€” the z* values are the standard-normal quantiles published tables use everywhere, so an interval quoted here can be compared with one from a report written in another country.

Last reviewed: October 2026.

Frequently Asked Questions

Does a 95 % interval mean there is a 95 % chance the true mean is inside it?

No, and the difference is worth holding on to. The population mean is a fixed number β€” it is not redrawn per sample β€” so one finished interval either contains it or does not, and no probability can be attached to it afterwards. What the 95 % describes is the method: if you drew many samples and built an interval this way from each, about 95 of every 100 intervals would catch the true mean. A higher level buys more of that coverage, not more certainty about this one sample.

What is the margin of error, and how do I make it smaller?

The margin is z* Γ— s / √n β€” the level's critical value times the standard error β€” and it is the half-width added and subtracted around the sample mean. Three things move it: a smaller s (a more consistent sample), a larger n, and a lower confidence level. Only n can be raised by collecting more data, and it sits under a square root, so the margin halves only when the sample is four times as large: from 100 readings to 400 halves it, while 100 to 200 cuts it by about 29 %.

Why can I only choose 90, 95 or 99 % β€” where is 92 %?

The three fixed levels each come with a published standard-normal quantile z* β€” 1.644854, 1.959964 and 2.575829 β€” that you can look up in any table and re-derive for yourself. An arbitrary level would need a z* most readers cannot check, and the page would be asserting a figure it does not show the source of. These three are also the levels published tables and reports actually use, which keeps an interval from this page comparable with one quoted elsewhere.

Why does it refuse a spread of zero, or a sample of one?

A standard deviation of zero says every observation is identical, which would put a margin of error of zero on the page β€” an interval claiming the population mean is known exactly, the one answer this tool must never print. A sample of one has no spread to measure at all, so n has to be at least two. Both refusals leave the figures at zero and mark the field instead of returning an interval that looks usable. The page also uses the normal-approximation interval, with the sample's own s standing in for Οƒ, which is the reading to trust when the sample is reasonably large.

Related Tools