Least to Greatest Calculator
Put any list of numbers in order from least to greatest. Paste or type values separated by commas or spaces — whole numbers, decimals, negatives, and fractions like 2/5 all work — and get the ascending order, the descending order, and the smallest and largest values.
Example: with Numbers (comma or space separated) 18, -4, 2/5, 0.62, 7 → Least to greatest: -4, 2/5, 0.62, 7, 18.
- Greatest to least18, 7, 0.62, 2/5, -4
- Summary5 values · smallest -4 · largest 18
Computed by the calculator below using its default values. Change any input to see your own numbers.
Fractions are converted to decimals for ordering (2/5 = 0.4) but displayed exactly as you typed them. Ordering follows the number line: negatives first, then values increasing to the right.
Ordering rules that trip people up
Least to greatest means left to right on the number line. Negatives come before everything positive, and among negatives the ordering flips intuition: −4 is less than −1 because it sits further left. Zero splits the two camps.
Decimals order by place value, not length: 0.62 beats 0.4 even though 4 looks like a bigger digit, and 0.605 loses to 0.65. Fractions are easiest to place by converting to decimals first — 2/5 is 0.4, so it lands between −4 and 0.62 in the default example. This tool does that conversion internally but keeps your original notation in the output.
How it’s calculated
The list is split on commas, semicolons, and whitespace. Each token is parsed to a decimal value — fractions a/b are computed as a ÷ b; thousands separators are stripped — then sorted ascending by numeric value. Original notation is preserved in the output, invalid tokens are skipped and counted.
Purely numeric ordering — mixed numbers written with a space (1 1/2) split into two tokens, so write them as improper fractions (3/2) or decimals (1.5).
Ordering traps and the right call
| Pair | Which is less | Why |
|---|---|---|
| -4 vs -1 | -4 | Further left on the number line |
| 0.605 vs 0.65 | 0.605 | Compare tenths, then hundredths: 60 < 65 |
| 2/5 vs 0.5 | 2/5 | 2/5 = 0.4, and 0.4 < 0.5 |
| 1/3 vs 3/8 | 1/3 | 1/3 ≈ 0.333 and 3/8 = 0.375 |
| 7 vs 7.0 | neither | Equal — trailing zeros do not change value |
Computed by converting each value to a decimal and comparing.
Common mistakes
- Sorting negatives by their digits: −9 is less than −2, not greater.
- Treating longer decimals as larger — 0.605 < 0.65 because the hundredths place decides.
- Comparing fractions by numerator or denominator alone instead of converting to decimals.
- Typing mixed numbers with a space (1 1/2), which parses as two values — write 3/2 or 1.5 instead.
Frequently asked questions
How do I order numbers from least to greatest?
Convert everything to the same form (decimals are easiest), then arrange from the smallest value to the largest — leftmost on the number line first. Negatives always precede positives, and among negatives the bigger-looking digit is actually smaller.
How do fractions get ordered?
Each fraction is divided out to a decimal: 2/5 becomes 0.4, 3/8 becomes 0.375. The decimals are compared, but the answer displays your original fractions in sorted position.
Is least to greatest the same as ascending order?
Yes — both mean smallest first. Descending (greatest to least) is the same list reversed.
What happens to duplicates and invalid entries?
Duplicates stay in the list — sorting keeps every copy. Entries that are not numbers (stray letters, double slashes) are skipped, and the summary line tells you how many were ignored.