The statistical formula for a value's z-score is calculated using the following formula: Where: Calculating a z-score requires that you first determine the mean and standard deviation of your data.