Skip to content

Mean, Median, Mode, Range Calculator

The four classic averages and spreads, worked out step by step.

Separate values with commas, spaces or new lines.

Mean

18

Median 18.5 · Mode 23 · Range 13

Mean (average)
18
Median
18.5
Mode
23 (3 times)
Range
13
Minimum
10
Maximum
23
Count
8
Sum
144
Quartiles Q1, Q3
14, 23
Interquartile range
9
Outliersbeyond 1.5 × IQR
None
Geometric mean
17.252538
Root mean square
18.654758

Quartiles use the median of each half (the median itself is left out when the count is odd).

How it was calculated

  1. Sorted: 10, 12, 16, 16, 21, 23, 23, 23
  2. Mean: sum / count = 144 / 8 = 18
  3. Median: 8 values (even), so average the middle two, #4 and #5: (16 + 21) / 2 = 18.5
  4. Mode: 23 appears 3 times, 16 appears 2 times. Most frequent: 23
  5. Range: largest - smallest = 23 - 10 = 13
ValueFrequencyRelativeDeviation (x - mean)(x - mean)²Frequency × (x - mean)²
10112.5%-86464
12112.5%-63636
16225%-248
21112.5%399
23337.5%52575

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Math Calculators

All calculators

How the mean, median, mode, range calculator works

The mean is the ordinary average: add the numbers and divide by how many there are. The median is the middle value once the numbers are sorted; with an even count it is the average of the two middle values. The mode is the value that appears most often, and a list can have several modes or none. The range is the largest value minus the smallest.

The mean uses every value, so a single very large or small number can pull it a long way. The median ignores extremes, which is why it is used for things like house prices and incomes. Compare the two: if the mean is well above the median, the data has a long upper tail.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

Sort them and average the two middle values. For 3, 5, 8, 10 the median is (5 + 8) / 2 = 6.5.

Yes. If two values tie for most appearances the data is bimodal, and both are modes. If every value appears once, there is no mode.

Use the mean for symmetric data without outliers, the median when there are extreme values, and the mode for categories or the most common result.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.