Home
Separate numbers with commas, spaces, or new lines.
Number of decimal places in results.
Display minimum and maximum values.
Display the data set in ascending order.
Display value frequencies.

Understanding Mean, Median, and Mode

The mean, median, and mode are the three main measures of central tendency in statistics. They each describe the "center" of a data set in different ways:

Mean (Average)

The mean is the sum of all values divided by the number of values. It is the most commonly used measure of central tendency and is sensitive to outliers (extreme values).

Mean = (ฮฃx) / n

Where ฮฃx is the sum of all values and n is the number of values.

Median

The median is the middle value when the data set is sorted in ascending order. If there is an even number of values, the median is the average of the two middle values. The median is not affected by outliers and is often used for skewed distributions.

Mode

The mode is the value that appears most frequently in the data set. A data set can have one mode (unimodal), multiple modes (bimodal, trimodal), or no mode if all values appear with the same frequency.

How the Calculator Works

  1. Parse Input: Extracts numbers from your input (comma, space, or newline separated).
  2. Sort Data: Arranges values in ascending order.
  3. Calculate Mean: Sum of all values divided by the count.
  4. Calculate Median: Middle value (or average of two middle values for even counts).
  5. Calculate Mode: Value(s) with the highest frequency.
  6. Calculate Range: Maximum value minus minimum value.
  7. Generate Frequency Table: Counts occurrences of each unique value.
  8. Create Visualizations: Bar chart and pie chart of the frequency distribution.

When to Use Each Measure

  • Use Mean: When data is symmetrically distributed without significant outliers.
  • Use Median: When data is skewed or has outliers (e.g., income data, housing prices).
  • Use Mode: For categorical data or when you need the most common value.

โ“ Mean, Median and Mode Calculator FAQ

What is the mean of a data set?

The mean is the arithmetic average โ€” the sum of all values divided by the number of values. It represents the central value of a data set and is sensitive to outliers.

What is the median of a data set?

The median is the middle value when the data is sorted in ascending order. For an even number of values, it's the average of the two middle values. It is not affected by outliers.

What is the mode of a data set?

The mode is the value that appears most frequently in a data set. A data set can have one mode, multiple modes, or no mode.

What is the range of a data set?

The range is the difference between the maximum and minimum values in a data set. It measures the spread of the data.

How do I enter my data?

Enter numbers separated by commas, spaces, or new lines. Examples: "12, 15, 18, 22" or "12 15 18 22" or each number on a new line.

What if my data set has an even number of values?

When the data set has an even number of values, the median is calculated as the average of the two middle values after sorting.

What if my data set has multiple modes?

The calculator will display all modes. If all values appear with the same frequency, there is no mode.

What is the difference between mean, median, and mode?

Mean is the arithmetic average, median is the middle value, and mode is the most frequent value. Each measure describes the "center" of the data in a different way.

When should I use the median instead of the mean?

Use the median when your data is skewed or has outliers (e.g., income data, housing prices). The median is not affected by extreme values.

Is this calculator free?

Yes, this calculator is completely free to use. No registration or personal data storage is required. All calculations are performed in your browser.