Mean, median, and mode are the three primary measures of central tendency in statistics. Each describes the center of a data set from a different angle and is computed differently.
Mean = (x1 + x2 + ... + xn) / n Median = middle value when sorted (avg of two middles if n is even) Mode = most frequently occurring value(s) Range = max - min Variance = sum((xi - mean)^2) / n Std Dev = sqrt(Variance)
Finding the median with an even count: Sort the data, then average the two middle values. For {2, 4, 6, 8} (n=4), the median = (4 + 6) / 2 = 5. There is no single middle value; you always average the pair.
These measures form the foundation of descriptive statistics. More advanced analysis such as finding how two variables relate to each other uses the Correlation Coefficient Calculator, which measures the strength of a linear relationship between two data sets.
Mean Median Mode Range Calculator: The Fourth Measure
Range is the simplest measure of spread. While mean, median, and mode describe the center of data, range describes how spread out the values are. The range answers: how wide is the full span of this data set?
Measure
Formula
What It Tells You
Limitation
Range
max - min
Full span of data
Sensitive to outliers
Variance
avg squared deviations
Average spread from mean
Hard to interpret (squared units)
Std Deviation
sqrt(variance)
Typical distance from mean
Affected by outliers
IQR (not here)
Q3 - Q1
Middle 50% spread
Robust to outliers
For the default data set {1, 2, 3, 4, 4, 7, 7, 7, 9}, the range = 9 - 1 = 8. This tells you the data spans 8 units, but it does not tell you where most values cluster. Standard deviation (2.73 for this set) tells you the typical distance from the mean (4.89), which is more informative. When you need to estimate values between known data points in a set, see the Interpolation Calculator.
Mean Median Mode Range Definitions
All four measures are used together to describe a data set. The table below summarizes their definitions, formulas, and best use cases.
Measure
Definition
Example ({1,2,3,4,4,7,7,7,9})
Best Used When
Mean
Sum of values divided by count
44 / 9 = 4.89
Symmetric data, no outliers
Median
Middle value of sorted data
5th value = 4
Skewed data or outliers present
Mode
Most frequently occurring value
7 (appears 3 times)
Categorical or discrete data
Range
Maximum minus minimum
9 - 1 = 8
Quick spread check
In a perfectly normal (bell curve) distribution, mean = median = mode. When these three values diverge, the data is skewed or contains outliers. A mean significantly higher than the median indicates right-skewed data with large outliers. Once you understand the summary statistics for a data set, tools like the Linear Interpolation Calculator help estimate values between known data points in that same set.
Example Calculation
Data set: 4, 7, 2, 9, 4, 1, 7, 7, 3. Find the mean, median, mode, and range.
Sorted: 1, 2, 3, 4, 4, 7, 7, 7, 9 (n = 9)
Mean = (1+2+3+4+4+7+7+7+9) / 9 = 44 / 9= 4.889
Median = 5th value of 9 sorted values= 4
Mode = most frequent (7 appears 3 times)= 7
Range = 9 - 1= 8
Mean 4.889 | Median 4 | Mode 7 | Range 8
Common Mistakes to Avoid
Using mean when data has significant outliers
Outliers pull the mean away from the typical value. Income, house prices, and response times are classic examples. When outliers are present, median gives a more representative center than mean.
Forgetting to sort before finding the median
The median is the middle value of the sorted data, not the value at the middle position of the original unsorted list. Always sort ascending first. With an even count, average the two middle values.
Calling a data set amodal when it has two modes
Some data sets are bimodal (two equally frequent values) or multimodal. If the calculator returns two mode values, the data likely contains two distinct subgroups. Do not average them.
Using population variance when sample variance is required
This calculator divides by n (population variance). For inferential statistics, most textbook formulas use n-1 (sample variance, Bessel's correction). Verify which your problem requires before using the result.
Assuming mean equals median in all distributions
Mean equals median only in a perfectly symmetric distribution. In skewed data, they always differ. When analyzing real-world data, always check both before drawing conclusions about the center.
Frequently Asked Questions
Mean is the arithmetic average: add all values and divide by the count. Median is the middle value when data is sorted: half of values are above it, half below. Mode is the most frequently occurring value. Each measures the center of a data set differently. The mean is sensitive to outliers; the median is not. Mode is the only measure that applies to non-numeric categorical data.
Open educational resource for accessible explanations of mean, median, mode, variance, and standard deviation at the introductory level.
HR
Hassaan Rasheed
Developer and Researcher, CalculatorFlux
Researches and verifies the formulas, methodology, and source data behind each calculator on CalculatorFlux. All tools are built and checked against the cited references before publication.
Last updated: May 2026
When to Use Each Measure
Mean
Use: Symmetric data, no extreme outliers
Avoid: Skewed data, income, house prices
Median
Use: Skewed data, outliers present
Avoid: When arithmetic average is required
Mode
Use: Categorical data, most common value
Avoid: Continuous data with few repeats
Range
Use: Quick spread check
Avoid: When outliers are present
Key Concept
In a perfectly normal (bell curve) distribution, mean = median = mode. When these three values diverge significantly, it is a signal that the data is skewed or contains outliers worth investigating.