Expert Reviewed
Prof. Emily Rodriguez, Ph.D. MathematicsUpdated June 1, 2026Our Standards →

Last updated:

Mean Median Mode Calculator

Compute mean, median, mode, range, variance, and standard deviation from comma-separated data sets.

Back to Math

Mean Median Mode Calculator

Ad-FreeAI-Powered

Free online mean, median, mode calculator — compute descriptive statistics instantly with AI-powered insights.

Enter values above to see results.

About This Calculator

Related Articles

📈 Mean, Median & Mode — Complete Guide

Mean
Arithmetic average — sensitive to outliers
Median
Middle value — robust to outliers
Mode
Most frequent value — can be multimodal
Range
Max − Min — spread of data

Measures of Central Tendency

MeasureFormulaBest Used WhenWeakness
Mean (x̄)Σx / nSymmetric, no outliersPulled by extreme values
MedianMiddle value (sorted)Skewed data, outliers presentIgnores magnitude of values
ModeMost frequent valueCategorical data, bimodal distributionsMay not exist or may be multiple
Geometric Mean(x₁×x₂×...×xₙ)^(1/n)Percentages, ratios, growth ratesUndefined for zero/negative values
Harmonic Meann / Σ(1/xᵢ)Rates (speed, price/earnings)Distorted by small values

Frequently Asked Questions

When should I use median instead of mean?

Use median when data is skewed or contains outliers. Income data is a classic example: a few billionaires dramatically pull up the mean but leave the median unchanged. The median better represents "typical" income.

What if there is no mode?

If all values appear once, there is no mode. If two values tie for most frequent, the dataset is bimodal. Three or more modes = multimodal. Some distributions (uniform) have no meaningful mode.

How do I find the median of an even dataset?

Sort the data, then average the two middle values. E.g., [2, 5, 7, 9]: median = (5+7)/2 = 6. The median is not always an actual data point.

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

In a right-skewed (positive skew) distribution: mean > median > mode. In left-skewed (negative skew): mean < median < mode. In a symmetric distribution: mean = median = mode.

What does range tell you about data?

Range = maximum − minimum. It's a simple spread measure but extremely sensitive to outliers. A dataset of [1, 2, 3, 4, 100] has range 99, making most values look closely clustered when they're actually not.

What is a weighted mean?

A weighted mean assigns different importance to different values: x̄ₓ = Σ(wᵢ × xᵢ) / Σwᵢ. Used in GPA calculation (each course has a different credit-hour weight) and portfolio returns.

Explore All Math Calculators

Reviewed by CalculatorApp.me Math Team

Mean, Median & Mode Calculator — Complete Guide

Measures of central tendency — when to use each, outlier effects, and real-world interpretation.

Arithmetic Mean

M

Median (middle)

Mo

Mode (most frequent)

Trimmed Mean

What Is Central Tendency?

Central tendency identifies the center or typical value of a dataset. The three primary measures are mean (arithmetic average), median (middle value), and mode (most frequent value). Each captures a different aspect of "center."

The mean (x̄ = Σxᵢ/n) uses every data point and is the most common average, but is sensitive to outliers. The median is the middle value when data is sorted — it resists outliers and is preferred for skewed distributions like income or house prices. The mode is the only measure applicable to categorical data (e.g., most popular color).

For symmetric distributions (like normal), mean ≈ median ≈ mode. For skewed data, they diverge: in a right-skewed distribution (like income), mean > median > mode. Understanding which measure to use — and why — is fundamental to data literacy.

Formulas & Computation Methods

Arithmetic Mean
Sample Mean:
  x̄ = (x₁ + x₂ + ... + xₙ) / n
  x̄ = Σxᵢ / n

Population Mean:
  μ = Σxᵢ / N

Example: {3, 7, 7, 19, 24}
  x̄ = (3+7+7+19+24)/5
  x̄ = 60/5 = 12

Weighted Mean:
  x̄ᵤ = Σ(wᵢ × xᵢ) / Σwᵢ
  GPA example:
    A(4)×3cr + B(3)×4cr + A(4)×3cr
    = (12+12+12)/10 = 3.6 GPA

Geometric Mean (growth rates):
  GM = (x₁ × x₂ × ... × xₙ)^(1/n)
  Returns: +10%, −5%, +20%
  GM = (1.1×0.95×1.2)^(1/3) = 1.0772
  → 7.72% avg annual return

The arithmetic mean is the 'balance point' of a dataset. It uses ALL values, which makes it sensitive to outliers. The geometric mean is better for percentages and growth rates.

Median
Finding the Median:
  1. Sort data ascending
  2. If n is odd: median = middle value
     position = (n+1)/2
  3. If n is even: median = average of
     two middle values
     positions = n/2 and n/2+1

Example (odd n=5): {3, 7, 7, 19, 24}
  Sorted: 3, 7, [7], 19, 24
  Position: (5+1)/2 = 3rd value
  Median = 7

Example (even n=6): {3, 7, 7, 19, 24, 30}
  Sorted: 3, 7, [7, 19], 24, 30
  Positions: 3rd and 4th
  Median = (7+19)/2 = 13

With outlier: {3, 7, 7, 19, 24, 1000}
  Mean = 176.7 (skewed by 1000!)
  Median = 13 (barely changed)
  → Median is ROBUST to outliers

The median is the 50th percentile — exactly half the data falls below it. It's preferred for skewed data (income, house prices, reaction times) because outliers can't distort it.

Mode
Finding the Mode:
  Count frequency of each value
  Mode = value(s) with highest frequency

Unimodal: {1, 2, 2, 3, 4}
  Mode = 2 (appears twice)

Bimodal: {1, 2, 2, 3, 3, 4}
  Modes = 2 and 3 (both appear twice)

Multimodal: {1,1, 2,2, 3,3}
  Three modes: 1, 2, 3

No mode: {1, 2, 3, 4, 5}
  All values appear once
  (some say 'no mode')

Categorical data (mode only option):
  Colors: {red, blue, blue, green, red,
           blue, green}
  Mode = blue (3 occurrences)
  Mean/median don't apply here

For grouped/continuous data:
  Modal class = class with highest freq
  Mode ≈ L + [(f₁−f₀)/(2f₁−f₀−f₂)] × h

Mode is the only central tendency measure for categorical (nominal) data. It's also used in fashion ('à la mode' = in style), reflecting 'what's most common.'

Other Averages
Trimmed Mean (robust):
  Remove top/bottom k% of data
  Calculate mean of remaining
  Olympic scoring: drop highest
  and lowest judge (trimmed mean)

Harmonic Mean (rates):
  HM = n / Σ(1/xᵢ)
  Average speed: 60mph out, 40mph back
  HM = 2/(1/60 + 1/40) = 48 mph
  NOT simple mean of 50 mph!

Geometric Mean (growth):
  GM = (∏xᵢ)^(1/n)
  Investment returns, population growth
  Always ≤ Arithmetic Mean

Midrange:
  (max + min) / 2
  Quick but not robust

Relationship (for positive data):
  Harmonic ≤ Geometric ≤ Arithmetic
  Equal only when all values equal
  Called the AM-GM-HM inequality

Different averages suit different data types. Harmonic mean for rates, geometric mean for growth/compounding, trimmed mean for outlier-resistant averaging. Know which one to use for your context.

When to Use Each Measure

SituationBest MeasureWhyExample
Symmetric data, no outliersMeanUses all values, most efficientTest scores (bell curve)
Skewed data or outliersMedianNot affected by extremesHousehold income, home prices
Categorical dataModeOnly option for non-numericMost popular product, favorite color
Growth rates / returnsGeometric MeanHandles compounding correctlyInvestment returns, GDP growth
Speed / rate averagesHarmonic MeanCorrect for ratesAverage driving speed
Outlier-prone continuousTrimmed MeanRemoves extreme valuesOlympic judging, salary data
Highly discrete dataModeShows most commonShoe sizes, class sizes
Small sample, unknown dist.MedianRobust with few data pointsPilot study results

Skewness & Central Tendency Relationship

Distribution ShapeRelationshipReal-World ExampleBest Measure
Symmetric (normal)Mean ≈ Median ≈ ModeHeights, IQ scores, blood pressureMean (most efficient)
Right-skewed (positive)Mean > Median > ModeIncome, wealth, house prices, city sizesMedian (resists high outliers)
Left-skewed (negative)Mean < Median < ModeAge at retirement, exam scores (easy test)Median (resists low outliers)
BimodalMean between peaksMixed populations (male+female heights)Both modes (report bimodality)
UniformMean = Median, no modeRandom number generator, die rollsMean or median (equivalent)

History of Averages

~3000 BC

Ancient Averaging — Babylonian Astronomy

Babylonian astronomers averaged multiple observations of celestial positions to reduce measurement error. This implicit use of the arithmetic mean predates formal mathematical definition by millennia. Egyptian and Chinese astronomers used similar practices.

1755

Thomas Simpson — Mean as Error Reduction

Thomas Simpson demonstrated mathematically that the arithmetic mean of multiple measurements is more accurate than any single measurement. His 1755 paper in Philosophical Transactions proved averaging reduces random error — a cornerstone of experimental science.

1774

Laplace — Median as Minimizing Absolute Error

Pierre-Simon Laplace showed that the median minimizes the sum of absolute deviations (Σ|xᵢ − m|), while the mean minimizes the sum of squared deviations (Σ(xᵢ − x̄)²). This gave each measure a distinct mathematical justification.

1895

Karl Pearson — Mode & Skewness Definition

Karl Pearson formalized the mode as a central tendency measure and defined Pearson's skewness coefficient: Sk = 3(Mean − Median)/SD. He established the relationship between mean, median, and mode in skewed distributions that statisticians use today.

1920s

Rise of Robust Statistics

As datasets grew, statisticians discovered that the mean is highly sensitive to outliers and contaminated data. This led to development of robust estimators: trimmed means, Winsorized means, and eventually the whole field of robust statistics (Tukey, Huber).

2010s

Big Data & Choosing the Right Average

With big data, the choice of central tendency measure has massive real-world impact. Reporting mean vs. median income changes policy decisions. Amazon response times use percentiles (p50, p95, p99). Data literacy — knowing which average to use — became essential.

Key Research & Data

Myths vs. Facts

The mean is always the best measure of central tendency.

The mean is optimal ONLY for symmetric data without outliers. For skewed data (income, house prices), the median is more representative. For categorical data (favorite color), only the mode applies. No single measure is universally best.

'Average' always means the arithmetic mean.

'Average' is ambiguous. It can refer to mean, median, or mode — all are types of averages. News headlines often exploit this: 'average income' (mean) sounds higher than 'typical income' (median). Always ask which average is being reported.

The median is just the middle number — it's less informative than the mean.

The median is a robust estimator that resists outliers and works for ordinal data. It minimizes sum of absolute deviations (vs. squared for mean). For skewed data, the median better represents the 'typical' value. It's not less informative — it's differently informative.

Every dataset has exactly one mode.

A dataset can have no mode (all values unique), one mode (unimodal), two modes (bimodal), or many modes (multimodal). Bimodal distributions often indicate two overlapping populations. The number of modes is itself informative about data structure.

Frequently Asked Questions

What is the difference between mean, median, and mode?
Mean = sum of all values divided by count (arithmetic average). Median = middle value when sorted (50th percentile). Mode = most frequently occurring value. For symmetric data, all three are approximately equal.
When should I use the median instead of the mean?
Use the median for: skewed distributions (income, house prices, reaction times), ordinal data (satisfaction ratings), data with outliers, or when you want 'what the typical person experiences' rather than 'what's the mathematical balance point.'
Can a dataset have more than one mode?
Yes. Bimodal datasets have two modes (e.g., heights of men and women combined). Multimodal datasets have 3+ modes. If all values appear equally often, technically there is no mode (or every value is a mode).
What is the weighted mean and when do I use it?
Weighted mean assigns different importance to different values: x̄ᵤ = Σ(wᵢxᵢ)/Σwᵢ. Use for GPA (credit-weighted), portfolio returns (asset-weighted), or any average where contributions differ in importance.
How do outliers affect mean vs. median?
Outliers dramatically affect the mean but leave the median almost unchanged. Example: {10,11,12,13,14} → mean=12, median=12. Add outlier 100: {10,11,12,13,14,100} → mean=26.7, median=12.5. Mean jumped 123%, median barely moved.
What is the geometric mean and when should I use it?
The geometric mean = (x₁×x₂×...×xₙ)^(1/n). Use for: average growth rates, investment returns, ratios, and any data that multiplies rather than adds. It's always ≤ arithmetic mean. Never use for data containing zero or negative values.
What is the harmonic mean used for?
The harmonic mean = n/Σ(1/xᵢ). Use for averaging rates: if you drive 60 mph one way and 40 mph back, the average speed is HM = 2/(1/60+1/40) = 48 mph (NOT 50 mph). Always use harmonic mean when averaging speed, productivity, or ratios of different denominators.
How do you find the median for grouped data?
Median = L + [(n/2 − F)/f] × h, where L = lower boundary of median class, n = total frequency, F = cumulative frequency before median class, f = frequency of median class, h = class width.
What is Pearson's relationship between mean, median, and mode?
For moderately skewed unimodal distributions: Mean − Mode ≈ 3(Mean − Median). If mean=100 and median=95, then mode ≈ 100 − 3(100−95) = 85. This empirical rule helps estimate the mode when it's hard to determine directly.
What is a trimmed mean?
A trimmed mean removes the top and bottom k% of values, then calculates the mean of the remaining data. A 10% trimmed mean drops the highest and lowest 10%. It combines the efficiency of the mean with some outlier robustness. Used in Olympic judging.
How does sample size affect the choice of measure?
With very small samples (n < 10), the median is often more reliable because the mean is heavily influenced by any single unusual value. As n increases, the mean becomes more stable (law of large numbers). The mode requires enough data for frequency patterns to emerge.
What is the interquartile mean?
The interquartile mean (IQM) is the mean of data between Q1 (25th percentile) and Q3 (75th percentile) — essentially a 25% trimmed mean. It discards the bottom and top quartiles, providing a robust central tendency measure used in meteorology and quality control.

References

Related Calculators

Explore All Math Calculators

Precision math tools for students, data analysts, and professionals — CalculatorApp.me.

Browse Math Calculators →

See Also