Median & Mode Calculator
Find the median (middle value) and mode (most frequent value) of any list of numbers. Enter comma-separated values — also shows mean, quartiles, and full descriptive statistics for context.
You might also need
How It Works
The calculator sorts the values, identifies the middle position(s), and computes the median. For odd count: middle index = (n+1)/2. For even count: average of positions n/2 and n/2+1. The quartile method also uses this: Q2 = median, Q1 = median of the lower half, Q3 = median of the upper half.
Odd: median = middle value at position (n+1)/2 | Even: median = avg of positions n/2 and n/2+1Odd [1,3,5]: median=5 | Even [1,3,5,7]: median=(3+5)/2=4The calculator counts occurrences of each value. If one value has the highest count: single mode. If two values tie: bimodal. If all values appear equally (including once each): no mode — the calculator reports "No mode." All modes display listed. For 1,2,2,3,3: bimodal, modes are 2 and 3.
Mode = value(s) with highest frequencyBimodal [1,2,2,3,3]: modes=2,3 | All unique: No modeWhen data is right-skewed, mean > median. The calculator shows both. Comparing them reveals skew direction and magnitude. If mean/median ratio > 1.1 (mean is 10%+ above median), data is meaningfully right-skewed and median is the better summary. Income: mean $75k, median $50k → clear right skew.
Skew indicator: mean/median ratio | >1.1 = right-skewed[1,2,3,4,100]: mean=22, median=3 → strongly right-skewedSwitch to the Frequency Table tab. Enter each unique value and its frequency. The median is computed by finding the cumulative frequency that crosses n/2. For 30 students: 70(×8), 75(×10), 80(×7), 85(×5). Cumulative frequencies: 8,18,25,30. n/2=15: falls in the 75 group → median=75.
Cumulative freq method for grouped median70×8, 75×10, 80×7 → median=75 (cumfreq crosses n/2 at 75)For continuous measurements (heights, weights, times), exact mode is often absent or meaningless. Switch to Descriptive Stats, enter your values, and read the histogram. The tallest bar identifies the modal class — the range with the most values. This is more useful than the exact mode for continuous data.
Modal class = bin with highest bar in histogramHeights: no exact mode, but histogram shows peak at 170-175cmQuick Reference
Verify these results in the calculator above.
Odd count
Median of 1,3,5,7,9
5
Even count
Median of 1,3,5,7
4
Single mode
Mode of 1,2,2,3,3,3
3
Bimodal
Mode of 1,2,2,3,3
2 and 3
No mode
Mode of 1,2,3,4,5
No mode
Outlier resistant
Median of 1,2,3,4,100
3
vs Mean
Mean of same data
22
Midrange
Midrange of 1,2,3,4,100
50.5
Tips & Shortcuts
The median is always in the sorted dataset — if you need to verify, sort your numbers manually and count to the middle. The calculator shows the full sorted list in results.
If all values appear once, "No mode" is a correct and meaningful result — it means no value is more common than any other, indicating a roughly uniform distribution.
Compare mean and median: if they differ substantially, the distribution is skewed and median is the better typical value to report.
For bimodal data (two modes), investigate whether the data comes from two distinct subgroups. Two modes often signal a need to analyze the groups separately.
The Frequency Table tab is faster for large grouped datasets — enter value=80, count=15 instead of typing 80 fifteen times.
Common Mistakes
Calculating median without sorting first
Median requires sorted data. Finding the middle index of unsorted values gives the wrong answer. The calculator sorts automatically, but if computing by hand, always sort ascending first.
Assuming a dataset must have exactly one mode
A dataset can have no mode (all values unique), one mode, two modes (bimodal), or many modes. "No mode" is a valid result, not an error.
Confusing median with mean
The median is the middle value of sorted data — not the average. For 1,2,10: mean=4.33 but median=2. They only coincide for symmetric distributions.
Using mode for continuous data where all values are unique
For continuous measurements with high precision (3.1416, 3.1417, 3.1418), every value is likely unique and mode = "No mode." Use the histogram modal class instead.
Forgetting to handle even vs odd count for median
For even count, average the two middle values. For [2,4,6,8]: median = (4+6)/2 = 5, not 4 or 6. The calculator handles this automatically.
How It Works
The calculator sorts all values, identifies the middle position(s), and computes the median. For odd count: median = middle value. For even count: median = average of the two middle values. Q2 = median. Q1 = median of the lower half. Q3 = median of the upper half. All quartiles display in the results panel.
Odd: median=middle value | Even: median=avg of two middle valuesOdd [1,3,5]: median=5 | Even [1,3,5,7]: median=(3+5)/2=4The calculator counts occurrences of each value. If one value has the highest count: single mode. If two values tie: bimodal. If all values appear equally: no mode (reported as "No mode"). All modes list together. For 1,2,2,3,3: bimodal, modes are 2 and 3. Bimodal data often signals two distinct subgroups worth investigating separately.
Mode = value(s) with highest frequency countBimodal [1,2,2,3,3]: modes=2 and 3 | All unique: No modeWhen data is right-skewed, mean exceeds median. The calculator shows both. For [1,2,3,4,100]: mean=22, median=3. The single outlier (100) barely affects the median but pulls the mean far above where 4 of the 5 values cluster. Rule of thumb: if mean/median ratio exceeds 1.1, data is meaningfully right-skewed and median is the better summary.
Skew indicator: mean/median ratio | ratio > 1.1 = right-skewed[1,2,3,4,100]: mean=22, median=3 → strongly right-skewedSwitch to the Frequency Table tab. Enter each unique value and its frequency count. The median is computed by finding the cumulative frequency that crosses n/2. Example: 70(×8), 75(×10), 80(×7), total n=25, n/2=12.5. Cumulative: 8, 18 — crosses 12.5 in the 75 group → median=75. This avoids entering 25 individual values.
Cumulative freq method: find value where Σfreq reaches n/270×8, 75×10, 80×7 → cumulative crosses n/2 at 75 → median=75For continuous measurements (heights, weights, times), exact mode is often "No mode" because every value is unique. The calculator renders a histogram in the Descriptive Stats tab. The tallest bar identifies the modal class — the range containing the most values. This modal class is more informative than a single-value mode for continuous data.
Modal class = bin with highest bar in histogramHeights data: no exact mode, histogram peaks at 170-175 cm binQuick Reference
Verify these in the calculator above.
Odd count
Median of [1,3,5,7,9]
5
Even count
Median of [1,3,5,7]
4
Single mode
Mode of [1,2,2,3,3,3]
3
Bimodal
Mode of [1,2,2,3,3]
2 and 3
No mode
Mode of [1,2,3,4,5]
No mode
Outlier effect
Median of [1,2,3,4,100]
3
vs Mean
Mean of same data
22
Midrange
Midrange of [1,2,3,4,100]
50.5
Tips & Shortcuts
The median is always determinable from sorted data — if you need to verify, sort your numbers manually and count to the middle position.
"No mode" is a correct and meaningful result — it means no value is more common than any other, indicating roughly uniform distribution.
Compare mean and median: if they differ substantially, the distribution is skewed and median is the better typical value to report.
For bimodal data (two modes), investigate whether the data comes from two distinct subgroups — two modes often signal a need to analyze the groups separately.
The Frequency Table tab is faster for large grouped datasets — enter value=80, count=15 instead of typing 80 fifteen times.
Frequently Asked Questions
Sort all values. If count is odd, median = the middle value. If count is even, median = average of the two middle values. Example (odd): 1,3,5,7,9 → median = 5. Example (even): 1,3,5,7 → median = (3+5)/2 = 4. The calculator sorts and highlights the middle position automatically.
Mode is the value(s) that appear most frequently. If all values appear equally often, there is no mode. If two values tie for most frequent, the data is bimodal. Enter the numbers and the calculator lists all modes. For the dataset 1,2,2,3,3,3: mode = 3. For 1,2,3,4: no mode.
Yes. Bimodal data has two modes; multimodal has more. The calculator lists all modes. A dataset of 1,1,2,2,3 has two modes: 1 and 2. This often indicates two distinct subgroups in the data. The histogram view helps visualize multimodal distributions.
Median is resistant to outliers. For 1,2,3,4,100: median = 3, mean = 22. The single outlier (100) barely affects the median but pulls the mean far from where 4 of the 5 values cluster. Income, house prices, and response times are typically reported as medians.
Average the two middle values. For 4,6,8,10 (four values): middle two are 6 and 8. Median = (6+8)/2 = 7. For 2,4,6,8,10,12: middle two are 6 and 8. Median = 7.
Enter all values (or use the Frequency Table tab for large grouped datasets). The calculator counts occurrences of each value and identifies the maximum frequency. For large continuous datasets, mode is less meaningful — use the histogram to find the modal region or class.
Midrange = (min + max) / 2 — the average of the two extreme values. It is highly sensitive to outliers. Median = middle sorted value — resistant to outliers. For 1,2,3,4,100: midrange = (1+100)/2 = 50.5, median = 3. The calculator shows both in the results.
Related Calculators
Variance Calculator
Calculate population and sample variance.
Weighted Average Calculator
Calculate weighted mean with custom weights.
Simple Interest Calculator
Calculate interest earned on a principal without compounding.
Present Value Calculator
Find the current value of a future sum of money.
Basic Calculator
Fast arithmetic: add, subtract, multiply, divide.
Random Number Generator
Generate random integers within any range.