d and SD Calculator

This d and SD calculator finds each deviation d from the mean and the standard deviation, or the paired differences d̄ and s_d for before and after data.

Checks on your data

  • Deviations from the mean always add to 0, which confirms the mean.
  • Sample SD divides by n − 1 so that it is not biased low.
  • The standard deviation is pulled by outliers. Look at the table of deviations.
  • Data: no outliers beyond 1.5 × IQR and no strong skew detected.

Results

Mean x̄
6
Sum of deviations Σd
0
always 0
Sum of squared deviations Σd²
28
Sample standard deviation (n − 1)
2.16025
Population standard deviation (n)
2
Mean absolute deviation
1.71429
n
7
Data and mean
468mean 6
Deviations from the mean
xd = x − x̄d²
4-24
824
600
5-11
3-39
939
711
Show step-by-step solution
  1. Mean x̄ = 6. Each deviation is d = x − x̄. They add to 0.
  2. Σd² = 28.
  3. Sample SD = √(Σd² ÷ (n − 1)) = 2.16025. Population SD = √(Σd² ÷ n) = 2.
Deviationd = x − x̄
Sample SD√(Σd² / (n−1))
Paired SDs_d of the differences

What Is d and SD?

In statistics, d often stands for a deviation, the distance of a value from the mean, and SD is the standard deviation built from those deviations. The same letter d also names the difference within a matched pair.

In deviation mode, the calculator lists d = x − x̄ for every value, shows that they add to zero, and gives the sample and population standard deviations. In paired mode it gives d̄, the standard deviation of the differences, the paired t test and Cohen's d.

Choose the mode that matches your problem and paste your values.

How to Use the d and SD Calculator

  1. Choose deviations or paired differences.
  2. Paste your values, and the after values in paired mode.
  3. Read d, the SD and, for pairs, the t test and effect size.

d and SD Formula

Deviation

di=xi−xˉd_i=x_i-\bar x

Sample SD

s=∑di2n−1s=\sqrt{\frac{\sum d_i^2}{n-1}}

Paired t

t=dˉsd/nt=\frac{\bar d}{s_d/\sqrt n}

d and SD Variables Explained

SymbolMeaningNotes
dDeviation from the mean, or a paired differencex − x̄, or after − before
SDStandard deviation√(Σd² / (n − 1))
d̄Mean of the paired differences
s_dStandard deviation of the differencesSets the standard error

d and SD Worked Example

With the example values loaded in the calculator above, the steps are:

  1. Mean x̄ = 6. Each deviation is d = x − x̄. They add to 0.
  2. Σd² = 28.
  3. Sample SD = √(Σd² ÷ (n − 1)) = 2.16025. Population SD = √(Σd² ÷ n) = 2.

Result: Sample standard deviation (n − 1) = 2.16025; Population standard deviation (n) = 2.

Worked example: deviations

Take 4, 8, 6, 5, 3, 9, 7. The mean is 6, so the deviations are −2, 2, 0, −1, −3, 3, 1, and they add to 0.

The squared deviations add to 28. The sample SD is √(28 ÷ 6) = 2.1602 and the population SD is √(28 ÷ 7) = 2.

Paired differences

For before and after data, take d = after − before for each pair. The mean of those, d̄, is the average change, and s_d is the standard deviation of the changes. The paired t test divides d̄ by s_d ÷ √n.

Where d and SD Is Used

Standard deviation homework

See every step from deviation to SD.

Before and after studies

Test the mean change with a paired t test.

Effect size

Get Cohen's d for paired data.

Common d and SD Mistakes to Avoid

  • Use the sample SD unless you have the whole population.
  • In paired mode, keep the order of the two lists the same.

d and SD Terms and Definitions

Deviation
How far a value is from the mean.
Paired data
Two measurements on the same unit, such as before and after.

d and SD FAQs

What is d in statistics?

It can mean the deviation of a value from the mean, or the difference between the two values in a pair.

How do you find the SD from deviations?

Square them, add them, divide by n − 1 for a sample, and take the square root.

Why do deviations add to zero?

The mean is the balance point of the data, so the positive and negative deviations cancel.

What is the SD of paired differences used for?

It sets the standard error of the mean difference in a paired t test.

Related calculators

Last updated 2026-11-09. See our disclaimer.