StatGardenREF. DESK
Calculators/Maths/Ordering Decimals Calculator
Maths

Ordering Decimals Calculator

Sorts a list of decimal numbers into ascending or descending order.

Published 26 August 2026

What this calculator does

Ordering decimals is one of those tasks that looks trivial until the list gets long enough, or the numbers are close enough in value, that mistakes creep in. This ordering decimals tool takes a list of numbers separated by commas or spaces and sorts them numerically, either smallest to largest or largest to smallest.

The common trap with decimals is treating them like whole numbers when comparing digit by digit: 0.505 looks bigger than 0.55 at a glance because 505 is bigger than 55, but 0.55 is actually the larger number once the decimal places are compared correctly. Sorting numerically, rather than by eye, avoids that mistake entirely.

The formula

FormulaSort the entered numbers numerically, ascending or descending

Every number entered is parsed as a decimal value, then sorted purely by numeric size, either ascending (smallest first) or descending (largest first), regardless of how many digits appear after the decimal point.

TermMeaning
Ascending orderSorted from the smallest value up to the largest.
Descending orderSorted from the largest value down to the smallest.

The inputs explained

FieldWhat to enter
Numbers (comma or space separated)Type or paste the numbers, separated by commas, spaces or a mix of both.
OrderChoose whether the smallest or the largest number should appear first.

When to use it

Checking homework or a worksheet

Ordering decimals is a common maths exercise; typing a student's list in here quickly confirms whether their order is correct.

Ranking measurements or scores

A set of decimal measurements, times or scores can be sorted in one step to find the smallest and largest without manual comparison.

Untangling numbers with different decimal lengths

A mixed list like 0.5, 0.05 and 0.505 is genuinely easy to misjudge by eye; sorting it numerically settles the correct order without ambiguity.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Sorting a mixed set of decimals, ascending vs descending

The set 0.5, 0.05, 0.55, 0.505, 5.5 sorted both ways.

Same five numbers, both directions
OrderSorted order
Ascending0.05, 0.5, 0.505, 0.55, 5.5
Descending5.5, 0.55, 0.505, 0.5, 0.05
The smallest value in the set is 0.05 and the largest is 5.5, with 0.5, 0.505 and 0.55 falling in between in that numeric order despite having different numbers of decimal places.

Questions

Why does 0.505 come before 0.55 when sorted?

Comparing decimals digit by digit after the decimal point, 0.50 is less than 0.55, so 0.505 is smaller than 0.55 even though it has more digits written out. Numeric sorting compares actual value, not digit count.

Can I sort negative decimals too?

Yes. Negative numbers are sorted correctly alongside positive ones; ascending order still places the most negative number first.

Does it matter if I separate numbers with commas or spaces?

No, both work, and you can mix them. The list is split on any combination of commas, spaces and semicolons.

What happens if I enter a non-number by mistake?

Anything that cannot be read as a number is ignored, so only the valid numeric entries in the list are sorted.

For basic arithmetic on the same kind of list, see the average calculator. For a fuller statistical summary of a data set, see the descriptive statistics calculator.