Number Line Calculator

Plot a set of numbers on a number line.
Enter comma-separated values, see them graphed with min, max, range, and median, and visualize spread.

Number Line

A number line is the simplest visualization in mathematics — a horizontal line with marked positions for numbers. Negative numbers extend left from zero, positive numbers extend right. The distance between any two marks is the absolute difference between the values.

This calculator places your numbers on the line and reports the basic spread statistics. The chart is sorted, so you can see clusters at a glance — three points bunched together near 7 stand out from a single outlier at -100.

Statistics shown:

  • Minimum: smallest value
  • Maximum: largest value
  • Range: max − min
  • Midrange: (min + max) / 2: the literal middle of the number line span
  • Median: middle value when sorted (or average of two middle values for even count)

Number lines are useful for thinking about inequalities (the set of x with x > 3 is the half-line to the right of 3), absolute value (|x − 5| is the distance from x to 5), and intervals like [2, 7] (closed at both endpoints) versus (2, 7) (open at both). Visualizing on the line clarifies what algebraic conditions actually mean.

For more than ~30 points, the chart can get crowded. The statistics still apply though — and a frequency distribution or histogram becomes a better visualization at that scale (see those calculators for grouping data into bins).

Examples worth trying:

  • 1, 2, 3, 4, 5: evenly spaced positive integers
  • -5, -3, 0, 2, 8: a mix straddling zero
  • 0.1, 0.2, 0.5, 0.7, 1.0: fractional values clustered in (0, 1)
  • 1, 2, 3, 100: three close values plus an outlier; the chart will compress the cluster

The number line is the underpinning concept for the real numbers themselves: every real number corresponds to exactly one point on the line, with no gaps. This continuum property distinguishes the reals from the rationals (which would have many gaps).


How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.