CALCULATOR · EVIDENCE SYNTHESIS
Convert Median and IQR to Mean and SD Calculator for Meta-Analysis
Enter the first quartile, the median, the third quartile and the sample size, or the minimum, the median, the maximum and the sample size. The estimated mean and SD, with the method behind each, update as you type. Nothing you enter leaves your browser.
Runs in your browser. No data is sent or stored.
Method reviewed by an in-house statistician · Last checked November 2026
In Short
When a study reports a median with its quartiles or its range, a meta-analysis that needs a mean and an SD has to estimate them. To convert median and IQR to mean and SD, this calculator uses the Luo et al. estimator for the mean and the Wan et al. estimator for the SD, and shows the simpler Wan mean beside the Luo mean. A second tab does the same from the minimum, the median and the maximum. The output is an estimate for use as meta-analysis input, not a replacement for what the original study reported, and it is rough when the distribution is skewed or the sample is small.
How It Is Calculated
From the median and the quartiles, the recommended mean estimator weights the midpoint of the quartiles against the median (Luo et al., 2018). The simpler average of the three values (Wan et al., 2014) is shown beside it:
Q1, Q3 = first and third quartiles · n = sample size.
The SD comes from the width of the interquartile range, scaled by the normal quantile that an interquartile range of that size corresponds to (Wan et al., 2014, method C3):
z = standard normal quantile (inverse cumulative distribution function).
From the minimum, the median and the maximum, the formulas change (Luo et al., 2018; Wan et al., 2014, method C1):
The headline mean uses the Luo estimator and the SD uses the Wan estimator; both are named in the result. Estimators built for skewed data exist (McGrath et al., 2020) and are not implemented here.
Assumptions and When Not to Use It
- An approximately symmetric distribution. Both estimators assume it. When the median sits far from the midpoint of Q1 and Q3, the distribution is probably skewed and the estimate is rough.
- A sample that is not small. Quartile-based estimates are rough below about n = 25. The mathematical minimum is n = 2, and differing quartile conventions between software packages also affect accuracy.
- Summaries that can exist together. The quartile tab needs Q1 ≤ median ≤ Q3 and Q1 < Q3. The range tab needs minimum ≤ median ≤ maximum and minimum < maximum. Equal values give an SD of 0, which the calculator refuses.
- An input for meta-analysis, not a result for the original study. Where a study reports a mean and SD, use those. The estimate stands in only for the study that does not.
- Subgroups reported separately. If a study gives a mean and SD for each subgroup, combine them first with the Combine Means and SDs Across Subgroups Calculator.
- A conversion is not a pooled result. Once each study has an effect estimate and its standard error, the Pooled Estimate Calculator for Meta-Analysis combines them.
Worked Example (Hypothetical Values)
A trial in a meta-analysis reports a length-of-stay outcome as a median of 15 days with a first quartile of 10 and a third quartile of 22, in 40 participants.
| Input or result | Value |
|---|---|
| First quartile, Q1 | 10 |
| Median | 15 |
| Third quartile, Q3 | 22 |
| Sample size, n | 40 |
| Mean, Luo estimator (headline) | 15.7097 |
| Mean, Wan estimator (shown beside it) | 15.6667 |
| SD, Wan method C3 | 9.2272 |
The median (15) lies one unit below the midpoint of the quartiles (16), a mild asymmetry, and the two mean estimators agree closely. Press “Load the worked example” under the calculator and these values fill the fields. HYPOTHETICAL VALUES.
What the Result Still Needs
- 1
The right summary from the report. Check that the quartiles are Q1 and Q3 and not another percentile pair, and that the n is the number analyzed for that outcome.
- 2
A look at skewness. Compare the median with the midpoint of the quartiles for every converted study; a strongly skewed outcome calls for caution about the estimate.
- 3
The estimate named as an estimate. The methods section says that means and SDs were estimated from medians and ranges, with the estimators and their sources.
- 4
A sensitivity analysis. The pooled analysis is repeated without the converted studies, so the conclusion is shown not to rest on estimated values.
- 5
One rule across studies. The same conversion is applied to every study and recorded in the extraction sheet.
A statistician reviews which summaries your included studies report, applies one defensible conversion rule and writes the methods sentence and the sensitivity analysis for your review.
Meta-Analysis & Evidence SynthesisIndependent Statistical Review confirms an analysis prepared by you, a colleague or an AI tool before it goes to a committee or a journal.
Independent Statistical ReviewFrequently Asked Questions
Why does the calculator use one method for the mean and another for the SD?
The Luo et al. estimator is the recommended one for the mean, and the Wan et al. estimator is used for the SD. The simpler Wan mean is shown beside the Luo mean so you can see how much the choice matters. Cite both sources when you report the conversion.
What if the median is far from the middle of the quartiles?
That pattern suggests a skewed distribution, and the symmetric-distribution estimators become rough. The result is still usable as a stand-in, but it carries more uncertainty than the number suggests. Treat the study as a candidate for the sensitivity analysis.
How large does the sample need to be?
The mathematical minimum is n = 2, but quartile-based estimates are rough below about n = 25. Different software packages also use different quartile conventions. For very small studies, report the estimate as approximate.
What if only the range is reported?
Use the second tab, which takes the minimum, the median and the maximum and applies the range-based estimators. The same assumption of an approximately symmetric distribution applies. Name which tab was used for each study.
Can I report the converted mean and SD as the study's result?
No. The estimate exists so that a study can enter a pooled analysis; it does not describe the original data. Report the study’s own median and quartiles when you describe it.
References
- Luo, D., Wan, X., Liu, J., & Tong, T. (2018). Optimally estimating the sample mean from the sample size, median, mid-range, and/or mid-quartile range. Statistical Methods in Medical Research, 27(6), 1785-1805. https://doi.org/10.1177/0962280216669183
- McGrath, S., Zhao, X., Steele, R., Thombs, B. D., Benedetti, A., & the DEPRESsion Screening Data (DEPRESSD) Collaboration. (2020). Estimating the sample mean and standard deviation from commonly reported quantiles in meta-analysis. Statistical Methods in Medical Research, 29(9), 2520-2537. https://doi.org/10.1177/0962280219889080
- Wan, X., Wang, W., Liu, J., & Tong, T. (2014). Estimating the sample mean and standard deviation from the sample size, median, range and/or interquartile range. BMC Medical Research Methodology, 14, Article 135. https://doi.org/10.1186/1471-2288-14-135
Method reviewed by an in-house statistician · Last checked November 2026 · Test cases and boundary cases verified before release
Found an error or have a suggestion? Write to info@onlinespss.com with the calculator name and the inputs you used. Every report is checked by a statistician.
Have a Statistician Check Your Median and IQR Conversion
Share the review question, the outcome and the studies that report medians. A statistically trained Research Coordinator reviews the request, and the scope and one fixed project fee are confirmed before work begins.
No Commitment Required
Strictly Confidential
Fixed Project Fee
In-House PhD-Level Statisticians
Same-Day Response