Mean, Median, Mode, Range

Basic descriptive statistics.

7
Count
33
Sum
4.7143
Mean
4
Median
7
Mode
8
Range

How to Use the Mean Median Mode Calculator

  1. Enter your numbers into the input field, separated by commas (e.g., 4, 7, 13, 2, 7, 9).
  2. Click **Calculate** to instantly compute all four statistics.
  3. Review the **Mean** — the arithmetic average of all your values.
  4. Review the **Median** — the middle value of your sorted data set.
  5. Review the **Mode** — the number(s) that appear most often (displayed as 'No mode' if all values are unique).
  6. Review the **Range** — the difference between the largest and smallest values, which tells you how spread out your data is.

Formulas for Mean, Median, Mode, and Range

Mean = (x₁ + x₂ + … + xₙ) / n

Median = x₍ₙ₊₁₎/₂  [if n is odd]
Median = (x₍ₙ/₂₎ + x₍ₙ/₂₊₁₎) / 2  [if n is even]

Mode = value(s) with the highest frequency

Range = x_max − x_min

Each measure of central tendency uses its own formula. All four apply to a data set of n values.

Mean sums all values and divides by the count.

Median requires sorting the values first, then selecting the middle element (or averaging the two middle elements for an even-sized set).

Mode is found by identifying the value(s) that appear most frequently. A set may have one mode (unimodal), two modes (bimodal), more (multimodal), or no mode if all values are unique.

Range measures spread — the distance from the smallest to the largest value.

  • x₁, x₂, …, xₙ — The individual values in the data set, listed in any order for mean/mode/range, but sorted in ascending order for the median calculation.
  • n — The total count of values in the data set.
  • x₍ₙ₊₁₎/₂ — The single middle value when the data set is sorted and n is odd — its position is (n + 1) / 2.
  • x₍ₙ/₂₎ and x₍ₙ/₂₊₁₎ — The two middle values when the data set is sorted and n is even — their positions are n/2 and n/2 + 1. Their average is the median.
  • x_max — The largest (maximum) value in the data set.
  • x_min — The smallest (minimum) value in the data set.

Worked Example: Student Quiz Scores

Data set: 72, 85, 90, 85, 78, 92, 85, 68, 90, 75 (n = 10 values)
**Mean:**
Sum = 72 + 85 + 90 + 85 + 78 + 92 + 85 + 68 + 90 + 75 = 820
Mean = 820 / 10 = **82**

**Median (sort first):**
Sorted: 68, 72, 75, 78, 85, 85, 85, 90, 90, 92
n = 10 (even), so average the 5th and 6th values.
Median = (85 + 85) / 2 = **85**

**Mode:**
85 appears 3 times — more than any other value.
Mode = **85**

**Range:**
x_max = 92, x_min = 68
Range = 92 − 68 = **24**

Result: Mean = 82 | Median = 85 | Mode = 85 | Range = 24

What Your Result Means

The mean of 82 tells you the average quiz score across all 10 students. The median of 85 shows the middle score when all scores are ranked — meaning half the class scored 85 or above and half scored 85 or below. The mode of 85 confirms it was the single most common score. The range of 24 reveals a moderate spread between the lowest score (68) and the highest (92), indicating some variation in student performance but no extreme outliers.

Understanding Mean, Median, Mode

Understanding Measures of Central Tendency

Mean (Arithmetic Average)

The mean is the most widely used measure of center. It is sensitive to outliers — a single very high or very low value can pull the mean away from the bulk of the data. For example, if one student scored 20 on a quiz, the class mean would drop significantly even if everyone else scored around 85.

Median

The median is the middle value of a sorted data set and is resistant to outliers. It is often preferred for skewed distributions. For instance, household income data in economics typically uses the median because a few billionaires would inflate the mean drastically. When n is even, the median is the average of the two central values.

Mode

The mode identifies the most frequently occurring value. It is the only measure of central tendency that can apply to non-numerical (categorical) data (e.g., the most popular color or most common surname). A data set can be:

  • Unimodal — one mode
  • Bimodal — two modes
  • Multimodal — more than two modes
  • No mode — all values appear equally (usually just once)

Range

The range is the simplest measure of spread (dispersion). It only uses two values (max and min), so it is easy to calculate but highly sensitive to outliers. For a more robust measure of spread, consider the interquartile range (IQR) or standard deviation.

When to Use Each Measure

| Measure | Best Used When | |---|---| | Mean | Data is symmetric with no significant outliers | | Median | Data is skewed or contains outliers | | Mode | Identifying the most common category or value | | Range | Quick snapshot of data spread |

Together, these four statistics give you a solid descriptive summary of any data set.

Common Mistakes

  • **Forgetting to sort the data before finding the median.** The median depends on rank order — computing it on unsorted data gives the wrong answer.
  • **Confusing mean and median.** For skewed data sets (e.g., salaries, home prices), the mean and median can differ substantially. Always consider which is more appropriate.
  • **Assuming every data set has exactly one mode.** Data sets can have no mode, one mode, or multiple modes depending on frequency distribution.
  • **Using range as the sole measure of spread.** Range only reflects the two extreme values and ignores all data in between. It is misleading when outliers are present.
  • **Dividing by the wrong n.** For the mean, divide by the total number of values — not the number of unique values or the number of pairs.
  • **Averaging the wrong two values for an even-count median.** Only the two central positions (n/2 and n/2 + 1 after sorting) are averaged, not any other pair.

Common Questions About Mean, Median, Mode

How is the mean affected by outliers?

The mean is highly sensitive to outliers because every value contributes equally to the sum. Adding one extreme value — whether very high or very low — shifts the mean significantly. For example, adding a score of 5 to a set of scores in the 80s will lower the mean noticeably while barely changing the median.

What is the relationship between mean, median, and skewness?

In a perfectly symmetric distribution, mean = median = mode. In a **right-skewed** (positively skewed) distribution, the mean is pulled to the right of the median by high-value outliers (mean > median). In a **left-skewed** (negatively skewed) distribution, the mean is pulled left (mean < median). Comparing mean and median is a quick way to detect skew.

How do I calculate the weighted mean?

A weighted mean accounts for the fact that some values are more important than others. Multiply each value by its weight, sum the results, then divide by the total weight: Weighted Mean = Σ(wᵢ × xᵢ) / Σwᵢ. For example, if a final exam is worth twice the weight of a quiz, the exam score is multiplied by 2 before averaging.

What is the interquartile range (IQR) and how does it differ from range?

The IQR is the difference between the 75th percentile (Q3) and the 25th percentile (Q1) of a sorted data set: IQR = Q3 − Q1. Unlike the range, the IQR ignores the extreme values entirely and focuses on the middle 50% of the data, making it far more resistant to outliers as a measure of spread.

Frequently Asked Questions

What is the difference between mean and average?

In everyday language, 'average' almost always refers to the arithmetic mean. Technically, there are other types of averages (geometric mean, harmonic mean, weighted mean), but when a teacher or textbook says 'average,' they mean the sum of values divided by the count — which is the mean this calculator computes.

Can a data set have more than one mode?

Yes. If two values tie for the highest frequency, the data set is **bimodal** and both values are modes. Three or more tied values make it **multimodal**. If every value appears exactly once (or the same number of times), the data set has no mode.

Why is the median used for income data instead of the mean?

A small number of extremely high earners can pull the mean income far above what a typical person earns. The median is unaffected by these outliers, so it better represents the income of a 'middle' household. The U.S. Census Bureau, for example, reports **median household income** for this reason.

How do I handle negative numbers in these calculations?

Negative numbers are treated exactly like positive ones. Include them in the sum for the mean, sort them into their correct position (left-most) for the median, and tally their frequency for the mode. The range still equals the maximum value minus the minimum value, which will be a larger positive number if negatives are present.

What if all my values are the same?

If every value in the data set is identical (e.g., all 5s), then the mean, median, and mode all equal that value, and the range equals 0.

Related Calculators

Sources

Only sources that have been reviewed are shown. Unverified citations are never published.

Spotted a calculation error?Report an Error