Here is the generalized formula for it: The formula for pooled standard deviation In the formula above, n is the sample size of the group, S squared the group variance, and k is the number of groups.