Przejdź do treści
Liczbnik

Mean, Median and Mode Calculator

Enter your numbers separated by commas or spaces and the calculator will instantly compute the arithmetic mean, median, and mode. You also get the range, sum, and count — a complete set of descriptive statistics for your data set in one click.

Reviewed byRedakcja Liczbnik
Calculator
Statistical resultsMean18
Median
15.5
Mode
brak
Range
38
Count (n)
6
Sum
108

How we calculate the results

Mean = sum / n. Median: sort the set; for odd n take the middle element, for even n average the two middle elements. Mode: count the frequency of each value and return those with the highest frequency (only if greater than 1). Range = max - min. All results are rounded to 10 decimal places to avoid floating-point errors.

Example: data set {4, 8, 15, 16, 23, 42}

For 4, 8, 15, 16, 23, 42: sum = 108, mean = 18, median = (15+16)/2 = 15.5, mode = none (all values unique), range = 42 - 4 = 38, count = 6.

Frequently asked questions

What is the arithmetic mean and how is it calculated?

The arithmetic mean is the sum of all values divided by the count of values. For {4, 8, 15, 16, 23, 42} the sum is 108 and the mean is 108 / 6 = 18. It is the most widely used measure of central tendency and is used in everyday contexts such as grade averages, average temperature, and average income.

What is the median and when should I use it instead of the mean?

The median is the middle value of a sorted data set. For an odd number of elements it is the single middle value; for an even number it is the average of the two middle values. The median is preferred over the mean when the data contains outliers. For example, if four people earn 3,000 and one earns 100,000, the mean is 22,800 but the median is 3,000 — which better represents the typical earner.

What is the mode and what does "none" mean?

The mode is the value (or values) that appear most frequently in the data set. In {1, 2, 2, 3, 4} the mode is 2, because it appears twice. "None" means every value appears exactly once — the set has no mode. The mode is useful for categorical analysis, for example to find the most popular shoe size sold.

What is the range and what does it tell me?

The range is the difference between the maximum and minimum values: R = max - min. For {4, 8, 15, 16, 23, 42} the range is 42 - 4 = 38. It is the simplest measure of dispersion — a large range means the values are widely spread. Its main weakness is sensitivity to outliers: a single extreme value can distort the picture.

How does the calculator handle an even number of elements?

When the data set has an even number of elements, the median is the average of the two middle values of the sorted set. For {1, 3, 5, 7} the median = (3 + 5) / 2 = 4. The mean is calculated as always: (1 + 3 + 5 + 7) / 4 = 4. In this case both measures are equal, which happens with symmetric distributions.

What happens when there are multiple modes (multimodal data)?

When two or more values share the highest frequency, the calculator lists all of them separated by a semicolon. For example {1, 1, 2, 2, 3} yields modes "1; 2". A bimodal data set can suggest two distinct groups in the data — often a signal for deeper analysis or segmentation.

Indicative result

Results are for informational and educational purposes only. This calculator is not a substitute for professional statistical software.
  • Standard Deviation Calculator

    Calculate standard deviation and variance for a sample or population. Enter numbers separated by commas — instant result, no signup needed.

    Statistics