Confidence Interval for the Mean (z)
Enter the sample average x̄, a known population σ and the size n to get x̄ ± z·σ/√n at 90, 95 or 99 percent, where z is 1.645, 1.96 or 2.576.
IC
—
Confidence interval for the mean (z)
If you already know the population standard deviation σ, or your sample is large enough that n > 30 and the Central Limit Theorem kicks in, the confidence interval for the mean comes out to IC = x̄ ± z · σ/√n. Which critical value you plug in depends on the level you want: z = 1.645 at 90%, z = 1.96 at 95%, z = 2.576 at 99%. That σ/√n piece is the standard error, and it falls off with √n. So if you want to cut the margin in half, you need four times the sample. For small samples where σ is a mystery (n < 30), switch to Student's t. Worked example: x̄ = 50, σ = 8, n = 36, 95% → IC = 50 ± 1.96 · 8/6 = [47.39, 52.61].
Applications
You'll see it behind the margin of error quoted in election polls, in clinical trials, in statistical quality control, in A/B testing, when labs validate an analytical method, and when economic indicators like IBGE or IPCA figures get estimated.
FAQ
Does the CI mean μ has 95% chance of being inside? No, and this trips almost everyone up. The right reading is frequentist. Repeat the sampling 100 times and roughly 95 of the intervals you build this way will contain the true μ. But for the one interval in front of you, μ is in it or it isn't. There's no probability left.
z or t? Reach for z when σ is known or n > 30. Reach for t when σ is unknown and the sample is small. The t-Student distribution carries heavier tails than z, which is exactly what offsets the extra uncertainty you take on by estimating σ from s.
How to reduce the margin of error? Collect more data, since the margin falls with √n. You can also try to trim the variable's own variability, or drop your confidence level. Going from 95% to 90% does tighten the interval, but it also raises your odds of missing μ.
Related Tools
Z-Test for a Mean (Known σ)
Computes the z-test for a mean when the population standard deviation is known. It's the simplest case of hypothesis testing about a mean: the statistic measures how many standard errors separate the observed mean from the hypothesized value. When σ is known (or the sample is large), the normal distribution is used instead of the t. The tool returns the z statistic and the two-sided p-value. Enter the sample mean, the hypothesized mean, the population standard deviation and the sample size.
PWM Output Voltage
Calculate the average output voltage of a PWM signal, V_out = (duty ÷ 100) × V_sup, from the duty cycle (in %) and the supply voltage V_sup. The result, in volts, is the effective average voltage delivered to a load (motor, LED, heater) by rapidly switching the supply on and off. Varying the duty cycle from 0 to 100% varies the average voltage from 0 to V_sup, allowing power control without dissipating energy in resistors — the basis of motor speed and LED brightness control in microcontrollers. Enter the duty cycle and the supply voltage.
Harmonic Mean Calculator
Calculate the harmonic mean of a list of numbers, best suited for averaging rates, speeds and ratios. Enter the values and get the result instantly.
Wind Gust to Mean Ratio
Computes the gust factor G/U and the mean wind speed from the gust velocity and the ratio entered.
ENEM Target Average: Score Still Needed
Enter the goal, the scores already earned and how many tests are left to get the mean still needed on ENEM, Brazil's university entrance exam.
Weighted Grade Average Calculator
Paste grades and their weights as two comma-separated lists to get the sum of grade times weight divided by total weight, rounded to 2 decimals.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.