Mean Median Mode Calculator

Enter your data and see the mean, median and mode together — with the working shown, not just the answer.

Try sample:
9 values
Standard deviation formula

Core Averages & Spread (n = 9, Sum = 838)

Mean (x̄)

93.111

Median

45

Mode

No mode

None

Range

442

38 to 480

Right-skewed: an upper outlier pulls the mean (93.11) above the median (45), so the median better represents a typical value.

Outlier impact: Removing outlier 480 changes the mean from 93.11 to 44.75 (closer to the median of 45).

Min: 38Solid blue = Mean (93.11) • Dashed green = Median (45) • Dotted amber = ModeMax: 480
Visualize this exact dataset in a full chart:

Count (n)

9

Sum (Σx)

838

Minimum

38

Maximum

480

Q1 (25th %)

42

Q3 (75th %)

49

IQR (Q3 − Q1)

7

Sample SD (s)

145.145

Quartile method: Inclusive linear interpolation (R type 7 / Excel PERCENTILE.INC). Outliers flagged outside [Q1 − 1.5×IQR, Q3 + 1.5×IQR].

Step-by-Step Working

Toggle steps

1. Sort the values in ascending order

38, 41, 42, 44, 45, 47, 49, 52, 480

2. Calculate the Mean (sum ÷ count)

Sum = 38 + 41 + 42 + 44 + 45 + 47 + 49 + 52 + 480 = 838

Mean = 838 ÷ 9 = 93.1111

3. Find the Median (odd count n = 9)

Middle position = (n + 1) ÷ 2 = (9 + 1) ÷ 2 = position 5 → Median = 45

4. Count duplicates for Mode & Range

Mode: Every value occurs once — No mode

Range = Max − Min = 480 − 38 = 442 | IQR = 49 − 42 = 7

Mean, Median and Mode Explained

In descriptive statistics, the word “average” can refer to three distinct measures of central tendency. Looking at all three side by side reveals far more about a dataset than reporting a single number in isolation:

Mean (the arithmetic average)

The arithmetic mean (x̄ for a sample, μ for a population) sums every value and divides by the total number of observations: x̄ = (Σx) ÷ n. Physically, the mean acts as the center of gravity on a number line — every observation contributes proportionally to its distance from the center, which makes the mean ideal for symmetric measurements but sensitive to extreme values.

Median (the middle value)

The median splits your sorted dataset into a lower 50% and an upper 50%. When the count n is odd, the median is the single value at position (n + 1) ÷ 2. When n is even, there is no single middle item, so you average the two central values at positions n ÷ 2 and (n ÷ 2) + 1. Because only rank order matters in the middle, doubling the largest number in your list leaves the median completely unchanged.

Mode (the most frequent value)

The mode is the value that appears with the greatest frequency. Unlike the mean and median, the mode is not guaranteed to be unique — or even to exist! This calculator classifies every dataset into one of four explicit states: Unimodal (one clear winner), Bimodal (two values tied for highest count), Multimodal (three or more tied peaks), or No mode when no value repeats.

Mean vs Median: Which Should You Use?

When writing a lab report, business summary, or classroom explanation, pick your primary measure of center using these five criteria:

DimensionMean (x̄)Median
Uses every exact number?Yes — every value changes the sum.No — depends only on the middle rank(s).
Resistance to outliersLow — pulled strongly toward extreme values.High — unaffected by extreme tails.
Best distribution shapeSymmetric, bell-shaped, or low-skew data.Right-skewed or left-skewed distributions.
Natural spread partnerStandard deviation (s or σ).Interquartile range (IQR = Q3 − Q1).
Real-world examplesTest averages (without zeros), manufacturing weights.Household income, home prices, page load latency.

How Skew Changes the Three Averages

Comparing the mean and median gives you an instant numerical test for skewness even before looking at a graph. When a dataset has a long upper tail (right-skewed), extreme high observations tug the balance point to the right while the 50th-percentile middle stays anchored near the bulk of the data, producing Mean > Median. When a dataset has a long lower tail (left-skewed), unusually low observations drag the arithmetic average downward, producing Mean < Median. That gap is drawn directly on the horizontal number-line strip inside our calculator — and with one click you can send your numbers to the dot plot maker or the histogram maker to inspect the full tail visually.

Worked Example: Nine Salaries

Consider a small company with nine annual salaries (in thousands of dollars): 38, 41, 42, 44, 45, 47, 49, 52, 480. Eight employees earn between $38k and $52k, while the founder earns $480k:

  • Mean: (38 + 41 + 42 + 44 + 45 + 47 + 49 + 52 + 480) ÷ 9 = 838 ÷ 9 = 93.11 ($93.1k) — higher than eight of the nine people in the room!
  • Median: With n = 9 sorted values, the 5th value is 45 ($45.0k), which sits right in the middle of the typical staff salaries.
  • Outlier check: Here Q1 = 42, Q3 = 49, and IQR = 7, putting the upper Tukey fence at 49 + 1.5(7) = 59.5. Dropping the $480k outlier brings the trimmed mean to $44.75k — almost identical to the $45k median.

Mean, Median, Mode and Range Together

School worksheets almost always pair central tendency with range — which is why students frequently search for a mean median mode range calculator. While mean, median, and mode tell you where the center of your data sits, Range = Maximum − Minimum tells you the total width from the lowest observation to the highest. Because a single outlier inflates the total range just as badly as it inflates the mean, this page also computes the interquartile range (IQR), which measures the spread of the middle 50% of values (Q3 − Q1).

Frequency Tables and Grouped Data

When values repeat dozens of times, multiplying each distinct value x by its frequency count f is much faster than typing every duplicate:

Weighted / Frequency Mean: x̄ = (Σ f · x) ÷ (Σ f)

Paste your two-column counts into the Frequency table tab above (or type value:count pairs like 10:3, 12:5) and the calculator expands the exact cumulative positions for the median and quartiles automatically. If your data is still an ungrouped raw list and you need to construct class intervals first, use our frequency distribution calculator.

Mean Median Mode Calculator FAQ

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

Add all numbers and divide by the count n to get the mean. Sort the list from lowest to highest and take the middle number (or the average of the two middle numbers when n is even) to get the median. Find the value that repeats most often for the mode, and subtract the minimum from the maximum for the range.

How do you find the median when there is an even number of values?

Sort all n numbers in ascending order, locate the two middle positions n ÷ 2 and (n ÷ 2) + 1, add those two numbers together, and divide by 2. For example, in the 8-value list 12, 15, 18, 20, 24, 27, 30, 34, the middle values are 20 and 24, so the median is (20 + 24) ÷ 2 = 22.

Can a dataset have no mode or more than one mode?

Yes. When every number in the list occurs only once, the dataset has no mode (never write 0, because 0 is an actual number). When two distinct values tie for the highest repeat count, the data is bimodal; when three or more tie, it is multimodal.

When should I use the median instead of the mean?

Use the median whenever your data is strongly skewed or contains extreme outliers—such as salaries, home prices, net worth, or customer wait times. Because the median depends only on middle rank order, one extreme value will not drag it away from typical observations.

How does skewness affect the mean, median, and mode?

In a right-skewed distribution with a long upper tail, high values pull the mean above the median, so Mean > Median > Mode is typical. In a left-skewed distribution with a long lower tail, low values pull the mean downward, typically giving Mean < Median < Mode. In symmetric data, all three sit close together.

How do I enter a frequency table or repeated values quickly?

You have two fast options: in the Raw values tab, type value:count pairs such as 10:3, 12:5 (meaning three 10s and five 12s), or switch to the Frequency table tab and paste two-column rows (Value, Count) directly from Excel or Google Sheets.

Which quartile formula does this calculator use?

This calculator uses inclusive linear interpolation (Hyndman–Fan Type 7, identical to R's default quantile() and Excel's PERCENTILE.INC), and flags Tukey outliers outside Q1 − 1.5 × IQR and Q3 + 1.5 × IQR.