Skip to main content
All resources

Resources · Education

What Is Range in Math?

Range means two different things in mathematics. In statistics it is the largest value minus the smallest, a single number describing how spread out a data set is. For a function it is the set of every output the rule can produce. This guide covers both, shows how to compute the statistical range, explains why it is a fragile measure, and settles range against domain. The mean, median and mode calculator reports the range along with the other summary measures.

6 min read

Blake Boege
Blake BoegeFounder, Calculator AnswersPublished August 23, 2026

What does range mean in math?

Range has two different meanings in mathematics, and which one applies depends entirely on whether you are doing statistics or working with functions. That ambiguity is the single biggest source of confusion around the word, so it is worth settling first.

  • In statistics, the range is the largest value minus the smallest. It is one number, and it measures spread.
  • For a function, the range is the set of all output values the function can produce. It is a set, not a single number.

Both are standard and both are correct. If a question gives you a list of data, it wants the first. If it gives you f(x) or a graph, it wants the second.

How to find the range of a data set

Two steps:

  1. Find the largest value and the smallest value.
  2. Subtract the smallest from the largest.

range = maximum − minimum

For the set 4, 8, 15, 16, 23, 42 the maximum is 42 and the minimum is 4, so the range is 42 − 4 = 38.

You do not need to sort the whole list to do this, though sorting makes the two values easy to spot. Note that the range is reported as a single number, 38, not as “4 to 42” — that pair is the interval the data covers, which is useful but is not what the word range asks for in a statistics question.

Why the range is a weak measure of spread

The range uses exactly two numbers and ignores everything between them. That makes it quick to compute and easy to break.

Change the 42 in our set to 420 and the range jumps from 38 to 416, an elevenfold increase caused by one value. Every other number in the set is unchanged, and any reasonable description of “how spread out is this data” should barely have moved.

This is why statistics courses introduce the range first and then immediately replace it. The interquartile range uses the middle half of the data and ignores the extremes, and the standard deviation uses every value's distance from the mean. Both are harder to compute and both survive an outlier that destroys the range.

The range of a function

For a function, the range is the set of every output the function actually produces. The set of allowed inputs is called the domain, and the two are always discussed together.

Take f(x) = x² over all real numbers. You can put any real number in, so the domain is all reals. But squaring never produces a negative, so the range is only y ≥ 0. The function has a domain twice the size of its range, in a manner of speaking, and that asymmetry is the point of asking the question.

A second example: f(x) = 2x + 3 has domain all reals and range all reals, because a straight line with a non-zero slope eventually reaches every height. Compare that with f(x) = 1/x, whose range excludes 0, because no input ever makes the output exactly zero.

Range vs domain

Domain is what goes in. Range is what comes out. Readers mix them up constantly, and the reliable way to keep them straight is alphabetical: domain before range, input before output, x before y.

Domain and range compared
FunctionDomainRange
f(x) = 2x + 3all realsall reals
f(x) = x²all realsy ≥ 0
f(x) = 1/xx ≠ 0y ≠ 0

The domain calculator works out the allowed inputs for an expression, which is usually the harder half of the pair.

Common mistakes

  • Answering with an interval. The range of 4, 8, 15, 16, 23, 42 is 38, not “4 to 42”.
  • Subtracting in the wrong order. Maximum minus minimum. A range is never negative.
  • Using the statistics meaning on a function question, or the reverse. Check whether you were given data or a rule.
  • Reporting a range on outlier-heavy data as though it described the typical spread.

Quick summary

  • In statistics: range = maximum − minimum, a single number.
  • For a function: the set of outputs the rule can produce.
  • The statistical range uses only two values, so one outlier can multiply it.
  • Domain is input, range is output, in alphabetical order.

The mean, median and mode calculator reports the range alongside the mean, median and mode for any list of numbers.

Run the numbers

Frequently asked questions

It has two meanings. In statistics the range is the largest value minus the smallest, a single number measuring spread. For a function, the range is the set of all output values the function can produce. Which one applies depends on whether the question gives you data or a rule.

For a data set, the maximum minus the minimum. For 4, 8, 15, 16, 23 and 42 that is 42 - 4 = 38. For a function it is the set of outputs, such as y >= 0 for f(x) = x squared.

Find the largest value, find the smallest value, and subtract the smallest from the largest. The answer is one number, and it is never negative.

No. The range of 4, 8, 15, 16, 23, 42 is the number 38. The interval the data covers is 4 to 42. Both are useful, but a statistics question asking for the range wants the single number.

Domain is the set of inputs a function accepts; range is the set of outputs it produces. Domain comes before range alphabetically, just as input comes before output, which is a reliable way to keep them straight.

Because it uses only two values and ignores everything between them. Changing one value in 4, 8, 15, 16, 23, 42 from 42 to 420 moves the range from 38 to 416 while every other number stays the same. The interquartile range and the standard deviation both survive that change.

Yes. If every value in the set is identical, the maximum equals the minimum and the range is 0. That is a correct answer meaning there is no spread at all.

All values greater than or equal to zero. Squaring any real number gives a non-negative result, so no negative output is ever produced, even though the domain is every real number.