My Calculator

Mean, Median, Mode & Range Calculator

Enter a data set once and instantly get the mean, median, mode, range, and other central tendency statistics — all calculated together.

Separate numbers with commas, spaces, or new lines.

7 values detected

Mean (Average)

18.1429

Median

18

Mode

15

Range

13

Count (n)

7

Minimum

12

Maximum

25

Sum

127

Data Distribution

Step-by-Step Solution

Here's exactly how this answer was calculated, one step at a time.

  1. 1

    List the values and count them

    Data: 12, 15, 15, 18, 20, 22, 25 (n = 7)

    This is your full data set, with n being the total number of values.

  2. 2

    Calculate the mean

    Mean = Σx / n = (12 + 15 + 15 + 18 + 20 + 22 + 25) / 7 = 127 / 7 = 18.1429

    Add up every value, then divide by how many values there are.

  3. 3

    Sort the data and find the median

    Sorted: 12, 15, 15, 18, 20, 22, 25

    With an odd count (7), the median is the single middle value: 18.

  4. 4

    Count how often each value appears to find the mode

    12 appears 1 time, 15 appears 2 times, 18 appears 1 time, 20 appears 1 time, 22 appears 1 time, 25 appears 1 time. The value 15 appears most frequently, so that's the mode.

  5. 5

    Find the range

    Range = Max − Min = 25 − 12 = 13

    Subtracting the smallest value from the largest value gives the total spread of the data.

Final Answer: Mean = 18.1429, Median = 18, Mode = 15, Range = 13

Mean, Median, Mode & Range Calculator

This mean, median, mode and range calculator lets you enter a single data set and instantly get every major measure of central tendency and spread in one place — no need to calculate each statistic separately. Simply type or paste your numbers, separated by commas, spaces, or new lines, and the calculator returns the mean, median, mode, range, minimum, maximum, sum, and count (n) at once. It's built for students, teachers, statisticians, data analysts, and anyone who needs a quick, accurate way to summarize a set of numbers.

Whether you're solving a statistics homework problem, analyzing survey results, checking a grade distribution, or summarizing business data, this free online tool removes the manual work of averaging numbers, sorting values, and counting frequencies by hand.

What is Mean, Median, Mode, and Range?

In statistics, mean, median, and mode are the three most common measures of central tendency — they each describe the 'center' or 'typical value' of a data set in a different way. Range is a measure of spread that shows how far apart the highest and lowest values are.

  • Mean (Average): the sum of all values divided by the number of values.
  • Median: the middle value when the data set is sorted in ascending order.
  • Mode: the value (or values) that appear most frequently in the data set.
  • Range: the difference between the largest and smallest value in the data set.

Mean, Median, Mode & Range Formulas

Here is how each statistic is calculated. Let n be the number of values in the data set and x₁, x₂, ..., xₙ be the individual values.

  • Mean formula: Mean (x̄) = (x₁ + x₂ + ... + xₙ) / n = Σx / n
  • Median formula (odd n): Median = the value at position (n + 1) / 2 after sorting
  • Median formula (even n): Median = average of the two middle values after sorting
  • Mode: the most frequently occurring value(s) — a data set can have one mode (unimodal), two modes (bimodal), more than two modes (multimodal), or no mode if every value occurs equally often
  • Range formula: Range = Maximum value − Minimum value

How to Calculate Mean, Median, Mode, and Range

You can calculate all four statistics manually by following these steps, or simply let this calculator do it instantly:

  • Step 1: List all the values in your data set.
  • Step 2: To find the mean, add up all the values and divide by how many values there are.
  • Step 3: To find the median, sort the values from smallest to largest. If there is an odd number of values, the median is the middle one. If there is an even number of values, average the two middle values.
  • Step 4: To find the mode, count how many times each value appears. The value(s) with the highest frequency are the mode.
  • Step 5: To find the range, subtract the smallest value from the largest value.

Worked Example

Consider the data set: 12, 15, 15, 18, 20, 22, 25.

  • Mean = (12 + 15 + 15 + 18 + 20 + 22 + 25) / 7 = 127 / 7 ≈ 18.14
  • Median = 18 (the middle value once sorted: 12, 15, 15, 18, 20, 22, 25)
  • Mode = 15 (it appears twice, more than any other value)
  • Range = 25 − 12 = 13

When to Use Mean vs Median vs Mode

Choosing the right measure of central tendency depends on your data. The mean is best for data without extreme outliers, since it uses every value but can be skewed by very large or very small numbers. The median is more reliable when a data set has outliers or is skewed, because it isn't affected by extreme values. The mode is most useful for categorical or discrete data where you want to know the most common value, such as the most frequently sold shoe size or the most common exam score.

Common Uses of This Calculator

This mean, median, mode and range calculator is widely used for statistics and math homework, analyzing test scores and grades, summarizing survey or research data, comparing sales or revenue figures, tracking sports or fitness statistics, and quality control in engineering and manufacturing. Because it calculates every central tendency measure at once from a single data set, it saves time compared to computing mean, median, mode, and range separately.

Frequently Asked Questions

How do you calculate the mean, median, and mode?

The mean is the sum of all values divided by the count of values. The median is the middle value after sorting the data set (or the average of the two middle values for an even count). The mode is the value that appears most frequently. This calculator computes all three automatically from your data.

What if a data set has no mode or more than one mode?

A data set has no mode if every value occurs the same number of times. If two or more values share the highest frequency, the data set is bimodal or multimodal, and all of those values are reported as the mode.

What is the difference between range and standard deviation?

Range only looks at the difference between the highest and lowest values, so it's a rough measure of spread. Standard deviation accounts for how every value in the data set differs from the mean, giving a more complete picture of variability. Use our Standard Deviation & Variance Calculator for that.

Can this calculator handle decimal or negative numbers?

Yes. You can enter positive numbers, negative numbers, and decimals, separated by commas, spaces, or new lines, and the calculator will correctly compute the mean, median, mode, and range.

How many numbers do I need to enter?

You can enter as few as one number, though mean, median, mode, and range are most meaningful with several values. There is no upper limit on how many numbers you can enter.