🧮
🧮 Math & statistics

Least to Greatest Calculator (sort numbers & fractions in order)

Results update as you type.

Your numbers

Understanding the least to greatest calculator — concept and principle

This calculator sorts a list of numbers, including fractions, decimals and negatives, from least to greatest and from greatest to least. It keeps each number in the form you typed and also reports the smallest and largest values, the range, the median, the sum and how many distinct values there are. Use it for number-sense practice, homework and quick data checks.

Least to greatest8 numbers on one line−2−101234567−2−0.750.52/33/41.257 ×2−2, −0.75, 0.5, 2/3, 3/4, 1.25, 7, 7Range9Median0.7083Distinct7
Turning fractions into decimals puts every number on one number line.

How it is calculated

The principle

Ordering real numbers means reading them off the number line from left to right. Negative numbers come first, with those farther from zero being smaller: −2 < −0.75. Converting fractions to decimals puts everything on the same footing: 2/3 ≈ 0.667 comes before 3/4 = 0.75. Once sorted, simple summaries such as the median and range can be read straight off the list.

Worked example

Default input: 3/4, −2, 0.5, 7, 1.25, −0.75, 7, 2/3 (8 numbers).

  1. Least to greatest: −2, −0.75, 0.5, 2/3, 3/4, 1.25, 7, 7.
  2. Greatest to least: 7, 7, 1.25, 3/4, 2/3, 0.5, −0.75, −2.
  3. Smallest −2, largest 7, range = 7 − (−2) = 9.
  4. Median = (2/3 + 3/4) ÷ 2 = (0.6667 + 0.75) ÷ 2 = 0.7083333333.
  5. Sum = 14.41666667; distinct values 7 (7 appears twice).

How to read the result

The sorted list makes gaps and clusters visible: here most numbers lie between −1 and 1.25, with 7 well apart. The median, about 0.71, is a better "typical value" than the mean (14.42 ÷ 8 ≈ 1.80) because the two 7s pull the mean up.

Common mistakes

Keep in mind: Repeating decimals from fractions are shown rounded; the order itself uses the full values.

Frequently asked questions

How do you order fractions and decimals together?

Convert all of them to decimals (or a common denominator) and compare.

Which is smaller, −2 or −0.75?

−2, because it is farther left on the number line.

What is the median of an even number of values?

The average of the two middle values in the sorted list.

Sources: Ordering of real numbers on the number line; median and range (standard definitions)

Checked 9 Nov 2026. Ordering of real numbers on the number line (arithmetic); median = middle value of the sorted list (average of the two middle values for an even count), range = largest − smallest.

🧮 All math & statistics tools →🌍 Calculators by country →