Skip to main content

Calcu.fit

Mean, Median, Mode, and Range Calculator

Use this free calculator to find the mean, median, mode, and range of a list of numbers. Type or paste your numbers, separated by commas, spaces, or line breaks, and click Calculate. You get all four results, plus the sorted list, the count, the sum, and the step-by-step working. It also handles data with more than one mode, or no mode. No signup needed.

How to Use This Calculator

  1. Enter your numbers, separated by commas, spaces, or line breaks. You can use decimals and negative numbers.
  2. Click Calculate.
  3. Read the results and the steps. If your data comes as a frequency table, use the “frequency table” option and enter each value with how many times it appears.

What You’ll See in Your Results

  • Mean (the average)
  • Median (the middle value)
  • Mode (the most frequent value, or values)
  • Range (the difference between the largest and smallest values)
  • Count, sum, minimum, maximum, and midrange
  • The sorted list of numbers
  • Step-by-step working

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

MeasureWhat it isHow to find it
MeanThe averageAdd all the numbers, then divide by how many numbers there are
MedianThe middle valueSort the numbers, then take the middle one (or the average of the two middle ones)
ModeThe value that appears most oftenCount how often each value appears
RangeHow spread out the numbers areLargest value − smallest value

The mean, median, and mode are called measures of central tendency, because they describe the center of the data. The range is a measure of spread.

The Formulas

Mean = Sum of the values ÷ Number of values

Median:

  • If the count is odd: the middle value of the sorted list, at position (n + 1) ÷ 2
  • If the count is even: the average of the two middle values, at positions n ÷ 2 and n ÷ 2 + 1

Mode = The value(s) that appear most often

Range = Maximum − Minimum

Midrange = (Maximum + Minimum) ÷ 2

Examples with Steps

Example 1: An Odd Number of Values

Data: 7, 3, 9, 5, 3, 8, 3

  1. Sort: 3, 3, 3, 5, 7, 8, 9
  2. Mean: the sum is 3 + 3 + 3 + 5 + 7 + 8 + 9 = 38, and 38 ÷ 7 = 5.43
  3. Median: there are 7 values, so the middle one is the 4th, which is 5
  4. Mode: 3 appears three times, more than any other value, so the mode is 3
  5. Range: 9 − 3 = 6
  6. Midrange: (9 + 3) ÷ 2 = 6

Example 2: An Even Number of Values (No Mode)

Data: 4, 8, 6, 5, 3, 2

  1. Sort: 2, 3, 4, 5, 6, 8
  2. Mean: the sum is 28, and 28 ÷ 6 = 4.67
  3. Median: there are 6 values, so take the average of the 3rd and 4th: (4 + 5) ÷ 2 = 4.5
  4. Mode: every value appears once, so there is no mode
  5. Range: 8 − 2 = 6

Example 3: More Than One Mode

Data: 1, 2, 2, 3, 3, 4

  1. Mean: the sum is 15, and 15 ÷ 6 = 2.5
  2. Median: the 3rd and 4th values are 2 and 3, so the median is 2.5
  3. Mode: 2 and 3 each appear twice, so there are two modes, 2 and 3 (this data is called bimodal)
  4. Range: 4 − 1 = 3

Example 4: Data with an Outlier

Data: 20, 22, 21, 23, 95

  • Mean: 181 ÷ 5 = 36.2
  • Median: sorted is 20, 21, 22, 23, 95, so the median is 22
  • Range: 95 − 20 = 75

The value 95 pulls the mean up to 36.2, which is higher than four of the five values. The median of 22 describes the typical value much better. Without 95, the mean of the other four values is 21.5.

Example 5: A Frequency Table

A survey asks 20 people to rate a product from 1 to 5.

Rating12345
Number of people25832
  • Mean: (1×2 + 2×5 + 3×8 + 4×3 + 5×2) ÷ 20 = 58 ÷ 20 = 2.9
  • Median: with 20 values, take the average of the 10th and 11th. Both are 3, so the median is 3
  • Mode: the rating 3 appears most often (8 times), so the mode is 3
  • Range: 5 − 1 = 4

Example 6: Find a Missing Value

Four test scores are 70, 85, 90, and 75, and a fifth test is unknown. You need a mean of 80.

  • Total needed: 80 × 5 = 400
  • Current total: 70 + 85 + 90 + 75 = 320
  • Missing score: 400 − 320 = 80

Example 7: What Do You Need on the Last Test?

You have scores of 82, 88, and 79. You want a mean of 85 after 4 tests.

  • Total needed: 85 × 4 = 340
  • Current total: 82 + 88 + 79 = 249
  • Needed on the last test: 340 − 249 = 91

Example 8: Combining Groups

Class A has 20 students with a mean score of 70. Class B has 30 students with a mean of 80.

  • Combined mean: (20 × 70 + 30 × 80) ÷ 50 = 3,800 ÷ 50 = 76
  • Do not simply average 70 and 80, which would give 75. The larger class counts for more.

Which One Should You Use?

If your data…UseWhy
Is fairly symmetric, with no extreme valuesMeanIt uses every value
Has outliers or is skewed (such as incomes or house prices)MedianIt is not pulled by extreme values
Is in categories (such as favorite color or shoe size)ModeIt shows the most common choice
Needs a measure of spreadRangeIt is simple, but it depends only on the two extremes

For a fuller picture of spread, such as the standard deviation and the interquartile range, see our Statistics Calculator.

Special Cases

  • No mode: if every value appears the same number of times, there is no mode.
  • More than one mode: if two or more values tie for the most frequent, all of them are modes (bimodal for two, multimodal for more).
  • Even number of values: the median is the average of the two middle values, and may not be a value in the data.
  • Negative numbers and decimals: the same rules apply. Sort from the smallest (most negative) to the largest.
  • Only one value: the mean, median, and mode are all that value, and the range is 0.

Tips for Finding Mean, Median, Mode, and Range

  • Always sort the numbers from smallest to largest before you find the median or the range.
  • To find the median of an even set, average the two middle values.
  • Count the values carefully. A missed number changes everything.
  • To check the mean, see that it lies between the smallest and largest values.
  • A quick memory trick: mean is the “average,” median is the “middle” (like the median strip of a road), and mode is the “most” (both start with “mo”).
  • Always give units with your answers if the data has units, such as dollars or centimeters.
  • Report the median when the data is skewed, or report both the mean and the median.

Mean, Median, Mode, Range Calculator vs. Other Tools

  • Statistics Calculator: variance, standard deviation, quartiles, outliers, and more.
  • Average Calculator: the mean of a list of numbers.
  • Weighted Average Calculator: the mean when values have different weights.
  • Probability Calculator: the chance of events.
  • Percentage Calculator: percent change and basic percentage math.
  • Scientific Calculator: general math and functions.

Frequently Asked Questions (FAQ)

How do I find the mean?

Add all the numbers and divide by how many there are. For 7, 3, 9, 5, 3, 8, 3, the sum is 38 and the mean is 38 ÷ 7 = 5.43.

Sort the numbers and take the middle one. If there are two middle numbers, take their average. For 2, 3, 4, 5, 6, 8, the median is (4 + 5) ÷ 2 = 4.5.

 Find the number that appears most often. In 7, 3, 9, 5, 3, 8, 3, the mode is 3.

Subtract the smallest number from the largest. For 3 to 9, the range is 9 − 3 = 6.

Yes. If two or more values tie for the most frequent, they are all modes. If all values appear equally often, there is no mode.

Take the average of the two. If the middle numbers are 4 and 5, the median is 4.5.

 The mean is the average, and it is affected by extreme values. The median is the middle value, and it is not. In 20, 22, 21, 23, 95, the mean is 36.2 and the median is 22.

When your data has outliers or is skewed, such as incomes or house prices.

In everyday use, “average” usually means the mean. In statistics, the median and mode are also kinds of averages.

Yes. In perfectly symmetric data with one mode, they can all be equal.

The average of the smallest and largest values: (min + max) ÷ 2. It is a quick measure of the center, but it is affected by outliers.

Yes. It is free, with no registration and no limits.

It uses exact arithmetic on the numbers you enter. Check that you typed them correctly.

Disclaimer

This calculator is for general informational and educational purposes only. Results depend on the numbers you enter. For research, financial, or other important decisions, consult a qualified professional.