Mean Median Mode

Calculate mean, median, mode, and range instantly with step-by-step solutions. Includes geometric mean, harmonic mean, weighted mean, and visual frequency distributions.

Mean, Median, Mode & Range Calculator

Calculate all measures of central tendency with step-by-step solutions

Enter numbers to calculate statistics

Try one of the example buttons above

Mean • Median • Mode • Range • Geometric Mean • Harmonic Mean • Weighted Mean • Frequency Distribution • Number Line

Free Mean Median Mode Range Calculator

Calculate mean, median, mode, and range instantly with our free online calculator. Get step-by-step solutions, visual number lines, and frequency distributions for any dataset.

What are Measures of Central Tendency?

Measures of central tendency are statistical values that represent the center or typical value of a dataset. The three most common measures are mean, median, and mode. Each one describes a dataset differently and is useful in different situations. Understanding these measures helps you analyze data accurately and make informed decisions.

Mean (Average) Explained

The mean, commonly called the average, is the sum of all values divided by the total number of values. It is the most widely used measure of central tendency.

Arithmetic Mean Formula

x̄ = (x₁ + x₂ + x₃ + ... + xₙ) / n

Where x̄ is the mean, x₁ through xₙ are the individual values, and n is the count of values.

Example: For the dataset [85, 92, 78, 95, 88]

Mean = (85 + 92 + 78 + 95 + 88) / 5 = 438 / 5 = 87.6

Geometric Mean

The geometric mean is the nth root of the product of all values. It is useful for growth rates and proportional data.

Formula: GM = (x₁ × x₂ × x₃ × ... × xₙ)^(1/n)

Example: For [2, 8], GM = (2 × 8)^(1/2) = 16^(1/2) = 4

The geometric mean is ideal for calculating average growth rates, investment returns, and any data involving percentages or ratios.

Harmonic Mean

The harmonic mean is the reciprocal of the arithmetic mean of reciprocals. It is best for rates and speeds.

Formula: HM = n / (1/x₁ + 1/x₂ + 1/x₃ + ... + 1/xₙ)

Example: If you travel 60 mph one way and 40 mph back, the average speed is HM = 2 / (1/60 + 1/40) = 48 mph

Weighted Mean

The weighted mean accounts for different importance levels of values using assigned weights.

Formula: x̄w = Σ(wᵢ × xᵢ) / Σ(wᵢ)

Example: Course grade with assignments (weight 3, score 85) and exam (weight 7, score 92): Weighted mean = (3×85 + 7×92) / (3+7) = 899/10 = 89.9

Median Explained

The median is the middle value when data is sorted in order. It divides the dataset into two equal halves.

How to Find the Median

  • Odd number of values: The median is the exact middle value
  • Even number of values: The median is the average of the two middle values

Example (odd count): [3, 7, 8, 12, 15] → Median = 8 (3rd value)

Example (even count): [3, 7, 8, 12] → Median = (7 + 8) / 2 = 7.5

The median is resistant to outliers, making it a better measure than the mean for skewed data like household incomes or housing prices.

Mode Explained

The mode is the value that appears most frequently in a dataset. A dataset can have one mode, multiple modes, or no mode at all.

Types of Mode

  • Unimodal: One value appears most often. Example: [2, 3, 3, 5, 7] → Mode = 3
  • Bimodal: Two values tie for highest frequency. Example: [2, 3, 3, 5, 5, 7] → Modes = 3 and 5
  • Multimodal: Three or more values share the highest frequency
  • No Mode: All values appear the same number of times. Example: [1, 2, 3, 4] → No mode

Range Explained

The range measures the spread of data by calculating the difference between the maximum and minimum values.

Formula: Range = Maximum Value - Minimum Value

Example: For [12, 25, 8, 42, 17], Range = 42 - 8 = 34

While simple, the range gives a quick sense of data spread. However, it is sensitive to outliers and does not describe how data is distributed within the range.

When to Use Each Measure

SituationBest MeasureReason
Symmetric data with no outliersMeanAll values contribute equally
Skewed data or data with outliersMedianNot affected by extreme values
Categorical dataModeIdentifies the most common category
Growth rates and returnsGeometric MeanAccounts for compounding
Rates and speedsHarmonic MeanProperly averages rates
Different importance levelsWeighted MeanAccounts for weights

How to Calculate Each Measure Step by Step

Calculating the Mean

  1. Add all the numbers together
  2. Count how many numbers there are
  3. Divide the sum by the count

Calculating the Median

  1. Sort all numbers from smallest to largest
  2. If odd count: the middle number is the median
  3. If even count: average the two middle numbers

Calculating the Mode

  1. Count how many times each value appears
  2. The value(s) with the highest frequency is the mode
  3. If all values appear once, there is no mode

Calculating the Range

  1. Find the largest number in the dataset
  2. Find the smallest number in the dataset
  3. Subtract the smallest from the largest

Comparison: Mean vs Median vs Mode

FeatureMeanMedianMode
Affected by outliersYesNoNo
Uses all data pointsYesNoNo
Works with categorical dataNoNoYes
Unique valueAlwaysAlwaysNot always
Best forNormal distributionSkewed distributionFrequency analysis
Mathematical calculationSum / CountMiddle valueMost frequent

Real-World Applications

Education

Teachers use the mean to calculate student averages and the median to understand grade distribution. The mode helps identify the most common score.

Finance

Financial analysts use the geometric mean for investment returns, the median for home prices (since luxury homes skew the mean), and the weighted mean for portfolio returns.

Healthcare

Medical researchers use the mean for clinical trial results, the median for survival rates, and the mode for identifying the most common symptoms or diagnoses.

Sports

Sports statisticians calculate mean scores, median rankings, and use range to measure performance consistency across seasons.

Weather

Meteorologists use mean temperatures for climate data, median rainfall for typical weather patterns, and range for temperature extremes.

Business

Companies use weighted mean for customer satisfaction scores, median for salary benchmarks, and mode for identifying popular products.

Frequently Asked Questions

What is the difference between mean and median?

The mean is the average of all values (sum divided by count), while the median is the middle value when data is sorted. The mean is affected by outliers, but the median is not. For example, in [10, 20, 30, 40, 500], the mean is 120 but the median is 30, showing how one extreme value shifts the mean significantly.

When should I use the median instead of the mean?

Use the median when your data has outliers or is skewed. Common examples include household income, home prices, and age distributions. The median gives a better picture of the typical value when extreme values would distort the mean.

Can there be more than one mode?

Yes. A dataset can be bimodal (two modes), multimodal (three or more modes), or have no mode at all when all values appear equally often. For instance, [1, 1, 2, 2, 3] has two modes: 1 and 2.

What is the geometric mean used for?

The geometric mean is used for data involving growth rates, percentages, and ratios. It provides the correct average for compound growth, such as investment returns, population growth, and inflation rates over multiple periods.

What is the range in statistics?

The range is the difference between the largest and smallest values in a dataset. It measures the total spread of the data. While easy to calculate, it only considers two values and can be misleading if there are outliers.

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

Sort the data, then take the two middle values and average them. For [2, 4, 6, 8], the two middle values are 4 and 6, so the median is (4 + 6) / 2 = 5.

What is the weighted mean?

The weighted mean accounts for the relative importance of each value by multiplying each value by its assigned weight, summing the products, and dividing by the total weight. It is used for GPA calculations, portfolio returns, and survey results.

What is the harmonic mean?

The harmonic mean is the reciprocal of the average of reciprocals. It is calculated as n divided by the sum of 1/x for all values. It is most appropriate for averaging rates, such as speeds or prices per unit.

Why Use Our Mean Median Mode Range Calculator

Our calculator provides instant, accurate results for all measures of central tendency in one place. Simply enter your data and get the arithmetic mean, median, mode, range, geometric mean, harmonic mean, and weighted mean simultaneously. Features include a visual number line showing data distribution, frequency bar charts, color-coded results, and detailed step-by-step solutions for each calculation. Whether you are a student, teacher, researcher, or professional, this tool makes statistical analysis fast and straightforward.