Mean Median Mode Calculator

Calculate mean, median, mode, variance, and standard deviation with step-by-step solutions.

Separate with commas or spaces

Mean

6.2500

Median

7

Mode

7

Range

12

Variance

13.1875

Std Dev

3.6315

Step-by-Step

Sorted Values

[1, 2, 4, 7, 7, 7, 9, 13]

Mean Calculation

Add all values: 4 + 7 + 13 + 2 + 7 + 1 + 9 + 7 = 50

Divide by count: 50 / 8 = 6.2500

Median Calculation

Even count (8): average of positions 4 and 5: (7 + 7) / 2 = 7

Mode (frequency count)

11)21)41)73)91)131)

How to Use the Mean, Median, and Mode Calculator

This mean median mode calculator (also usable as a mean median mode range calculator, statistics calculator, or central tendency calculator) returns every common descriptive statistic for a dataset in one pass. Paste a list of numbers, and it gives you the arithmetic mean, the median, one or more modes, the range, variance, and standard deviation, along with the sorted list and the exact steps behind each result. All math runs in your browser with no rounding until the final display.

  1. Type or paste your numbers into the input box. Separate them with commas, spaces, tabs, or a mix of all three. Example: 4, 7, 13, 2, 7, 1, 9, 7. The calculator handles decimals, negatives, and lists of any length from 1 value up to several thousand.
  2. Read the six summary tiles at the top: Mean, Median, Mode, Range, Variance, and Standard Deviation. Each updates the instant you edit the input.
  3. Scan the step-by-step panel to see the sorted list, the mean arithmetic (sum divided by count), which position the median came from, and a frequency count of every value so you can verify the mode by eye.
  4. Edit in place to answer "what if" questions. Add or remove a single value and watch how each measure reacts. This is the fastest way to build intuition for how outliers pull the mean but leave the median almost unchanged.

If two or more values tie for the highest frequency, the calculator reports every mode (bimodal or multimodal datasets). If every value appears exactly once, it returns None because a dataset with no repeats has no mode. This is the same convention used in most introductory statistics textbooks.

Mean, Median, Mode, and Range Formulas with Worked Examples

The three measures of central tendency each answer a slightly different question about a dataset. The mean asks "what is the balancing point?", the median asks "what is the middle value?", and the mode asks "what shows up most often?". Here is how to find mean median mode by hand, with a worked example for every formula.

1. Mean (Arithmetic Average)

x̄ = Σxᵢ / n

where Σxᵢ is the sum of all values and n is the count.

Example: [4, 8, 15, 16, 23, 42]
Sum = 4 + 8 + 15 + 16 + 23 + 42 = 108
n   = 6
x̄   = 108 / 6 = 18

The mean uses every value, so it is sensitive to outliers. Swap the 42 for a 200 and the mean jumps from 18 to 44.3, even though five of the six numbers did not change.

2. Median (Middle Value After Sorting)

Step 1: sort the values ascending.
Step 2a (odd n): median = value at position (n + 1) / 2
Step 2b (even n): median = average of the two middle values

Odd example: [3, 1, 9, 7, 5]
Sorted:      [1, 3, 5, 7, 9]   n = 5
Middle position = (5 + 1) / 2 = 3
Median = 5

Even example: [12, 4, 7, 20, 3, 9]
Sorted:       [3, 4, 7, 9, 12, 20]   n = 6
Middle positions = 3 and 4 → values 7 and 9
Median = (7 + 9) / 2 = 8

The median ignores the magnitude of the highest and lowest values. It only cares about their position. That is why it is the standard summary for income, home prices, and any distribution with a long tail.

3. Mode (Most Frequently Occurring Value)

Count the frequency of each distinct value.
The mode is the value (or values) with the highest count.

Unimodal:    [2, 4, 4, 6, 7, 9]        → Mode = 4
Bimodal:     [1, 3, 3, 5, 7, 7, 10]    → Modes = 3 and 7
No mode:     [1, 2, 3, 4, 5]           → every value appears once
Multimodal:  [1, 1, 2, 2, 3, 3, 4]     → Modes = 1, 2, and 3

Unlike the mean and median, the mode can apply to non-numeric data. The most common eye color in a classroom, the most popular pizza topping, or the most frequent complaint category in a support log are all modes.

4. Range (Spread from Lowest to Highest)

Range = max(x) − min(x)

Example: [14, 22, 9, 31, 18]
max = 31, min = 9
Range = 31 − 9 = 22

Range is the simplest measure of spread. It tells you nothing about how the middle values are distributed, only the total span. Pair it with standard deviation for a fuller picture.

5. Weighted Mean (Class Grade Example)

Weighted Mean = Σ(wᵢ × xᵢ) / Σwᵢ

Example: a course grade where each category has a weight.

Category      Score (xᵢ)   Weight (wᵢ)   wᵢ × xᵢ
Homework        92            20            1840
Quizzes         85            15            1275
Midterm         78            25            1950
Final exam      88            40            3520
                              ───           ────
Σwᵢ = 100                     Σ(wᵢxᵢ) = 8585

Weighted Mean = 8585 / 100 = 85.85

A plain mean of the four scores would be (92 + 85 + 78 + 88) / 4 = 85.75, close but not identical. The weighted mean matters when some values count for more than others, such as a final exam worth twice as much as a quiz.

Quick Reference: How Shape Changes the Numbers

These four sample datasets show how the three measures line up (or split apart) for different distribution shapes. Symmetric data puts the mean, median, and mode almost on top of each other. Skewed data pulls them apart in a predictable order.

DatasetShapeMeanMedianMode
2, 4, 4, 5, 6, 6, 8Symmetric5.0054 and 6
1, 2, 2, 3, 3, 3, 12Right-skewed (long upper tail)3.7133
1, 10, 11, 11, 12, 12, 12Left-skewed (long lower tail)9.861112
5, 6, 7, 7, 8, 9, 95Contains a severe outlier19.5777

Notice the last row: one outlier at 95 drags the mean up to 19.57, while the median stays at 7 right where the bulk of the data sits. This is the single biggest reason to report a median alongside a mean for any real-world dataset.

Full Worked Example: All Six Measures on One Dataset

Data: [1, 2, 2, 3, 4]

Mean = (1 + 2 + 2 + 3 + 4) / 5 = 12 / 5 = 2.4
Median = 2 (middle of sorted list)
Mode = 2 (appears twice)
Range = 4 − 1 = 3
Variance (population) = Σ(xᵢ − x̄)² / n
                      = [(1−2.4)² + (2−2.4)² + (2−2.4)² + (3−2.4)² + (4−2.4)²] / 5
                      = [1.96 + 0.16 + 0.16 + 0.36 + 2.56] / 5
                      = 1.04
Std Dev = √1.04 ≈ 1.0198

When to Use Mean vs Median vs Mode (and What Outliers Really Do)

Knowing how to calculate mean median mode is only half the job. The harder skill is picking the right one for the data in front of you. Pick wrong and a single extreme value can make your summary misleading. Here is a working guide to choosing between the three measures of central tendency, with real examples from economics and everyday datasets.

Which Measure Fits Which Data

The rule of thumb most statisticians use:

  • Mean for roughly symmetric numeric data with no extreme outliers. Examples: heights of adults, standardized test scores, daily temperatures in a single month.
  • Median for skewed numeric data or any dataset with outliers. Examples: household income, home sale prices, response times, YouTube video views.
  • Mode for categorical data, ordinal surveys, or when you care about the single most common outcome. Examples: most frequent product returned, most common shirt size sold, most popular payment method.
Data TypeBest MeasureWhy
Adult heights in cmMeanRoughly normal, few outliers
Household incomeMedianRight-skewed by high earners
Home sale pricesMedianMansions pull the mean up
Eye color in a classroomModeNon-numeric, categorical
Shoe sizes stocked by storeModeInventory decisions need the most common size
Quiz scores (0 to 100)MeanBounded and typically symmetric

The Classic Income Example

The US Census Bureau reported 2022 median household income at about $74,580. The mean for the same year was roughly $105,555. That is a $30,000 gap between the two summaries of the same data. The mean is larger because a small number of very high-income households (think $1M+ earners) pull the average up, while the median is fixed at the 50th percentile and barely moves.

If a politician quotes the mean income to argue Americans are doing well, and another quotes the median to argue the middle class is squeezed, both are citing the same dataset. The median is almost always the more honest summary for income, wealth, and home prices because those distributions are strongly right-skewed.

How a Single Outlier Changes Each Measure

Start with a small dataset and watch what happens when one value goes extreme:

DatasetMeanMedianMode
10, 12, 13, 14, 1512.813None
10, 12, 13, 14, 1000209.813None
10, 12, 13, 14, 15, 15, 1513.41415
10, 12, 13, 14, 15, 15, 100001439.91415

Replacing one value with 1000 makes the mean useless as a summary (it jumps by 197), while the median stays at 13 and the mode is unaffected. The mean is the most informative measure when the data behaves. It is the most dangerous measure when the data has a fat tail.

Skewness: What the Order of Mean, Median, and Mode Tells You

A quick way to diagnose the shape of a distribution is to compare the three measures:

  • Mean > Median > Mode: right-skewed (long upper tail). Typical of income, home prices, and internet traffic.
  • Mean < Median < Mode: left-skewed (long lower tail). Typical of age at retirement, exam scores on an easy test, and product lifetimes that mostly fail late.
  • Mean ≈ Median ≈ Mode: approximately symmetric and unimodal, the shape of a normal (bell) distribution.

For a moderately skewed distribution, a useful empirical relationship is Mean − Mode ≈ 3 × (Mean − Median). That is Pearson's rule of thumb, and it lets you estimate one measure when you only have the other two. It stops working for severely skewed or multimodal data, so treat it as a sanity check rather than a formula to rely on.

Range, Variance, and Standard Deviation: Measuring Spread

Central tendency tells you where the middle is. Spread tells you how wide the data is around that middle. Two classes can both average 75 on an exam, but one class might run from 73 to 77 (small standard deviation) and the other from 40 to 100 (large standard deviation). The same average hides a very different teaching problem. Always report at least one measure of spread alongside a measure of center. Standard deviation is the most useful because it is in the same units as the original data, where variance is in squared units and harder to interpret.

Frequently Asked Questions

The mean is the arithmetic average: add every value and divide by the count. The median is the middle value of a sorted list, or the average of the two middle values if the count is even. The modeis the most frequently occurring value (or values). For symmetric data with no outliers, the three are close together and any one of them summarizes the data well. For skewed data such as incomes or home prices, they diverge, and the median usually represents "typical" better than the mean.

Related Calculators