Calculate mean, median and mode

Summarize numeric observations with centre, frequency, quartiles, and spread.

freeworks offlinenothing uploaded
ToolMean, Median and Mode Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The mean divides the sum by count, the median selects the sorted centre or averages the middle pair, and every value tied for greatest repeated frequency is a mode. Quartiles are medians of the lower and upper halves after excluding an odd-length centre value.

  • This uses Tukey-style hinges rather than interpolated percentiles.
  • When no value repeats, no mode is reported.

Worked example

A list of eight numbers
A classic textbook set with a repeated mode
Input
											2,4,4,4,5,5,7,9
										
Output
												Count: 8
Mean: 5
Median: 4.5
Mode: 4
Min: 2
Max: 9
Range: 7
Q1: 4
Q3: 6
Iqr: 2
											

When to use this

Classroom datasets compare centre under skew, quality samples summarize interquartile spread, and survey exports identify tied frequent responses.

Edge cases

  • The mean moves under a single extreme outlier while the median may barely change.
  • Two or more values tied at the highest repeated frequency are all reported as modes.
  • Quartile answers can differ from spreadsheet software that uses interpolated percentile definitions.

References