Math

Mean, Median, Mode & Range Calculator

Calculator Free · Private
Reviewed by: (editorial policy ) · Last reviewed:
Was this calculator helpful?

Descriptive statistics are the foundation of every data-driven discipline — from elementary-school math homework to clinical research, financial reporting, machine-learning feature engineering and quality control on factory floors. This calculator computes the four most-used descriptive measures for any dataset you paste in: the mean (arithmetic average), the median (the middle value when the data is sorted), the mode (the value or values that appear most often), and the range (the spread from maximum to minimum). The formulas are deceptively simple, but knowing which measure to report matters a lot. The mean is the only one of the four that uses every data point, so it is sensitive to outliers — a single extreme value can drag it far from the typical observation. The median ignores the magnitude of outliers and reports the 50th-percentile observation, which is why incomes, house prices and salary data are almost always summarized by their median rather than their mean. The mode is the only measure that works on categorical data (favorite color, blood type, brand preference). The range gives you a quick sense of variability but is dominated by extremes; for a more robust spread metric, prefer the interquartile range (IQR) or the standard deviation. Use this calculator whenever you have a list of numeric values — test scores, daily temperatures, sales figures, response times, sensor readings — and need a fast summary. Paste comma-separated values into the input field (e.g., 2, 3, 3, 5, 7) and you'll instantly see the four statistics along with an interpretation. The tool handles unsorted input, decimals, negative numbers and duplicate values; it returns multiple modes when the data is multimodal (a tie for most-frequent), and reports that there is no dominant mode when every value appears exactly once. All calculations are performed locally in your browser — your data never leaves your device.

Last reviewed: June 3, 2026 Verified by Source: NIST/SEMATECH e-Handbook of Statistical Methods, Wolfram MathWorld — Mean, Wolfram MathWorld — Median, Khan Academy — Descriptive Statistics 100% private

Given a dataset, the four key descriptive statistics are: **Mean** = sum of all values ÷ count; **Median** = middle value of the sorted list (or average of the two middle values if count is even); **Mode** = the most frequently occurring value; **Range** = maximum − minimum. For example, with {2, 3, 3, 5, 7}: mean = 4.000, median = 3.000, mode = 3, range = 5.

When to use this calculator

  • Summarizing a set of 30 student exam scores (e.g., 72, 85, 91, 67, ..., mean = 78.2, median = 79, mode = 85) to report class performance before parent-teacher meetings.
  • Calculating the mean and median home sale price for a real-estate report covering 50 transactions, where the median ($385,000) better reflects the typical sale than the mean ($432,500) skewed by 3 luxury properties.
  • Quickly checking daily website traffic over 14 days (e.g., 120, 145, 132, 989, 138, ...) — the range (869) and difference between mean and median flag the day a post went viral.
  • Computing average response time for a customer-support team over 100 tickets, where the mean (4.8 hours) and median (3.2 hours) reveal a long-tail problem with a few slow-resolution edge cases.
  • Running a quality-control check on 20 manufactured parts measured for diameter (mm), to flag the most common value (mode) and spot machine drift via the range exceeding the engineering tolerance.
  • Helping a high-school student verify their statistics homework: given the dataset {4, 8, 15, 16, 23, 42}, instantly confirm mean = 18, median = 15.5, mode = none, range = 38.
  • Summarizing 200 patient blood-pressure readings in a clinical trial, where the median systolic pressure is the standard reported metric and the mode highlights any clustering at a treatment threshold.
  • Comparing two months of daily revenue (May vs. June) by mean and median to detect whether revenue grew uniformly or only on a few peak days.

Worked example: dataset {2, 3, 3, 5, 7}

  1. Sort the values: 2, 3, 3, 5, 7 (n = 5)
  2. Mean = (2 + 3 + 3 + 5 + 7) / 5 = 20 / 5 = 4.000
  3. Median = middle value of sorted list = 3.000 (position 3 of 5)
  4. Mode = 3 (appears 2 times, more than any other value)
  5. Range = 7 − 2 = 5.00
Result: Mean = 4.000 | Median = 3.000 | Mode = 3 | Range = 5.00

How it works

2 min read

The four descriptive statistics — formulas and reference

Descriptive statistics summarize a dataset into a few key numbers. Here are the exact formulas and when to use each.

Formulas

StatisticFormulaWhen to use
MeanΣx / nSymmetric data without outliers
MedianMiddle value (or avg of two middle)Skewed data, income, prices
ModeMost frequent valueCategorical or frequency data
Rangemax − minQuick spread, quality control

Step-by-step: how each is calculated

Mean: Add all values and divide by the count. For {2, 3, 3, 5, 7}: (2+3+3+5+7)/5 = 4.

Median: Sort the list. With an odd count (n), the median is the value at position (n+1)/2. With an even count, average the two middle values. For {2, 3, 3, 5, 7} (n=5), position 3 → median = 3.

Mode: Count how many times each value appears. The value(s) with the highest frequency are the mode. For {2, 3, 3, 5, 7}: 3 appears twice → mode = 3. A dataset can be bimodal (two modes) or have no mode (all values unique).

Range: Subtract the minimum from the maximum. For {2, 3, 3, 5, 7}: 7 − 2 = 5.

Common reference values table

DatasetnMeanMedianModeRange
1, 2, 3, 4, 553.0003none4
2, 3, 3, 5, 754.000335
10, 20, 20, 40, 10520.0002010, 2030
1, 1, 2, 3, 5, 8, 1374.7143112
5, 10, 15, 20, 100530.00015none95

Mean vs. Median: which to report?

The mean is the standard choice for symmetric distributions. Use the median when:

  • The data is right-skewed (income, home prices, response times) — a few large values inflate the mean.

  • You have outliers you haven't cleaned — the median has a 50% breakdown point.

  • You're following field convention — clinical trials, real estate, and salary surveys all use the median.
  • A large gap between mean and median (rule of thumb: |mean − median| > 0.2 × std dev) signals skewness worth investigating before reporting.

    Frequently asked questions

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

    The mean is the arithmetic average — sum of all values divided by the count. The median is the middle value of a sorted dataset (or the average of the two middle values when n is even). The mode is the most frequently occurring value. The range is max − min. They measure different things: mean and median measure the center (location) of the data; mode measures the most common value; range measures the spread.

    How do you find the mean, median, mode, and range step by step?

    Step 1 — Sort the dataset (required for median; optional but helpful for mode). Step 2 — Mean: add all values, divide by count. Step 3 — Median: with n odd, take the middle value at position (n+1)/2; with n even, average the two values at positions n/2 and n/2+1. Step 4 — Mode: find the value(s) that appear most frequently (if all are unique, there is no mode). Step 5 — Range: subtract the minimum from the maximum. Example: for {4, 8, 6, 5, 3, 2, 8, 9, 2, 5}: sorted = {2,2,3,4,5,5,6,8,8,9}, mean = 5.2, median = (5+5)/2 = 5, modes = 2, 5, 8, range = 7.

    How do you calculate the median when the dataset has an even number of values?

    Sort the values from smallest to largest. With n even, the median is the average of the values at positions n/2 and (n/2 + 1). For example, with {2, 4, 6, 8} (n = 4), the two middle values are 4 and 6, so the median is (4 + 6)/2 = 5. The median may not be a value that appears in the original dataset — this is normal. This is the convention used by Excel MEDIAN, Google Sheets MEDIAN, and Python's statistics.median.

    Can a dataset have more than one mode? What does 'no mode' mean?

    Yes — a dataset can be bimodal (two modes), trimodal (three) or multimodal (multiple). This happens when two or more values are tied for the highest frequency. For example, {1, 2, 2, 3, 4, 4, 5} has modes 2 and 4 (each appears twice). A dataset has no mode when every value appears exactly once — there is no single most-frequent observation. Multimodality in real data often signals that the sample mixes two underlying populations (e.g., adult heights split by sex).

    How do outliers affect mean, median, mode, and range?

    A single extreme outlier can shift the mean dramatically — e.g., {1, 2, 3, 4, 1000} has mean 202 but median 3. The median is robust to outliers as long as fewer than 50% of values are extreme (it has the highest breakdown point of any common statistic). The mode is usually unaffected by a single outlier unless that outlier repeats. The range is maximally affected — by definition it is controlled entirely by the two extremes. To detect outliers, use the IQR rule: flag values below Q1 − 1.5·IQR or above Q3 + 1.5·IQR.

    What is the range in statistics, and is it a good measure of spread?

    The range is simply maximum − minimum, the total spread. It is easy to compute but not robust: a single outlier (data-entry error, sensor glitch) inflates it arbitrarily. For most serious analyses, prefer the interquartile range (IQR) = Q3 − Q1, which captures the middle 50% of the data, or the standard deviation, which weights every observation by distance from the mean. Use the range for quick exploratory summaries and engineering tolerance checks where the extremes are what matters.

    Is the mean the same as the 'average'?

    In everyday speech, yes. When people say 'average' they almost always mean the arithmetic mean. In statistics, 'average' is more general and can refer to the geometric mean (used for growth rates), harmonic mean (used for averaging rates like speed), median, or mode. For formal writing, use the specific name. For most descriptive purposes 'arithmetic mean' and 'average' are interchangeable.

    What is the difference between population mean and sample mean?

    For the mean itself, no — the formula is the same: sum / count. The distinction matters for variability measures like variance and standard deviation, where the sample formula divides by (n − 1) (Bessel's correction) while the population formula divides by n. This calculator computes the arithmetic mean of whatever data you paste, treating it as the complete collection. If you are inferring properties of a larger population, the sample mean is an unbiased estimator of the population mean.

    My mean and median are very different — what does that tell me?

    A large gap between mean and median is a strong signal of skewness or outliers. If the mean is much larger than the median, the distribution is right-skewed — a few large values pull the mean up (typical of income, wealth, response times). If the mean is much smaller than the median, the distribution is left-skewed — a few small values drag the mean down. When mean ≈ median, the distribution is roughly symmetric. As a rule of thumb, if |mean − median| > 0.2 × standard deviation, examine a histogram before reporting.

    How does this calculator compare to Excel or Google Sheets?

    Results are identical — same formulas, same conventions. The equivalent spreadsheet functions are: =AVERAGE() for mean, =MEDIAN() for median, =MODE.SNGL() or =MODE.MULT() for mode, and =MAX()-MIN() for range. Use this calculator when you want a fast answer without opening a spreadsheet, or when teaching students who don't yet know spreadsheet functions. Use Excel/Sheets when you need to keep the data for further analysis or build charts.

    How should I handle missing values or blanks in my dataset?

    This calculator expects numeric values separated by commas. Blanks and non-numeric tokens are silently skipped — they don't count toward n, mean, median, mode or range. In practice, decide on a missing-data policy before calculating: (1) list-wise deletion (skip the missing observations) is what this tool does by default; (2) mean imputation (replace missing with the dataset mean) is acceptable for exploratory work but biases inferential analyses. Never enter '0' as a placeholder for missing — it distorts every statistic.

    Is this calculator accurate, and does it keep my data private?

    Yes to both. Calculations use IEEE 754 double-precision floating point (~15–17 significant digits), matching what Excel, Google Sheets, R, and Python NumPy return. All calculations run client-side in your browser — your data never leaves your device, is not transmitted to any server, and is not logged or stored anywhere. You can safely use this tool with confidential data such as student grades, patient measurements, or financial figures.

    Sources and references