One-Sample Z Test and Confidence Interval Calculator
Enter the mean, the known population standard deviation, and the size of one sample. The calculator returns the confidence interval for the population mean and the z test of that mean against a value, with the p-value and a conclusion in plain words.
One-sample z calculator
The design effect stays at 1 for a simple random sample. A survey sample from a complex design enters its design effect, and the standard error widens by the square root of that value.
How this calculator works
The one-sample z test suits one sample when the population standard deviation is known from outside the sample, so the sample standard deviation never enters. That case is rare in field work and common in textbooks and in settings where a long run of past data pins the spread down.
The standard error is the known standard deviation divided by the square root of the sample size. The interval is the sample mean plus and minus a z critical value times the standard error. The test statistic is the gap between the sample mean and the value under test, divided by the standard error, and the p-value comes from the standard normal distribution.
Worked example
A sample of 36 has a mean of 102, and the population standard deviation is known to be 15. The value under test is 100. The standard error is 15 divided by 6, which is 2.5. The z statistic is 2 divided by 2.5, which is 0.80, and the p-value is 0.4237. The 95 percent interval runs from 97.10 to 106.90. The interval covers 100 and the p-value sits above 0.05, so the test does not reject a mean of 100.
Values computed from the standard normal distribution. The method was checked against reference calculations: the entries in the worked example reproduce to four decimal places, and the full pair record sits in the package verification file.