Methodology: How the Calculators Work
Last updated November 29, 2026
Every calculator uses the formulas below. They run in your browser, and the same code produces the worked examples printed on each page, so the page text and the live result always agree.
Standard deviation and variance
- Sample (s): divide the sum of squared differences from the mean by n − 1, then take the square root.
- Population (σ): divide the same sum by n, then take the square root.
- Variance: the square of the standard deviation.
Averages and spread
- Median: the middle value of the sorted list, or the average of the two middle values when n is even.
- Mode: every value that ties for the highest count; if no value repeats, there is no mode.
- Quartiles: median-of-halves. The data are split at the median and Q1 and Q3 are the medians of the lower and upper halves. When n is odd the median is left out of both halves.
- Outliers: values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
- Mean absolute deviation: the average of |x − mean| around the arithmetic mean.
Advanced measures
- Standard error: s ÷ √n, using the sample standard deviation.
- Weighted average: Σ(w × x) ÷ Σw.
- Geometric mean: the exponential of the average of ln x, for positive numbers only.
Rounding
Calculations use full precision. Headline answers are shown to four decimal places and working values to six, with trailing zeros removed.
Why results can differ from other tools
Spreadsheets and calculators offer several quartile methods (for example inclusive and exclusive). If your IQR differs from another tool, the method is the usual reason. Standard deviation does not have this problem, but make sure both tools use the same sample or population setting.