Standard deviation from a confidence interval or standard error
This standard deviation from confidence interval calculator follows the Cochrane Handbook: the SD is the standard error times the square root of the sample size, and the standard error is the width of the CI divided by twice its t or z value. It also works back from the CI, t statistic or P value of a difference between two means.
Updated
Runs in your browser. Nothing you enter is uploaded, stored or sent anywhere.
How to calculate SD from SE
Multiply the standard error by the square root of the sample size: SD = SE × √N. It’s the formula in section 6.5.2.2 of the Cochrane Handbook, and it works because the standard error of a mean is its SD divided by √N.
- Check whose SE it is. It must be the SE of one group’s mean. The Handbook says it “must not be the SE of the mean difference between two intervention groups”. For that case, see “From a difference between two means” below.
- Find N. It’s the number of participants in that group.
- Take the square root of N, and multiply the SE by it.
For an SE of 2 in a group of 49, √49 = 7, so the SD is 2 × 7 = 14. In the calculator above, keep “One group’s mean”, choose “A standard error”, and enter the SE and N.
How to calculate the SD from a standard error or CI
For one group’s mean, the Cochrane Handbook gives these formulas in section 6.5.2.2, where N is the number of participants in the group:
| What’s reported | Formula |
|---|---|
| A standard error | SD = SE × √N |
| A 95% CI, large sample | SD = √N × (upper − lower) ÷ 3.92 |
| A 95% CI, small sample | SD = √N × (upper − lower) ÷ (2 × t), with t on N − 1 degrees of freedom |
| A 90% or 99% CI | 3.29 or 5.15 in place of 3.92, or twice the matching t value |
The 3.92 is 2 × 1.96. The SE must be the group’s own, not the SE of the difference between two groups. For a small sample, say fewer than 60 in the group, the interval should have been built with a t value, which is larger than 1.96, so the divisor is larger too: 4.128 for a group of 25. Between 60 and 100 either may have been used, and the Handbook says to use t when in doubt.
Standard error from a confidence interval
The first half of the calculation gives the standard error from the confidence interval on its own: SE = (upper − lower) ÷ (2 × t), or divided by 3.92 for a large sample. The calculator shows it under the SD.
From a difference between two means
When the paper reports the difference between the groups instead, section 6.5.2.3 of the Handbook works back to an SD in up to four steps. NE and NC are the two groups’ sizes and MD the mean difference:
- From a P value to t. Find the t with that two-sided P value on NE + NC − 2 degrees of freedom.
- From t to the standard error.
SE = MD ÷ t. - Or from a CI to the standard error.
SE = (upper − lower) ÷ (2 × t), with t on NE + NC − 2 degrees of freedom, or 3.92 for a large trial. - From the standard error to the SD.
SD = SE ÷ √(1/NE + 1/NC).
This assumes the SD is the same in both groups, and gives one SD to enter for both. The P value must be exact. For one reported as “P < 0.01”, the Handbook’s conservative option is to use 0.01, but “P = NS” can’t be used at all.
Worked example from the Cochrane Handbook
Section 6.5.2.2 of the Handbook uses an experimental group of 25 with a mean of 32.1 and a 95% CI of 30.0 to 34.2. It’s the example the calculator opens with.
Example: Working it through
The t value for a 95% CI on 25 − 1 = 24 degrees of freedom is 2.0639, so the divisor is 2 × 2.0639 = 4.128.
SD = √25 × (34.2 − 30.0) ÷ 4.128 = 5 × 4.2 ÷ 4.128 = 5.09.
Dividing by 3.92 instead, as if the sample were large, would give 5.36, about 5% too big.
Section 6.5.2.3 has an example for a difference: NE = 25, NC = 22, MD = 3.8 and P = 0.008. The t on 45 degrees of freedom is 2.78, so SE = 3.8 ÷ 2.78 = 1.37 and SD = 1.37 ÷ √(1/25 + 1/22) = 4.69. The calculator doesn’t round along the way and gives 4.68.
Check before you convert
- Is the interval symmetrical? A CI that isn’t symmetrical about the mean may have been worked out on a log scale (Handbook section 6.5.2.4), and this calculation would then be wrong. Enter the mean and the calculator checks.
- Whose standard error is it? An SE or CI for the difference between groups can’t go into the one-group formula. Choose “A difference between two means” instead.
- t or normal? If the paper doesn’t say, use t for groups of up to 100.
- A median instead? If the paper gives a median and IQR, use the median to mean converter.
What to report
What to report: Say where each SD came from
List the studies whose SDs you calculated, the statistic each one came from, whether you used t or the normal distribution, and the Handbook section you followed. The summary under the result is written to paste into a methods section.
OtterSR’s extraction stage proposes each value with the passage it came from, so you can check what a study actually reported, such as whether an interval is for one group or for the difference, before converting it. When a group’s SD is missing, its Write stage can fill it from the SE or the CI of that group’s mean, using t on n − 1 degrees of freedom, and records which studies it converted. See how OtterSR works.
Frequently asked questions
How do I get the standard error from a confidence interval?
Divide the width of the interval by 3.92 for a 95% CI from a large sample, or by twice the t value for a small one. For a group of 25 that’s 4.128. The calculator shows the standard error under the SD.
What is the 3.92 in the formula?
It’s 2 × 1.96. A 95% interval from the normal distribution reaches 1.96 standard errors either side of the mean, so it’s 3.92 standard errors wide. For 90% and 99% intervals the Handbook uses 3.29 and 5.15.
Can I use a standard deviation from a 95% confidence interval for a small study?
Yes, with the t value in place of 1.96, which this calculator uses by default. Using 1.96 for a small study makes the SD too large: 5.36 instead of 5.09 in the Handbook’s example of 25 people.
How to cite this tool
OtterSR. Standard deviation from a confidence interval or standard error. https://www.ottersr.com/tools/standard-deviation-from-ci-or-se (accessed today’s date).
Please cite the method as well:
Higgins JP, Li T, Deeks JJ (editors). Chapter 6: Choosing effect measures and computing estimates of effect [last updated August 2023]. In: Higgins JP, Thomas J, Chandler J, et al (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane, 2024.
Related guides
- How to design a data extraction formHow to design a data extraction form for a systematic review: which fields to collect, piloting, two extractors, and recording where each value came from.
- How to do a meta-analysis: a step-by-step guideHow to do a meta-analysis: deciding whether to pool, choosing the effect measure, fixed or random effects, heterogeneity, sensitivity analyses and reporting.
Related tools
- Effect size calculator: Cohen’s d and Hedges’ gUse this when studies measure the same outcome on different scales and you need a standardized mean difference.
- Forest plot generatorUse this when you have several studies of the same comparison and want them pooled, with heterogeneity, and drawn as a forest plot.
- Sample size calculator for a two-arm trialUse this when you’re planning a two-group randomized trial, or checking the sample size a trial reports, for a binary or continuous outcome.
Sources
- Higgins JP, Li T, Deeks JJ (editors). Chapter 6: Choosing effect measures and computing estimates of effect [last updated August 2023]. In: Higgins JP, Thomas J, Chandler J, et al (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane, 2024. https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-06