Ordering Numbers Calculator

Quick answer

The ordering numbers calculator sorts any mix of integers, negatives, decimals, fractions and mixed numbers into increasing or decreasing order, optionally removes duplicates, and lists each number with its rank and original position.

Separate items with commas or new lines. Fractions (1/2), mixed numbers (2 3/4), negatives and decimals are all accepted.

Numbers in order
-12, -3.5, 0, 1/2, 7, 25
Written with inequality signs
-12 < -3.5 < 0 < 1/2 < 7 < 25
The same list as decimals
-12, -3.5, 0, 0.5, 7, 25
Number of values
6
Smallest value
-12
Largest value
25
Range (largest − smallest)
37
Duplicates removed
1
Ranking table
Rank As entered Value Original position ───────────────────────────────────────────── 1 -12 -12 1 2 -3.5 -3.5 5 3 0 0 4 4 1/2 0.5 3 5 7 7 2 6 25 25 6
Number line

Ordering numbers is a basic skill that keeps coming back: in arithmetic lessons, when reading data tables, when ranking results, and as the first step of finding a median or a percentile. The challenge grows when a list mixes forms, such as a negative integer, a fraction, a decimal and zero side by side.

The trick is to compare everything in one form. Fractions and mixed numbers are converted to decimals (1/2 = 0.5, 2 3/4 = 2.75), negatives are placed to the left of zero, and the values are then lined up. Repeated values either stay in the list or, if you only need the distinct numbers, are removed.

This calculator handles all of this in one go. By default it removes duplicate values to show the distinct numbers in order, and you can change the menu to keep repeats. The ranking table shows exactly how each entry was read, so you can check a conversion you are unsure about.

How to use the Ordering Numbers Calculator

  1. Numbers to order: Separate items with commas or new lines. Fractions (1/2), mixed numbers (2 3/4), negatives and decimals are all accepted.
  2. Order
  3. Repeated values

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

Entries are evaluated to numbers, sorted with a stable numeric sort, and duplicates are dropped when that option is selected. The result is reported in your original notation and as decimals.

Worked example

Order −12, 7, 1/2, 0, −3.5, 25, 7 with duplicates removed. Converting 1/2 to 0.5 gives −12, 7, 0.5, 0, −3.5, 25, 7. Sorted: −12, −3.5, 0, 0.5, 7, 7, 25; dropping the repeated 7 leaves −12, −3.5, 0, 1/2, 7, 25, six distinct values with a range of 25 − (−12) = 37.

How the ordering works

Every entry is converted to a number before sorting: 3/4 becomes 0.75, the mixed number 1 1/2 becomes 1.5 and an expression such as (2+6)/4 becomes 2. The values are then sorted numerically, not alphabetically, so 35 comes before 305 and −8 comes before −4. Ties keep the order in which you typed them, and the ranking table shows where each entry originally stood.

You type Read as
3/4 0.75
-2/5 −0.4
1 1/2 1.5
(2+6)/4 2
45% 0.45
2.5e3 2,500

Formula

Order by value: convert each entry to a decimal, then sort · ties are kept or removed

Worked example

Inputs: Numbers to order: -12, 7, 1/2, 0, -3.5, 25, 7; Order: Least to greatest (increasing); Repeated values: Remove duplicates.
Results: Numbers in order = -12, -3.5, 0, 1/2, 7, 25; Written with inequality signs = -12 < -3.5 < 0 < 1/2 < 7 < 25; The same list as decimals = -12, -3.5, 0, 0.5, 7, 25; Number of values = 6; Smallest value = -12; Largest value = 25.

Key terms

Integer
A whole number that can be positive, negative or zero.
Increasing order
Each number is at least as large as the one before it.
Distinct values
The different values in a list, each counted once.

Frequently asked questions

How do you order a list with negatives, fractions and decimals?

Convert every number to a decimal, place the negatives first and sort. −12, −3.5, 0, 1/2, 7, 25.

What does "remove duplicates" do?

It keeps one copy of each value. In −12, 7, 1/2, 0, −3.5, 25, 7 the second 7 is removed.

Is zero positive or negative?

Neither. It sits between the negatives and the positives.

How do I order mixed numbers?

Compare the whole-number parts first; if they are equal, compare the fractions. 2 1/4 < 2 3/4 < 3.

What is increasing order?

Another name for ascending or least-to-greatest order.

Can I order numbers written as percentages?

Yes. 45% is read as 0.45.

Sources

  1. Khan Academy: Statistics and probability
  2. OpenStax: Introductory Statistics 2e

Cite this calculator

Speedy Calculator. (2026). Ordering Numbers Calculator. Speedy Calculator. https://speedycalculator.com/calculators/statistics/ordering-numbers/