Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Good to Know
This calculator uses the z-distribution, which assumes a large sample size or a known population standard deviation. For small samples (fewer than about 30) with an estimated standard deviation, the t-distribution is technically more accurate and will produce a slightly wider interval than shown here.
How This Calculator Works
A confidence interval is a range of values, built around a sample’s own mean, that likely
contains the true population mean. Enter a sample’s mean, standard deviation, and size, choose a
confidence level, and this calculator finds the range within which the actual population mean
probably falls.
A “95% confidence interval,” for example, means that if you repeated the same sampling process
many times, about 95% of the intervals it produced would contain the true population mean. It does
not mean there’s a 95% chance the true mean falls inside this one specific interval — a
common, technically-incorrect way people phrase it. A wider interval (higher confidence level)
casts a wider net and is more likely to contain the true mean; a narrower interval is more precise
but less certain.
The Formula
Standard Error=nsMargin of Error=z×Standard ErrorConfidence Interval=xˉ±Margin of Error
Where s is the sample’s standard deviation, n is the sample size, z is
the critical value for the chosen confidence level (looked up from the standard normal
distribution), and xˉ is the sample mean. A bigger sample size shrinks the standard
error — and therefore the whole interval — since more data gives a more precise estimate of the
true mean.
Worked Example
A sample of 25 items has a mean of 100 and a standard deviation of 15, at a 95%
confidence level (a critical value of z = 1.96):
So the true population mean is likely (with 95% confidence) somewhere between 94.12 and
105.88.
Cómo funciona esta calculadora
Un intervalo de confianza es un rango de valores, construido alrededor de la media de una
muestra, que probablemente contiene la verdadera media poblacional. Ingresa la media, la
desviación estándar y el tamaño de una muestra, elige un nivel de confianza, y esta calculadora
encuentra el rango dentro del cual probablemente se encuentra la media poblacional real.
Un “intervalo de confianza del 95%”, por ejemplo, significa que si repitieras el mismo proceso de
muestreo muchas veces, alrededor del 95% de los intervalos producidos contendrían la verdadera
media poblacional. No significa que exista un 95% de probabilidad de que la media real se
encuentre dentro de este intervalo específico — una forma común, aunque técnicamente incorrecta,
de expresarlo. Un intervalo más amplio (nivel de confianza más alto) abarca una red más amplia y
es más probable que contenga la media real; un intervalo más estrecho es más preciso pero menos
certero.
La fórmula
Error estaˊndar=nsMargen de error=z×Error estaˊndarIntervalo de confianza=xˉ±Margen de error
Donde s es la desviación estándar de la muestra, n es el tamaño de la muestra,
z es el valor crítico para el nivel de confianza elegido (obtenido de la distribución
normal estándar), y xˉ es la media de la muestra. Un tamaño de muestra mayor reduce
el error estándar — y por lo tanto todo el intervalo — ya que más datos ofrecen una estimación más
precisa de la media real.
Ejemplo resuelto
Una muestra de 25 elementos tiene una media de 100 y una desviación estándar de 15, con
un nivel de confianza del 95% (un valor crítico de z = 1.96):
Error estándar: Error estaˊndar=15÷25=3.
Margen de error: Margen de error=1.96×3=5.88.
Intervalo de confianza: Intervalo de confianza=100±5.88=[94.12,105.88].
Así que la verdadera media poblacional probablemente (con un 95% de confianza) se encuentra en
algún punto entre 94.12 y 105.88.
It means that if you repeated the same sampling process many times, about 95% of the resulting intervals would contain the true population mean. It does NOT mean there is a 95% chance the true mean falls inside this ONE specific interval — a common but technically incorrect way to phrase it.
Why does a bigger sample size shrink the interval?
The standard error (and therefore the margin of error) is divided by the square root of the sample size, so more data produces a more precise — and narrower — estimate of the true population mean.
Should I use the z-distribution or the t-distribution?
The z-distribution (used here) is standard for large samples (n of about 30 or more) or when the population's true standard deviation is already known. For a small sample with only an estimated standard deviation, the t-distribution is technically more accurate and produces a slightly wider interval.
What happens if I choose a higher confidence level?
A higher confidence level (e.g. 99% instead of 95%) uses a larger critical z-value, which widens the interval. This is an unavoidable trade-off: casting a wider net makes it more likely the true mean is actually inside the interval, at the cost of a less precise estimate.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.