Mean, Median, Mode & Range Calculator

Calculate statistical averages from a dataset.

Basic Statistics

Calculate mean, median, mode, range, and other basic statistics

Enter numbers separated by commas, spaces, or semicolons

Quick Tips

  • • Mean is the average of all values
  • • Median is the middle value when sorted
  • • Mode is the most frequent value
  • • Range shows the spread of data

What Do Mean, Median, Mode, and Range Mean?

These are common ways to summarize a set of numbers:

  • Mean: average value
  • Median: middle value after sorting
  • Mode: most frequent value
  • Range: highest minus lowest

Quick Definitions (One-Liners)

MeasureWhat it tells youBest for
MeanOverall averageBalanced data without extreme outliers
MedianMiddle of the datasetSkewed data or data with outliers
ModeMost common valueMost frequent category/value
RangeSpread (max − min)Quick sense of variability

Formulas

Mean: (x₁ + x₂ + ... + xₙ) / n

Median: middle value after sorting (or average of two middle values if n is even)

Mode: value(s) with highest frequency

Range: max(x) − min(x)

How the Calculator Works (Step-by-Step)

  1. 1
    Clean the input list (remove spaces and invalid entries).
  2. 2
    Sort numbers from smallest to largest.
  3. 3
    Compute mean = sum / count.
  4. 4
    Find median: if count is odd → middle number; if even → average of two middle numbers.
  5. 5
    Find mode: count frequencies and pick the most frequent value(s).
  6. 6
    Compute range = max − min.

Worked Example (Odd Count)

DatasetMeanMedianModeRange
10, 20, 20, 30, 5026202040

Worked Example (Even Count)

DatasetSortedMeanMedianModeRange
2, 4, 8, 102, 4, 8, 1066 (avg of 4 and 8)No mode8

Mode note: Some datasets have no mode (all values appear once). Some have multiple modes (two or more values tied for highest frequency).

Mean vs Median (Outliers Matter)

The mean is sensitive to extreme values (outliers). The median is often better when data is skewed.

Example: 1, 2, 2, 3, 100 → mean gets pulled up, but median stays near the center.

Visual: Outlier Pulls the Mean

Extreme values pull the mean more than the median.

When to Use Which Measure

  • Use mean for balanced datasets (no extreme outliers).
  • Use median for income, house prices, or skewed distributions.
  • Use mode for most common value (popular size, most repeated score).
  • Use range for a quick spread check (but it ignores everything in the middle).

Mean Median Mode FAQs

Q

What is the difference between mean and average?

In everyday language, “average” usually means the mean: sum of values divided by count.

Q

How do you find the median with an even number of values?

Sort the list, take the two middle numbers, and average them.

Q

Can a dataset have more than one mode?

Yes. If two or more values tie for the highest frequency, the dataset is multimodal.

Q

What if every number appears only once?

Then the dataset has no mode.

Q

Does the calculator handle decimals and negatives?

Yes. Mean, median, and range work normally with decimals and negative numbers.

Q

Why can mean be misleading?

Because outliers can pull it away from the typical values. Median is often more robust.

Q

Is range enough to describe spread?

Range is a quick summary, but it only uses min and max. For deeper spread, use variance/standard deviation too.

Q

Do you calculate mean before or after sorting?

Sorting is not required for mean, but it is required for median (and helpful for mode checks).