Standard deviation is calculated using the formula below: For each value in the data set (x), subtract the mean (x̄), and then square the result. Then find the sum of all the resulting values. Next, this sum is divided by the number of values in the data set (N), then the square root of the resulting number is found.