Least to Greatest Calculator

Sort numbers from least to greatest with number line visualization, ranked data table with percentiles, gap analysis, outlier detection, and five-number summary.

Sorted: Least to Greatest

4.00<6.00<11.00<14.00<17.00<23.00<27.00<31.00<38.00<42.00<50.00<56.00<58.00<65.00<71.00<76.00<83.00<89.00<94.00<100.00
Count (n)
20
20 unique values
Minimum
4.00
Smallest value (rank 1)
Maximum
100.00
Largest value (rank 20)
Range
96.00
Maximum − Minimum
Mean
47.75
SD = 30.93
Median
46.00
Middle value

Number Line

▼ μ
4.00
100.00

Ranked Data Table

RankValuePercentileGapDeviationStatus
14.000.0%-43.75✓ Normal
26.005.3%2.00-41.75✓ Normal
311.0010.5%5.00-36.75✓ Normal
414.0015.8%3.00-33.75✓ Normal
517.0021.1%3.00-30.75✓ Normal
623.0026.3%6.00-24.75✓ Normal
727.0031.6%4.00-20.75✓ Normal
831.0036.8%4.00-16.75✓ Normal
938.0042.1%7.00-9.75✓ Normal
1042.0047.4%4.00-5.75✓ Normal
1150.0052.6%8.00+2.25✓ Normal
1256.0057.9%6.00+8.25✓ Normal
1358.0063.2%2.00+10.25✓ Normal
1465.0068.4%7.00+17.25✓ Normal
1571.0073.7%6.00+23.25✓ Normal
1676.0078.9%5.00+28.25✓ Normal
1783.0084.2%7.00+35.25✓ Normal
1889.0089.5%6.00+41.25✓ Normal
1994.0094.7%5.00+46.25✓ Normal
20100.00100.0%6.00+52.25✓ Normal

Five-Number Summary & Outlier Detection

StatisticValue
Minimum4.00
Q1 (25th percentile)20.00
Median (50th percentile)46.00
Q3 (75th percentile)73.50
Maximum100.00
IQR (Q3 − Q1)53.50
Lower Fence (Q1 − 1.5×IQR)-60.25
Upper Fence (Q3 + 1.5×IQR)153.75
Planning notes, formulas, and examples

About the Least to Greatest Calculator

Sorting numbers from least to greatest (ascending order) is one of the most fundamental operations in mathematics and data analysis. This calculator sorts any set of numbers and enriches the result with statistical context: a number line visualization, ranked table with percentiles and gap analysis, outlier detection using the IQR method, and a complete five-number summary.

Enter whole numbers, decimals, or negative numbers separated by commas or spaces. The sorted output uses the "<" symbol between values for clear presentation, with the minimum highlighted in red and the maximum in green. Each value is annotated with its rank, percentile position, gap from the previous value, and deviation from the mean.

The outlier detection feature flags values beyond the 1.5×IQR fences — a critical step in data cleaning that many simple sorting tools miss entirely. Whether you're ordering measurements for a lab report, sorting financial data, helping with homework, or preparing data for analysis, this calculator provides the complete picture.

When This Page Helps

This calculator does more than sort — it transforms a list of numbers into a statistical profile. The number line visualization immediately shows clustering, gaps, and spread. The ranked table with deviation and outlier columns provides the kind of annotated output that data analysts create manually. The five-number summary and fences complete the picture.

Support for currency and percentage formatting, adjustable decimal places, and large datasets makes this practical for real-world use in classrooms, labs, and offices.

How to Use the Inputs

  1. Enter numbers separated by commas or spaces (supports $, %, and negative numbers).
  2. Select a preset to try common data types: quiz scores, heights, prices, mixed signs.
  3. Choose the display format: standard, currency ($), or percentage (%).
  4. Set the number of decimal places for output precision.
  5. View the sorted result with "<" symbols and colored min/max values.
  6. Examine the number line for a visual overview of value spacing.
  7. Review the ranked table with percentiles, gaps, deviations, and outlier flags.
Formula used
Ascending sort: arrange values so v₁ ≤ v₂ ≤ ... ≤ vₙ Percentile of rank r: (r − 1) / (n − 1) × 100% Gap: vᵣ − vᵣ₋₁ IQR: Q3 − Q1 Lower Fence: Q1 − 1.5 × IQR Upper Fence: Q3 + 1.5 × IQR Outlier: value < Lower Fence OR value > Upper Fence

Example Calculation

Result: 4 < 6 < 11 < 14 < 17 < 23 < 27 < 31 < 38 < 42 < 50 < 56 < 58 < 65 < 71 < 76 < 83 < 89 < 94 < 100

Twenty values sorted from 4 to 100. Range = 96, Mean = 47.75, Median = 46.0. Q1 = 17, Q3 = 76, IQR = 59. Fences are −71.5 and 164.5, so no outliers in this dataset. The largest gap (11) occurs between 76 and 83.

Tips & Best Practices

  • Look at the gap column: large gaps suggest natural clusters in your data.
  • Values flagged as outliers may be data entry errors — investigate before removing them.
  • The number line shows whether values are evenly spread or clustered at one end.
  • The deviation column shows each value's distance from the mean — useful for understanding spread.
  • If median ≠ mean, your data is skewed. Median > mean means left-skewed (more low values).
  • Compare with the greatest-to-least calculator for the reverse perspective.

Sorting Algorithms

Under the hood, sorting is performed by JavaScript's Array.sort(), which typically uses TimSort (a hybrid merge/insertion sort). TimSort has O(n log n) worst-case complexity and is particularly efficient on partially sorted data. For small datasets like those entered manually, any algorithm works quickly; for large datasets, efficient algorithms matter enormously.

Number Sense in Education

"Put these numbers in order from least to greatest" is one of the most common math worksheet prompts from grades 1 through 6. It develops number sense — the intuitive understanding of magnitude, position, and relationships between numbers. Students progress from single-digit whole numbers to multi-digit numbers, negatives, fractions, and decimals.

Sorted Data in Statistical Analysis

Sorted data enables order statistics: the k-th smallest value in a dataset. The minimum (1st order statistic) and maximum (n-th order statistic) define the range. Percentiles and quartiles are interpolated from order statistics. The median — the middle order statistic — is the most robust measure of central tendency, immune to outliers that can dramatically affect the mean.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Ascending order means arranging values from the smallest to the largest. Each value is less than or equal to the next. The terms "ascending order," "increasing order," and "least to greatest" all mean the same thing.