§ V · Statistics
Statistics Calculator
Mean, spread and quartiles with the arithmetic shown.
- Updated 2026-11-25
- Free · no sign-up
- Runs in your browser
Fractions are accepted too: 1/2, 3/4, 5/8. The sums stay exact, so a mean of 19/6 is reported as 19/6.
Mean
372
Sample SD
√411010
≈ 6.41092817
Median
332
| Count n | 6 |
|---|---|
| Sum Σx | 111 |
| Sum of squares Σx² | 2259 |
| Mean x̄ | 37/2 |
| Median | 33/2 |
| First quartile Q₁ | 15 |
| Third quartile Q₃ | 21 |
| Interquartile range | 6 |
| Minimum | 12 |
| Maximum | 30 |
| Sample variance s² | 411/10 |
| Population variance σ² | 137/4 |
| Sample SD s | √4110/10 ≈ 6.41092817 |
| Population SD σ | √137/2 ≈ 5.852349955 |
Sorted
12, 15, 15, 18, 21, 30
Distance from the mean
−13/2, −7/2, −7/2, −1/2, 5/2, 23/2
Mode: 15 (2 times each)
Try one
Compared with a basic calculator
| Task | Basic calculator | This page |
|---|---|---|
| Data | Accumulate values manually | A list of up to 5,000 rational values |
| Spread | Re-enter formulas | Sample and population variance and deviation |
| Results | Decimal summary | Exact fractions and surds where supported |
How to use it
§ How to use- 01
Paste the numbers separated by commas, spaces or new lines. Fractions such as 1/2 are accepted alongside decimals.
- 02
Read the three headline figures: mean, sample standard deviation and median.
- 03
The table gives every measure exactly, with a decimal only where the exact value has no short form.
- 04
The sorted list and the distances from the mean at the bottom are what the variance is built from.
Exact sums, exact spread
§ 02Descriptive statistics on numbers that were written exactly.
| Data | Floating point | ShowSteps |
|---|---|---|
| 1, 2, 3, 4 | mean 2.5 | mean 5/2, s = √15/3 |
| 1/2, 3/4, 5/8 | mean 0.625 with drift | mean 5/8 exactly |
| 0.1 × 15 values | sum 1.4999999999999998 | sum 3/2 |
The formulas behind the table
§ 03The panel prints the intermediate sums, not just the answer, so the numbers can be checked:
x̄ = Σx / n
s² = Σ(x − x̄)² / (n − 1)
σ² = Σ(x − x̄)² / n
The standard deviation is the square root of the variance. Because the variance stays exact, so does its root whenever the variance is a perfect square of a rational — for 1, 2, 3, 4 the answer is √15/3 rather than 1.2909944487358056.
Position, not just centre
Mean and standard deviation describe a symmetric bell. Real data rarely is, which is why the median, the quartiles and the interquartile range are printed alongside: they survive a single extreme value that would drag the mean across the page.
Deviations are printed too
Each value's distance from the mean is listed. It makes the variance formula physical: the variance is the average of those squared distances, and seeing them is usually what turns the formula into something memorable.
Questions
§ 04- Should I use the sample or the population standard deviation?
- Use the sample version (divide by n − 1) when the numbers are a sample drawn from something larger; use the population version (divide by n) when they are the whole set. Both are printed so you can take the one your course or report requires.
- How are the quartiles calculated?
- By Tukey hinges: split the sorted data at the median, and take the median of each half. When n is odd the middle value is excluded from both halves. Some software uses a different interpolation, which is why quartiles occasionally disagree between tools; the method is stated so the difference is explainable.
- What counts as an outlier?
- Any value below Q₁ − 1.5·IQR or above Q₃ + 1.5·IQR. That is the usual box-plot rule, and the flagged values are listed rather than removed.
- Why are the sums exact?
- Because each value is kept as a fraction and added as a fraction. Adding 0.1 fifteen times in floating point gives 1.4999999999999998; here it gives 3/2.
- Does it compute the mode?
- Yes, when a value repeats. If every value is different there is no mode, which the panel reports by simply not showing one.
- Can I paste a column from a spreadsheet?
- Yes. Values separated by commas, spaces or new lines are all accepted, so a column pasted from a spreadsheet works as it is.
- Does it do regression or hypothesis tests?
- Not yet. This panel is descriptive statistics: centre, spread and position. A regression tool with R² and residuals is planned.
- Does it accept negative numbers and fractions?
- Yes. Values are read as exact fractions, so -2, 3/4 and 0.125 can sit in the same list, and the mean comes back as a fraction rather than a rounded decimal.
Related calculators
allArithmetic
Fraction Calculator
Add, subtract, multiply and divide fractions without a decimal in sight.
3/8 + 5/12
Arithmetic
Scientific Calculator
A full keypad that keeps surds exact and records every operation.
√8 + 3/8 + 5/12
Measurement
Unit Converter
One exact factor per conversion, and it tells you which factor.
32 psi → kPa
School
GPA Calculator
Weighted by credit, on a 4.0 or 4.3 scale, with every course counted.
A, B+, A− over 4, 3, 4 credits
Linear algebra
Matrix Calculator
Determinant, inverse and row reduction in exact fractions.
[2 1; 5 3]
Arithmetic
Combinations & Permutations Calculator
Choose or arrange, in exact integers, repeats included.
C(10, 3) = 120