Range & Midrange Calculator

For the original six-value example, 12, 18, 9, 22, 15 and 20 have minimum 9 and maximum 22, giving range 13 and midrange 15.5. Moving an interior value from 18 to 19 changes neither result. Adding a new maximum of 30 changes the range to 21 and the midrange to 19.5.

In a separate five-observation example, 8, 14, 14, 16 and 50 give range 42 and midrange 29. Including one additional zero changes the range to 50 and the midrange to 25. That zero is an observation, not a missing-value marker.

Keeping the minimum at 8 and changing the upper observation from 45 to 55 instead gives ranges 37 and 47. The interior 14s and 16 do not enter those subtractions. A one-value prefix has range zero.

Range & Midrange Calculator: inputs

Calculated result
Range13
Midrange15.5

Range & Midrange Calculator: Value 3 sensitivity

Range & Midrange Calculator: Value 3 and Range5 calculations vary the “Value 3” input while holding the other entered inputs constant.71581491310121111

Range & Midrange: formula

Range = max − min; midrange = (max + min) ÷ 2

NIST: measures of location · NIST: measures of scale

The range and midrange ignore every interior observation. A data-entry error at either endpoint changes both results. Neither describes the frequency, clustering or shape of the remaining values.

Different collections can share the same endpoints while concentrating their interior values in very different places. Examine the actual observations before using either endpoint-based summary as a description of the whole sample.

Range & Midrange: worked example

Number of observations to include6
Value 112
Value 218
Value 39
Value 422
Value 515
Value 620
Range13
Midrange15.5

Enter observations in one measurement unit. Only the smallest and largest entries determine these outputs; intermediate observations still count as data but do not affect the endpoints. The count selector chooses which value slots belong to the set.

Range & Midrange: changing Value 3

The first included observation remains the lower extreme in these cases. Raising that lower endpoint narrows its separation from the unchanged upper extreme. An interior edit would behave differently if it stayed between the same bounds; the role of the edited observation matters.
Value 3RangeMidrange
71514.5
81415
9 (example)1315.5
101216
111116.5

Range & Midrange: compare input ranges

A flat response for an interior observation is conditional on the tested interval. Move that observation beyond an existing extreme and it can become the value that sets the spread. The comparison identifies sensitivity around the entered list, not permanent irrelevance of a field.
InputTested fromToRange: low inputRange: high inputSwing
Number of observations to include1601313 (100%)
Value 4202411154 (31%)
Value 381014122 (15%)
Value 1111313130
Value 2162013130
Value 5141713130
Value 6182213130

Range & Midrange: individual input comparisons

Selection and measurement edits are separated into their respective groups. Removing the observation that supplies a bound can expose a different bound; revising an excluded slot has no effect until that slot is included. Reconcile the membership rule with the original observation record.
InputValueRangeMidrange
Number of observations to include1012
2615
3913.5
41315.5
51315.5
61315.5
Value 1101315.5
111315.5
121315.5
131315.5
141315.5
Value 2141315.5
161315.5
181315.5
201315.5
221315.5
Value 371514.5
81415
91315.5
101216
111116.5
Value 4181114.5
201114.5
221315.5
241516.5
261717.5
Value 5121315.5
141315.5
151315.5
171315.5
181315.5
Value 6161315.5
181315.5
201315.5
221315.5
241516.5

Range & Midrange: combined input changes

The crossed settings pair the lower observation with the large upper observation. Their difference determines the gap while their average determines the midpoint of the bounds. The remaining included measurements cannot offset an extreme by becoming more numerous, unlike an arithmetic mean.
Value 3 / Value 2141822
7151515
8141414
9131313
10121212
11111111

Range & Midrange: which assumptions move the result?

Range & Midrange: Range as Number of observations to include changesRange starts at 0. Moving Number of observations to include from 1 to 6 changes it to 13, with Value 1 12; Value 2 18; Value 3 9; Value 4 22; Value 5 15; Value 6 20 kept fixed.102639413513613
The selected prefixes have ranges 0 and 13 at counts 1 and 6. Adding observations can retain an existing endpoint or introduce a new extreme, but cannot narrow the range of the observations already included. Each prefix is a different data set.
Range & Midrange: Range as Value 4 changesRange starts at 11. Moving Value 4 from 18 to 26 changes it to 17, with Number of observations to include 6; Value 1 12; Value 2 18; Value 3 9; Value 5 15; Value 6 20 kept fixed.18112011221324152617
Changing Value 4 from 18 to 26 gives ranges 11 and 17. An edited observation changes the range only when it changes a minimum or maximum. The interior values still belong to the set without entering the endpoint subtraction.

Range & Midrange: values and definitions

Ranges retain the original measurement unit. Check the provenance of both extreme values: a transcription error can manufacture apparent spread. The arithmetic cannot distinguish a valid large observation from a mistyped one. The same range can arise from many different sets of observations.
Quantity and definitionValue used
Number of observations to include — Uses the first 1–6 value slots; an included zero is data, not a missing-value marker.6
Value 112
Value 218
Value 39
Value 422
Value 515
Value 620
Range13
Midrange15.5

Common error: Treating midrange as equivalent to the average. Midrange only looks at the two endpoints; mean uses every value, and the two can differ substantially whenever the data isn't evenly distributed between its extremes.

Identical endpoints can hide very different observations

Consider the assumed sets (0, 1, 2, 9, 10) and (0, 5, 5, 5, 10). Both have range 10 and midrange 5, although their interior clustering is different. With only endpoints retained, that difference cannot be recovered.

The separate prefilled example (8, 14, 14, 16, 50) has range 42 and midrange 29; its mean is 20.4 and median is 14. Thus the midrange need not describe an observation near the middle rank. An endpoint data-entry error can affect the range even when most observations were entered correctly.

Check the original measurements before using the two extrema as a summary of variability. A change of measurement scale illustrates the difference between span and location. If assumed Celsius observations run from 8°C to 50°C, their range is 42°C and their midrange is 29°C.

In Fahrenheit the endpoints are 46.4°F and 122°F: range becomes 75.6°F while the midrange becomes 84.2°F. The conversion offset cancels in subtraction but remains in the midpoint. This arithmetic is why a range should carry a temperature-difference unit and a midrange should carry a temperature-location unit.

Statistics & Probability calculators: Permutation & Combination Calculator, Simple Probability Calculator, Z-Score Calculator, Confidence Interval Calculator, Sample Size Calculator, Binomial Probability Calculator.

Range and midrange are both built from just the two extreme values in a dataset and ignore everything in between, which makes them fast to compute and easy to distort. One unusually high or low reading can swing both figures substantially even if every other value in the set stayed exactly the same.

Scan the full dataset for an obvious outlier before trusting range or midrange as a description of the typical spread. A single stray value can dominate both.

Get more robust measures on the standard deviation and mean and median calculators, and see how far a value lies from the mean on the z-score page. The percent difference and percentage change calculators compare values. The weighted average calculator handles importance.

What is the range of a data set?

Subtract the smallest observation from the largest. The result is the range. It measures the full span between the extremes, while leaving the positions and frequency of all observations inside that span unspecified.

What is the midrange?

Add the largest and smallest observations, then halve their sum. That is the midrange. It sits halfway between the extremes, which can differ from the median position or the arithmetic mean of every observation.

Why is the range a limited measure?

Only the minimum and maximum enter the range. An outlier can change either extreme sharply. Every other observation is ignored in that subtraction; adding a value inside the existing span leaves the range unchanged.