Mean, Median, Mode & Range Calculator — Central Tendency Made Simple
Calculate the mean, median, mode, sum, and range from any data set with step-by-step median breakdown for even-numbered datasets.
See it worked out
Example — Data Set 12, 15, 18, 20, 22, 25, 30:
Mean (Average)
20.28571429
Median
20
Mode
No mode (all values unique)
Range
18
Sorted Data
12, 15, 18, 20, 22, 25, 30
Count (n)
7
Sum
142
The formula
x̄ = Σx/n | Median = middle value (sorted) | Range = max − min
- x̄, Median
- Mean & Median
- Mode
- Mode
- Range
- Range
Worked example — Data Set 12, 15, 18, 20, 22, 25, 30
Mean (Average) = 20.28571429
How Mean Median Mode Works
x̄ = Σx/n | Median = middle value (sorted) | Range = max − min
Mean, median, mode, and range are the most fundamental measures of central tendency and spread in descriptive statistics. The mean is the arithmetic average, the median is the middle value when sorted, the mode is the most frequent value, and the range measures the spread between extreme values.
- x̄, Median
- Mean & Median — Mean is the arithmetic average (sum/count), sensitive to outliers. Median is the middle value when sorted, resistant to outliers.
- Mode
- Mode — The most frequently occurring value(s). A dataset can have one mode (unimodal), multiple modes (multimodal), or no mode (all unique values). Useful for categorical data.
- Range
- Range — The difference between the maximum and minimum values. A simple but crude measure of spread, since it only uses two values and is highly sensitive to outliers.
How to Use
- Enter your data set as numbers separated by commas, spaces, or semicolons.
- View the mean, median, mode, and range calculated instantly in the results.
- The sorted data is shown below to help you verify the median calculation visually.
- For even-numbered datasets, the calculator shows the step-by-step median calculation: (middle value 1 + middle value 2) / 2.
- The sum and count are also displayed, useful for statistical reporting and further calculations.
Quick Reference
| Mean (Average) | Sum of all values / count |
| Median (odd count) | Middle value of sorted data |
| Median (even count) | Average of two middle values |
| Mode | Most frequently occurring value |
| No mode | All values appear exactly once |
| Range | Maximum - Minimum |
| Data skewed right | Mean > Median (use median) |
| Data skewed left | Mean < Median (use median) |
Common Uses
- •Business: analyzing average customer spend (mean), typical order value (median), and most popular product (mode) from transaction data
- •Education: computing class average test scores (mean), finding the middle-performing student (median), and identifying the most common score (mode)
- •Real estate: comparing average home prices (mean) vs. median home prices -- the gap between them reveals income or price inequality
- •Healthcare: calculating average patient recovery time (mean) and identifying the most common diagnosis in a hospital (mode)
- •Sports analytics: computing player batting averages (mean), finding the median salary on a team, and identifying the most common score in a game
Understanding the Result
These four descriptive statistics are the foundation of exploratory data analysis. The mean is the most commonly used measure of central tendency, but it has a critical weakness: it is sensitive to outliers. A single extreme value can pull the mean in its direction, giving a misleading picture of a typical value. For example, if nine people earn $50,000 and one person earns $5,000,000, the mean is $545,000 -- which does not represent anyone in the group. The median ($50,000) is far more representative here. The median is preferred for skewed distributions like income, housing prices, and reaction times. The mode is unique among these statistics because it works with categorical data (fruit types, colors, brands) where mean and median are meaningless. The range is the simplest measure of spread but only uses the two most extreme values, making it highly sensitive to outliers. For a more robust measure of spread, use the interquartile range (IQR) available in the statistics calculator. Together, these statistics give a quick but comprehensive overview of any data set.
Worked Examples
Elena, a small business owner, is analyzing daily coffee shop sales for the past week: $342, $298, $415, $389, $352, $1,105, $367. The $1,105 day was during a street festival. She wants to know the average daily sales and whether the mean or median gives a better picture of typical revenue.
data = 342, 298, 415, 389, 352, 1105, 367
Mean = $466.86, Median = $367, Mode = none, Range = $807. Mean is inflated by the $1,105 festival day — median of $367 is the better estimate of daily revenue.
Mean = $466.86, Median = $367. The mean is inflated by $100 due to the single festival day. The median of $367 gives Elena a much better estimate of typical daily revenue for planning purposes. If she used the mean for inventory ordering, she would consistently over-order. She should use the median for daily operations and note the festival day separately.
Mr. Thompson, a math teacher, graded his students' final exams. The scores were: 72, 85, 91, 78, 85, 63, 85, 94, 88, 76. He wants to report the class average, find the middle score, and identify if there is a most common score.
data = 72, 85, 91, 78, 85, 63, 85, 94, 88, 76
Mean = 81.7, Median = 85, Mode = 85 (appears 3 times), Range = 31. The mode of 85 is the most common score, and the median indicates half the class scored above 85.
Mean = 81.7, Median = 85, Mode = 85. The mode of 85 appears three times -- it is the most common score. The median of 85 means half the students scored above 85 and half below. The mean of 81.7 is slightly below the median because one low score of 63 pulled the average down. Mr. Thompson can use these statistics to discuss whether the exam was appropriately challenging.
Raj, a product manager, surveyed customers about how many times they used his app last month. The responses: 15, 2, 8, 42, 7, 3, 12, 5, 0, 6, 4, 11. He needs to understand typical usage to set engagement targets.
data = 15, 2, 8, 42, 7, 3, 12, 5, 0, 6, 4, 11
Sorted: 0, 2, 3, 4, 5, 6, 7, 8, 11, 12, 15, 42. Mean = 9.58, Median = 6.5, Mode = none, Range = 42. Mean is pulled up by the power user with 42 sessions — median of 6.5 better represents a typical user.
Sorted: 0, 2, 3, 4, 5, 6, 7, 8, 11, 12, 15, 42. Mean = 9.58, Median = 6.5. The mean of 9.58 is pulled up by the power user with 42 sessions. The median of 6.5 tells Raj that a typical user opens the app 6-7 times per month. If Raj targets 10 sessions/month as "engaged," more than half of users are currently below that threshold. The range of 42 reveals a massive gap between casual and power users that the product team should investigate.
Frequently Asked Questions
- What if all my numbers are unique?
- When every value appears exactly once, there is no mode. The calculator will display "No mode (all values unique)." Some textbooks say a data set with no repeating values has no mode, while others say every value is a mode. The calculator follows the convention of reporting no mode when all frequencies are equal to 1. In practice, this is common with continuous data like precise measurements.
- How do you find the median with an even number of values?
- With an even number of values, there are two middle numbers. The median is their average: (x + y) / 2. For example, in the sorted set [2, 4, 6, 8], the median is (4 + 6) / 2 = 5. The calculator shows this step explicitly, displaying both middle numbers and the computed average so you can verify the calculation.
- What is the difference between mean and median?
- The mean is the arithmetic average (sum divided by count). The median is the middle value when sorted. For symmetric distributions, they are close or identical. For skewed data (like income, housing prices, or earthquake magnitudes), the median better represents a typical value because it is not pulled by extreme outliers. When reporting statistics, both the mean and median are often provided -- the gap between them is itself informative about skewness.
- Can a dataset have more than one mode?
- Yes. A dataset with two modes is called bimodal, and one with more than two is multimodal. Bimodal data often indicates two underlying subpopulations. For example, height data combining men and women is bimodal (peaks around 170cm and 183cm). When you see multiple modes, consider whether your data is actually a mix of distinct groups that should be analyzed separately.
- When should I use the median instead of the mean?
- Use the median when your data is skewed, contains outliers, or is ordinal (like survey ratings 1-5). Use the mean when your data is roughly symmetric and you need a value that incorporates every data point. A practical rule of thumb: if the mean and median differ by more than 10%, your data is likely skewed and the median is the safer choice. Government statistics offices typically report median household income (not mean) because income distributions are always right-skewed.
- What does the range tell me that the IQR does not?
- The range tells you the absolute boundaries of your data -- the total span from smallest to largest. This is useful for understanding the full extent of possible values (e.g., "temperatures ranged from -5 to 38 degrees this year"). The IQR ignores extremes and focuses on the middle 50%, which is better for understanding typical variation. Use range for context; use IQR for the statistical measure of spread.
- Does the order I enter data matter?
- No. The calculator automatically sorts your data before computing the median and range. The sum, count, and mean are independent of order. You can enter numbers in any sequence -- messy, sorted, or random -- and the results will be identical.
Pro Tips
- →Always report the median alongside the mean. If they differ significantly, your data is skewed and the median is likely the better measure of "typical."
- →The mode is the only measure of central tendency that works with categorical data. If you need to find the "average" color, brand, or category, the mode is your only option.
- →For even-sized datasets, the median calculation averages the two middle values. This is correct but means the median may not match any actual data point -- that is normal and expected.
- →The range is a quick-and-dirty measure of spread. For a more reliable picture, follow up with the IQR or standard deviation from the related statistics calculators.
- →When data has multiple modes (bimodal or multimodal), it often means your dataset contains two or more distinct subpopulations. For example, test scores with modes at 65 and 90 might indicate two groups of students with different levels of preparation.
Limitations to Know
- •Do not use the mean when your data is heavily skewed or contains extreme outliers — the median is more appropriate in those cases.
- •Do not use the mode for continuous data with many unique values, as it will likely report "no mode" or a meaningless value.
- •Do not use mean/median/mode to compare groups with very different sample sizes without normalizing.
- •Do not use the range alone as a measure of spread if your data has outliers — follow up with IQR or standard deviation.
- •Do not use the mode as a substitute for proper frequency analysis when you need to understand the full distribution of categorical data.
- •This calculator uses standard sample statistics formulas and does not compute confidence intervals, hypothesis tests, or trimmed/weighted means — use the statistics or descriptive-stats calculators for those advanced features.
Cite this calculator
TheCalcUniverse. "Mean, Median, Mode & Range Calculator — Central Tendency Made Simple." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/mean-median-mode-calculator/. Accessed July 24, 2026.
Embed this calculator on your site
You may also like
-
Average Calculator
Find mean, median, min, max, and sum from any data set. Smart parser strips dollar signs, commas, and percent …
-
Standard Deviation
Compute standard deviation, variance, mean, median, range, and coefficient of variation from any dataset. Free…
-
Statistics
Comprehensive descriptive statistics calculator with a dynamic box-and-whisker plot. Computes the five-number …
-
Z-Score Calculator — Free Online Ca
Calculate the Z-score from a raw score, population mean, and standard deviation. Visualizes the result on a st…