Example 1
- 2, 5, 8, 11
R = 9
What is the range of 2, 5, 8, 11? R = 9.
Enter a list of numbers in one field — comma with space, spaces, or semicolons. The calculator computes the range R = max − min. The list 2, 5, 8, 11 gives R = 9 (max = 11, min = 2). A single 5 gives R = 0. The panel also shows n and the midrange. This is not the interquartile range or the standard deviation.
Enter a list of numbers, for example 2, 5, 8, 11.
One text field for a variable-length list. For min, max and range from three fixed fields, use the sibling minimum-and-maximum page.
The statistical range of a finite list of real numbers is the difference between the largest and smallest values: R = max − min. For the list 2, 5, 8, 11 the maximum is 11 and the minimum is 2, so R = 9. For a single number 5, min and max coincide, so R = 0.
In descriptive statistics the range is the simplest measure of spread: one number describes how wide the sample spans. It is sensitive to outliers — one very large or very small observation can inflate R. After ordering the sample x₍₁₎ ≤ … ≤ x₍ₙ₎, the minimum is x₍₁₎ and the maximum is x₍ₙ₎, so R = x₍ₙ₎ − x₍₁₎.
The calculator uses the numbers you enter in one text field. Separate values with a comma and space, with spaces alone, or with semicolons. Tokens that are not numbers are skipped. For 2, 5, 8, 11 the range is 9. For 1, 9 the range is 8. For 1.5 3.5 2 the range is 2. For equal values 4, 4, 4, 4 the range is 0.
Order in the list does not change the result. Zero is a number and can be the minimum. In a comma-separated list use a decimal point (for example 1.5, 3.5); with space separators a decimal comma is also accepted.
The sibling minimum-and-maximum page uses three fixed fields a, b and optional c and reports min, max and range together. Here the input is one list of any length, and the primary result is the range R, with min, max, count and midrange in the supporting panel.
R = max(L) − min(L), where L is the list of valid numbers from the field.
Midrange: (min + max) / 2 — an extra panel quantity, not a substitute for the arithmetic mean of the whole list.
Mathematical model: statistical range as a measure of spread in descriptive statistics (NIST/SEMATECH e-Handbook — Measures of Scale; MathWorld — Statistical Range; Wikipedia — Range (statistics)).
For a finite nonempty list of real numbers x₁, …, xₙ (n ≥ 1), the minimum is the smallest value on the list, the maximum is the largest, and the statistical range is R = max{xᵢ} − min{xᵢ}. When n = 1, min = max and R = 0. An empty list has no defined minimum or maximum; with an empty field this calculator shows a placeholder instead of inventing a number.
This model belongs to classical descriptive statistics: the range is a measure of scale (dispersion), alongside the standard deviation, variance, interquartile range (IQR), and mean absolute deviation. The NIST/SEMATECH e-Handbook of Statistical Methods lists the range under Measures of Scale. MathWorld (Statistical Range) and Wikipedia (Range (statistics)) give the same definition R = max − min for a finite sample.
On this page n can be arbitrarily large within one text field: the calculator builds a list from tokens separated by commas, spaces, or semicolons, drops invalid fragments, then computes min, max, and R in the browser’s floating-point arithmetic. The computation matches min / max on the parsed array.
Do not confuse statistical range with wave amplitude: for a pure sinusoid, peak-to-peak is often 2×amplitude, but this calculator does not assume a waveform model. It only evaluates max − min on the numbers you enter.
Sample extremes and the range were used in empirical sciences long before the arithmetic mean and standard deviation became standard tools. Nineteenth-century astronomy and surveying reported the span of observations as a quick quality check. In the twentieth century the range entered quality control: in Shewhart X̄–R charts, R is the subgroup statistic used to estimate process variability. NIST and SPC textbooks still describe R as a simple, readable measure of spread for short samples.
Conceptually the range is an extreme order statistic: it depends only on x₍₁₎ and x₍ₙ₎. That makes it insensitive to “middle” reshuffling of the list but highly sensitive to outliers — the opposite of the robustness of the median and the IQR. In exploratory data analysis (EDA), Tukey and later writers treat the range as a first look at scale, often just before a boxplot and the standard deviation.
This calculator does not compute σ, s, variance, IQR, or percentiles. It does not weight observations or reject extremes. For the arithmetic mean, standard deviation, and min/max with three fixed fields, use the sibling pages in the Mathematics → Statistics hub.
In teaching, R usually appears in the first descriptive-measures chapter, before the variance formula. Emphasize that R is not divided by n−1 and is not an unbiased estimator of a population scale parameter — it is a pure sample functional.
Let S be a finite nonempty subset of ℝ (or a multiset/list with repeats — repeats do not change the extremes). Then: (1) min(S) ≤ max(S); (2) R(S) ≥ 0; (3) R(S) = 0 iff all elements are equal; (4) min and max are idempotent in the finite-union sense: min(min S, min T) = min(S ∪ T).
Translation: for a constant c ∈ ℝ, min{xᵢ + c} = min{xᵢ} + c and R{xᵢ + c} = R{xᵢ}. Scaling: for λ > 0, R{λxᵢ} = λ R{xᵢ}; for λ < 0 the extremes swap roles but R{λxᵢ} = |λ| R{xᵢ}. For two numbers a, b one has R = |a − b|.
The midrange M = (min + max)/2 is an extra quantity in the result panel. M is not the arithmetic mean of the whole list when n > 2: for 2, 5, 8, 11 the mean is 6.5 and the midrange is also 6.5 only by coincidence; for 1, 2, 100 the mean is 34⅓ while the midrange is 50.5.
Units: R has the same unit as the observations. The calculator does not normalize to [0,1] and does not compute a coefficient of variation R/μ — those are separate models.
Step 1. Read the raw string from the “Numbers (list)” field. If it is empty, there is no sample — show the placeholder.
Step 2. Tokenize with MathCalcCommon.parseList: if the string contains spaces or semicolons, split on /[\s;]+/ and treat a comma inside a token as the decimal separator; if there are no spaces/semicolons and at least two commas, split on commas; if there is exactly one comma with no spaces (e.g. 1,9 on a locale that uses comma decimals), treat the whole string as one decimal. Drop tokens that fail parseNum.
Step 3. Let L = [y₁, …, yₙ] be the list of valid numbers, n ≥ 1. Set min ← y₁, max ← y₁, then for k = 2…n update min and max by pairwise comparisons. Equivalently: min and max are the smallest and largest elements of the whole list L.
Step 4. R ← max − min. Midrange ← (min + max)/2. A sorted copy of the list is only for the panel display — it is not part of the definition of R.
Step 5. Existence of min/max in a finite nonempty subset of ℝ follows from total order and induction on n.
Worked example: L = {2, 5, 8, 11}. min = 2, max = 11, R = 9. The panel also shows n = 4, midrange = 6.5, and the sorted list 2, 5, 8, 11.
Singleton: the list “5” → R = 0. That is mathematically correct, not a defect of the calculator.
All equal: “4, 4, 4, 4” → R = 0, midrange = 4.
Negative and positive: “−2, 0, 4, 8” → min = −2, max = 8, R = 10.
Decimals with spaces: “1.5 3.5 2” → min = 1.5, max = 3.5, R = 2.
Pair: “1, 9” (comma with space) → R = 8. A bare “1.9” is one number → R = 0.
Junk tokens: “2, foo, 11” → parsed 2 and 11, R = 9, with a note about skipped tokens.
Very long lists: limited by browser memory and time; extremely long lists can exceed browser limits — educational lists of tens or hundreds of values are fine.
The result is a double-precision floating-point number. For typical classroom and lab data, max − min is exact relative to the input representation. Near the floating-point limit, subtracting extremes may yield Infinity; the calculator does not emulate arbitrary-precision arithmetic.
The calculator accepts scientific notation (e.g. 1e3) and a decimal comma or dot, following the list-splitting rules above. It does not interpret thousands separators.
The number-line diagram marks list points, the range segment, and min/max labels. It illustrates the same definition of R, not a different model.
Compared with the standard deviation: for 2, 5, 8, 11 the range is 9, while population σ is smaller and depends on every point relative to the mean. R does not replace σ in inference.
Related ideas: set minimum and maximum, order statistics x₍₁₎ and x₍ₙ₎, midrange, IQR = Q₃ − Q₁, standard deviation, variance, coefficient of variation, X̄–R control charts, peak-to-peak in signals (separate context).
Sources NIST/SEMATECH e-Handbook — Measures of Scale; Wikipedia — Range (statistics); Wikipedia — Maximum and minimum; MathWorld — Statistical Range. Introductory statistics textbooks repeat R = max − min in descriptive chapters.
Educational tool only. It does not replace full-sample analysis, plant-floor control charts, or SPC software.
For 2, 5, 8, 11 the range is 9, the minimum is 2, the maximum is 11, and the midrange is 6.5.
R = 9
What is the range of 2, 5, 8, 11? R = 9.
R = 8
What is the range of 1, 9? R = 8.
R = 0
What is the range of a single 5? R = 0.
R = 10
What is the range of −2, 0, 4, 8? R = 10.
R = 2
What is the range of 1.5 3.5 2? R = 2.
R = 0
What is the range of 4, 4, 4, 4? R = 0.
The statistical range R is the difference between the largest and smallest values on the list: R = max − min. For 2, 5, 8, 11 the maximum is 11 and the minimum is 2, so R = 9.
Enter numbers in one field, separated by a comma and space, by spaces alone, or by semicolons. Example: 2, 5, 8, 11. Tokens that are not numbers are skipped.
R = 9, because max = 11 and min = 2. The panel also shows the count n = 4 and the midrange 6.5.
With one valid number, min and max coincide, so R = 0. That matches the definition of range; it is not a calculator bug.
The sibling page uses three fixed fields a, b and optional c and reports min, max and range together. Here the input is one variable-length list, and the primary result is the range R.
No. Min and max depend on values, not order. 11, 2, 5, 8 gives the same R = 9 as 2, 5, 8, 11.
In a comma-separated list use a decimal point, for example 1.5, 3.5, 2. With space separators a decimal comma also works: 1,5 3,5 2.
The range is 0. For 4, 4, 4, 4 the minimum and maximum are 4 and R = 0.
Yes. Zero enters the comparison like any other value. The list −2, 0, 4, 8 gives min = −2, max = 8 and R = 10.
An empty field does not build a list — the calculator shows the placeholder. If every token is invalid, a parse-error message appears.
Find the largest and smallest values, then subtract: R = max − min. For 2, 5, 8, 11: 11 − 2 = 9. Enter the list in one field.
No. The maximum is never smaller than the minimum, so R ≥ 0. It is 0 when every value is equal or when there is only one number.
Range uses only the extremes (max − min). IQR is Q3 − Q1 and ignores outliers. This page computes the classic range, not IQR.
It is (min + max) / 2 — the midpoint between the extremes. For 2, 5, 8, 11 the midrange is 6.5. It is not the median and not the mean of the whole list.
No. The neighboring page has at most three fixed fields a, b and optional c. Here one field takes a variable-length list, and the main result is R.
The range definition below comes from recognized references.
Page updated November 3, 2026.