What Are Mean, Median and Mode?
Mean, median, and mode are measures of central tendency used to describe the center or typical value of a dataset. The mean is the arithmetic average, the median is the middle value after the data is sorted, and the mode is the value that appears most often.
They answer different questions. The mean uses every value and is useful for many balanced datasets. The median is less affected by extreme values, while the mode is useful when you want to know which value occurs most frequently.
Mean, Median and Mode Formulas
Mean: Add every value, then divide by the number of values.
Mean = Σx ÷ n
Median: Sort the dataset. If the number of values is odd, use the middle value. If it is even, average the two middle values.
Mode: Find the value or values with the highest frequency. If every value occurs equally often, the dataset has no mode.
How to Calculate Mean, Median and Mode
- List the values. Enter all numerical observations in your dataset.
- Find the mean. Add the values and divide the sum by the number of observations.
- Find the median. Sort the numbers from smallest to largest and locate the middle value. For an even-sized dataset, average the two middle values.
- Find the mode. Count the frequency of each distinct value and identify the value or values that occur most often.
Worked Examples
Example 1: One Clear Mode
Dataset: 4, 7, 7, 10, 12
- Mean: (4 + 7 + 7 + 10 + 12) ÷ 5 = 40 ÷ 5 = 8
- Median: The sorted data is already 4, 7, 7, 10, 12. The middle value is 7.
- Mode: 7 occurs twice, more often than any other value, so the mode is 7.
Answer: Mean = 8, Median = 7, Mode = 7.
Example 2: Even-Sized Dataset with No Mode
Dataset: 2, 4, 6, 8
- Mean: (2 + 4 + 6 + 8) ÷ 4 = 20 ÷ 4 = 5
- Median: The two middle values are 4 and 6, so (4 + 6) ÷ 2 = 5.
- Mode: Every value occurs once, so there is no mode.
Answer: Mean = 5, Median = 5, Mode = No mode.
Mean vs Median vs Mode: Which Should You Use?
| Situation | Useful Measure | Why |
|---|---|---|
| Numerical data without strong outliers | Mean | It uses every observation in the dataset. |
| Skewed data or data with extreme values | Median | The middle position is less sensitive to unusually high or low values. |
| Most common value or repeated choice | Mode | It identifies the value with the highest frequency. |
| Dataset with two equally common peaks | Both modes | A bimodal dataset can legitimately have two modes. |
Example of an outlier: For the home-price dataset $350K, $375K, $380K, $385K, $390K, $395K, $420K, and $1,200K, the median is $387,500 while the mean is $486,875. The unusually expensive property pulls the mean upward, so the median may better describe the middle of this particular dataset.
To measure how spread out values are around their center, use the Standard Deviation Calculator or the Variance Calculator.
No Mode, One Mode and Multiple Modes
A dataset does not always have exactly one mode:
- No mode: No value occurs more often than the others, such as 1, 2, 3, 4.
- One mode (unimodal): One value has the highest frequency, such as 2, 2, 3, 4.
- Two modes (bimodal): Two values share the highest frequency, such as 1, 1, 2, 2, 3.
- Multiple modes: More than two values can share the highest frequency.
Common Mistakes When Using Mean, Median and Mode
Not Sorting Before Finding the Median
The median depends on position, so the values must be ordered first.
Calling Every Unique Value a Mode
If all values occur with the same frequency, there is no mode under the convention used by this calculator.
Ignoring Outliers When Interpreting the Mean
An unusually large or small value can change the mean substantially. Compare the mean with the median when your dataset contains extreme values.
Using “Average” Without Being Specific
In everyday language, “average” often means the arithmetic mean, but mean, median, and mode are all different ways of describing a dataset's center.
How to Check Your Results
- Mean: Multiply the mean by the number of observations. The result should equal the dataset sum, allowing for rounding.
- Median: Sort the values and confirm that the reported median comes from the middle position or the average of the two middle positions.
- Mode: Count each distinct value and confirm that the reported mode or modes have the highest frequency.
How This Calculator Works
The calculator processes the numerical values you enter directly in your browser. It calculates the arithmetic mean from the sum and count, determines the median from the sorted dataset, and identifies the most frequently occurring value or values as the mode. If all distinct values occur equally often, it reports no mode.
Larger samples can reduce sampling variability when the data are collected appropriately, but sample reliability also depends on the sampling method, measurement quality, distribution, and the statistic being estimated.
Frequently Asked Questions
Yes. If no value occurs more frequently than the others—for example, 1, 2, 3, 4—the dataset has no mode under the convention used by this calculator.
Yes. If two values share the highest frequency, the dataset is bimodal. For example, 1, 1, 2, 2, 3 has two modes: 1 and 2.
Sort the values and average the two middle numbers. For 2, 4, 6, 8, the median is (4 + 6) ÷ 2 = 5.
Yes. Because the mean uses every value, a very large or small observation can move it noticeably. The median is generally less sensitive to extreme values.
In most basic statistics questions, “average” refers to the arithmetic mean: add all values and divide by the number of values. In broader everyday language, however, people may use “average” less precisely.
Yes. You can enter decimals, negative values, and scientific notation such as 1e3. Separate values with commas, spaces, tabs, or new lines.