Mean, Median, Mode, Range Calculator

Compute the mean, median, mode, and range of any numeric dataset. Visualize data distribution, see sorted values, and understand central tendency at a glance.

Separate values with commas, spaces, or line breaks. Empty values are ignored.
? Exam Scores: 85,92,78,90,88,76,95,89,84,91
?️ Daily Temps (°F): 72,68,74,70,66,73,71,69,75,67
? Sales ($): 120,135,110,145,130,125,140,115,150,128
? Bimodal: 12,15,15,18,20,20,22,25,25,30
? Uniform: 5,5,5,5,5,10,10,10,10,10
⚠️ With Outlier: 10,12,14,16,18,20,22,24,26,100
Privacy first: All calculations are performed locally in your browser. Your data never leaves your device.

Understanding Descriptive Statistics

Descriptive statistics are the foundation of data analysis. They summarize and organize data so that patterns become visible. The four core measures — mean, median, mode, and range — provide a comprehensive snapshot of any dataset's central tendency and spread. Whether you are analyzing exam scores, climate data, financial returns, or survey responses, these statistics are your first and most essential tools.

For a dataset x1, x2, …, xn:

Mean = (Σ xi) / n   |   Median = middle value (or average of two middle values)   |   Mode = most frequent value(s)   |   Range = max − min

Why Use an Interactive Statistics Calculator?

  • Visual Learning: See exactly where the mean, median, and mode fall on the data distribution. Understand why these measures can differ — and what that tells you about your data.
  • Educational Aid: Verify homework, prepare for exams, or explore statistical concepts interactively. Perfect for students from middle school through university.
  • Data Analysis: Quickly summarize any numeric dataset — from lab measurements to business metrics — without needing spreadsheet software.
  • Research & Reporting: Obtain accurate statistics for reports, presentations, or further analysis. The sorted data and frequency view add extra clarity.

How Each Measure Is Computed

Mean (Arithmetic 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. However, the mean is sensitive to outliers — a single extreme value can skew it significantly. For symmetric distributions with no outliers, the mean is an excellent summary. The formula is:

μ = (x₁ + x₂ + … + xn) / n   (population mean)   or   x = (Σ xi) / n   (sample mean)

Median (Middle Value)

The median is the value that divides the sorted dataset into two equal halves. If there is an odd number of values, the median is the middle value. If even, it is the average of the two middle values. The median is robust to outliers and is the preferred measure of central tendency for skewed distributions (e.g., income data, house prices).

Mode (Most Frequent Value)

The mode is the value that appears most frequently. A dataset may have one mode (unimodal), two modes (bimodal), or more (multimodal). If all values appear with the same frequency, the dataset has no mode. The mode is the only measure of central tendency that can be used with categorical (non‑numeric) data.

Range (Spread)

The range is the simplest measure of variability: it is the difference between the maximum and minimum values. While easy to compute, the range is highly sensitive to outliers and only considers the two extremes. For a more robust measure of spread, statisticians often use the interquartile range (IQR) or standard deviation.

Step‑by‑Step Calculation Example

Worked Example: Exam Scores

Dataset: 85, 92, 78, 90, 88, 76, 95, 89, 84, 91

  1. Sort: 76, 78, 84, 85, 88, 89, 90, 91, 92, 95
  2. Count (n): 10
  3. Mean: (76+78+84+85+88+89+90+91+92+95) / 10 = 868 / 10 = 86.8
  4. Median: (88 + 89) / 2 = 88.5 (since n is even, average the two middle values)
  5. Mode: All values appear once → no mode (or all are modes)
  6. Range: 95 − 76 = 19

Interpretation: The mean (86.8) is slightly lower than the median (88.5), indicating a mild left skew (some lower scores pull the mean down). The range of 19 points shows moderate spread.

Real‑World Applications

  • Education: Teachers use mean, median, and mode to analyze test performance and identify students who need extra support.
  • Business: Analysts track sales averages, median customer spend, and range of transaction values to inform pricing and inventory strategies.
  • Healthcare: Researchers report mean blood pressure, median survival time, and range of lab values in clinical studies.
  • Sports: Coaches and scouts evaluate player performance using batting averages (mean), median salaries, and range of stats.
  • Finance: Investors examine mean returns, median house prices, and the range of stock price movements to assess risk and opportunity.
  • Machine Learning & Data Preprocessing: The range is fundamental for Min-Max Normalization (scaling features between 0 and 1). Meanwhile, mean and median are used to handle missing values via imputation strategies, ensuring your models remain robust and unbiased.
  • Quality Control & Manufacturing: Engineers use the range in X-bar and R control charts to monitor production consistency. A sudden spike in the range alerts teams to process variability before defective units are produced, saving millions in recalls.
  • Meteorology & Climate Science: Climatologists report the mean global temperature anomaly, but they rely heavily on the median when analyzing precipitation data (which is often heavily skewed with dry spells and extreme rainfall events). The mode helps identify the most frequent weather pattern (e.g., typical daily high temperature).

Common Misconceptions and Pitfalls

  • “The mean is always the best average.” False — the mean is highly sensitive to outliers. For skewed data, the median is often more representative.
  • “If there is no mode, the data is useless.” Not at all. Many datasets have no repeated values, and that is perfectly normal.
  • “The range tells you everything about variability.” No — the range only uses the min and max. Two datasets with the same range can have very different distributions.
  • “Mean = Median means the data is perfectly symmetric.” Not necessarily — it is a strong indication, but other distributions (e.g., bimodal) can also have equal mean and median.
  • “The Range is a robust measure of spread.” Absolutely not. The range is the least robust statistic. It only depends on two extreme values. Consider Dataset A: [10, 10, 10, 10, 100] and Dataset B: [10, 90, 90, 90, 100]. Both have the same range (90), yet their internal distributions are wildly different. Always pair the range with the median or mean to get a true picture of your data's variability.
  • “If Mean = Median, the data is perfectly normal.” While often true for symmetric unimodal distributions, this condition alone does not confirm normality. Bimodal or uniform distributions (like [1,2,3,4,5,6] where mean=median=3.5) can also satisfy this equality while looking completely different on a plot. Always visualize your data — which is exactly why this calculator includes an interactive chart.

When to Use Which Measure

Measure Best used when… Sensitive to outliers? Applicable to categorical data?
Mean Data is roughly symmetric and free of extreme values Yes No
Median Data is skewed or contains outliers No No
Mode Finding the most common category or value No Yes
Range Getting a quick sense of spread Yes No

Beyond Numbers: Matching Statistics to Data Types

One of the most overlooked yet critical aspects of descriptive statistics is the level of measurement of your data. Choosing the wrong measure leads to meaningless results:

  • Nominal Data (Categories): Only the mode is applicable. For example, finding the most common eye color or brand preference. Calculating a "mean brand" is nonsensical.
  • Ordinal Data (Ranked Orders): Use the median and mode. For instance, survey responses (e.g., "Very Satisfied" to "Very Dissatisfied"). The median tells you the central rank, while the mean cannot be computed because the gaps between ranks are not uniform.
  • Interval/Ratio Data (Continuous Numbers): All four measures (Mean, Median, Mode, Range) are valid. However, the mean is optimal for symmetric, normal distributions, while the median is the gold standard for skewed distributions (like income or house prices).

This tool empowers you to not just calculate, but to interpret—a core skill for any data analyst or researcher.

Case Study: Salary Analysis

A small company has 10 employees with annual salaries (in thousands): 35, 38, 40, 42, 45, 48, 50, 52, 55, 200. The mean is 60.5 (skewed by the CEO's salary), while the median is 46.5 — a much better representation of the typical employee's salary. The range is 165, which is misleadingly large due to the outlier. This example illustrates why it is essential to consider multiple measures and understand their limitations.

Frequently Asked Questions

In everyday language, "average" often refers to the mean. However, in statistics, "average" can refer to any measure of central tendency — mean, median, or mode. The mean is the arithmetic average, while the median and mode are different types of averages.

If the mean is greater than the median, the distribution is positively skewed (right‑skewed) — there are some high values pulling the mean upward. Examples include income distributions and house prices.

Yes. A dataset with two modes is called bimodal; with three or more, multimodal. Bimodal distributions often indicate that the data comes from two different populations or processes.

Calculations use double‑precision floating‑point arithmetic, providing accuracy to about 15 decimal digits. For most educational and professional applications, this is more than sufficient.

"No mode" means that every value in the dataset appears with the same frequency (usually once). In such cases, the mode is undefined. Some textbooks say the dataset has "no mode" while others say "all values are modes."

Explore authoritative resources like Khan Academy Statistics, Statistics How To, or the classic textbook "Statistics" by Freedman, Pisani, and Purves.
References: Math is Fun — Mean, Median, Mode; Wikipedia: Descriptive Statistics; Moore, D.S. & McCabe, G.P. "Introduction to the Practice of Statistics" (W.H. Freeman).