InputTestHub

Confidence Interval Calculator

Builds a confidence interval for a mean from your sample mean, standard deviation and sample size, using t or z, with the margin of error shown.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Enter your figures and press Calculate.
In short A confidence interval is the sample mean plus and minus a margin of error, where that margin is a critical value times the standard error. With a mean of 100, a standard deviation of 15 and 25 observations, the standard error is 3.00, the 95% critical t on 24 degrees of freedom is 2.0639, and the interval runs from 93.81 to 106.19. Use t rather than z unless the standard deviation came from outside the sample — a calibrated instrument or a published population figure — because a standard deviation estimated from the data carries its own error, and t is what accounts for it. The penalty is largest exactly where people are most tempted to ignore it: at n = 5 the t interval is 41.66% wider than the z interval, at n = 30 it is 4.35% wider, and by n = 100 it is 1.24%. The single most useful fact here is how the interval shrinks. The margin falls with the square root of the sample size, so halving it takes four times the data, not twice. And the interpretation is narrower than it looks. A 95% interval does not mean there is a 95% chance the true mean lies inside this one. The true mean is a fixed number; it either is or is not in this interval. The 95% is the long-run hit rate of the method, which is a statement about the procedure rather than about your particular answer.

How to use the Confidence Interval Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the Confidence Interval Calculator

A confidence interval for a population mean, with the margin of error and critical value shown.

What people use it for

  • Reporting a result with its uncertainty rather than as a bare average.
  • Deciding whether two measurements are distinguishable.
  • Sizing how much more data would narrow an estimate usefully.

Details

Critical t at 95%, 24 df2.0639
Critical z at 95%1.96
t is wider than z at n = 5 by41.66%
t is wider than z at n = 100 by1.24%
To halve the interval you needfour times the data

The maths behind it

This tool uses CI = x̄ ± t · s ÷ √n, where t is the critical value for the chosen confidence level on n − 1 degrees of freedom. Every intermediate value is shown on screen, so the result can be checked by hand.

The interval is symmetric around the sample mean because it is built from a symmetric distribution. Intervals for proportions near 0% or 100%, and for skewed data, are not symmetric.

Where this tool stops

This is the interval for a MEAN, and it assumes observations are independent and either roughly normal or numerous enough for the mean to be. It says nothing about where an individual future observation will fall, which is a much wider range.

Frequently asked questions

Should I use t or z?
t, in almost every real case. z is only correct when the standard deviation is known independently of this sample. Estimating σ from the data and then using z gives an interval that is too narrow, and the error is worst at small n.
Does a 95% interval mean a 95% chance the mean is inside it?
No. The population mean is a fixed number, so it is either inside or outside. The 95% describes how often the method captures the true value across repeated samples.
Why is my interval so wide?
Either the data is very variable or the sample is small — the margin is proportional to s and inversely proportional to √n. Increasing n is usually the only lever you control.
Is this the same as a margin of error?
The half-width of the interval IS the margin of error. This page computes it for a mean; the margin of error calculator does the same arithmetic for a survey percentage.
Is the Confidence Interval Calculator free, or is there a paid tier?
It is free, with no account, no trial and no daily cap. Every calculators tool on inputtesthub.com works the same way: open the page and use it.
Does anything I enter leave my computer?
No. The Confidence Interval Calculator runs entirely in your browser using JavaScript. Because the work happens locally, the utility also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
What is the equation behind the Confidence Interval Calculator?
It uses CI = x̄ ± t · s ÷ √n, where t is the critical value for the chosen confidence level on n − 1 degrees of freedom. The full working is printed under the result, so you can follow every step rather than trusting a black box.
What does a typical result look like?
Enter mean 100, s 15, n 25, 95% and the Confidence Interval Calculator returns 93.81 to 106.19.
What problem does the Confidence Interval Calculator solve?
The most common reasons people reach for it: reporting a result with its uncertainty rather than as a bare average. Deciding whether two measurements are distinguishable. Sizing how much more data would narrow an estimate usefully. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
When is the Confidence Interval Calculator not the right tool?
This is the interval for a MEAN, and it assumes observations are independent and either roughly normal or numerous enough for the mean to be. It says nothing about where an individual future observation will fall, which is a much wider range. Knowing where a tool stops being trustworthy matters more than the cases where it works.
Which values should I know?
Critical t at 95%, 24 df is 2.0639. Critical z at 95% is 1.96. t is wider than z at n = 5 by is 41.66%. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…