Math equation. The confidence interval for sample sizes less than 30 is the sample mean plus or minus the appropriate t score times the standard deviation divided by the square root of "n", the sample size. For these larger samples one can use the t table with degrees of freedom equal to n-1.