Mean Median Mode

📊 Statistics Tool

Mean Median Mode
Calculator

Enter any dataset and instantly calculate the mean, median, mode, range, quartiles, standard deviation, and more — with step-by-step solutions, frequency chart, and outlier detection.

🎓 Student & Teacher Friendly
✓ Accurate Statistical Calculations
⚡ Fast Dataset Analysis
Accepts integers, decimals, and negative numbers. Separate with commas, spaces, or new lines.
Mean
—
Median
—
Mode
—
Range
—
Count (n)
—
Sum
—
Min
—
Max
—
Q1
—
Q3
—
IQR
—
Std Dev
—
📊 Frequency distribution (purple = mode)
🔢 Sorted dataset
Mode
Median
Outlier
📐 Step-by-step solution
💡 Statistical insights:
—
ℹ️ This calculator is intended for educational and statistical estimation purposes. Standard deviation and quartiles use population formulas (divides by n, not n−1). For sample statistics, use n−1 for standard deviation.

Mean Median Mode Calculator: Solve Statistics Instantly

Mean, median, and mode are the three most fundamental measures of central tendency in statistics — the building blocks of data analysis used in everything from school homework to scientific research, business analytics, and government policy. This free mean median mode calculator handles any dataset instantly, showing all three averages alongside range, quartiles, standard deviation, frequency distribution, outlier detection, and a full step-by-step solution.

Whether you’re a student solving homework problems, a teacher creating worked examples, a researcher analysing survey data, or a data analyst summarising a distribution — understanding mean, median, and mode is essential for interpreting any numerical dataset correctly. This guide covers every concept in depth, with practical examples, real-world applications, and a complete formula cheat sheet.

📊 Quick formulas: Mean = Σx ÷ n  ·  Median = middle value of sorted data  ·  Mode = most frequent value  ·  Range = Max − Min  ·  IQR = Q3 − Q1  ·  Std Dev = √(Σ(x−μ)²/n)

What Is a Mean Median Mode Calculator?

A mean median mode calculator is a statistical tool that computes the three primary measures of central tendency — mean, median, and mode — from a dataset you provide. Central tendency refers to the idea that many datasets cluster around a central value, and these three measures each describe that centre in a different way, each with different strengths and vulnerabilities.

This calculator goes beyond the basics, also computing: the range (spread of data), quartiles (Q1, Q2, Q3), the interquartile range (IQR), population standard deviation, automatic outlier detection using the 1.5×IQR rule, frequency distribution visualisation, sorted dataset display, and a complete step-by-step solution for every calculation. It handles integers, decimals, negative numbers, and large datasets, making it suitable for everything from a five-number homework problem to a hundred-value research dataset.

Understanding Mean in Statistics

The arithmetic mean is what most people refer to when they say “average.” It is calculated by summing all values in the dataset and dividing by the count of values.

Formula: Mean (μ) = Σx ÷ n

Where Σx is the sum of all values and n is the count of values.

Example: For the dataset 8, 12, 14, 18, 23: Mean = (8 + 12 + 14 + 18 + 23) ÷ 5 = 75 ÷ 5 = 15

The mean has several important mathematical properties. It is the only measure of central tendency where the sum of deviations from the mean equals exactly zero. It is used in calculating variance and standard deviation. It is sensitive to every value — including outliers — which is both its strength (it uses all available information) and its weakness (one extreme value shifts the result significantly).

When mean is most appropriate: When your data is roughly symmetrically distributed without significant outliers. Temperature readings over a month, the weights of manufactured components, or exam scores in a class that follows a bell curve are all datasets where the mean gives a reliable, representative average.

Understanding Median in Statistics

The median is the middle value of a dataset when sorted in ascending order. If there is an even number of values, the median is the mean of the two middle values.

Formula for odd n: Median = value at position (n+1)/2 in sorted data

Formula for even n: Median = mean of values at positions n/2 and (n/2)+1

Odd example: Dataset: 3, 7, 9, 12, 15. Sorted: 3, 7, 9, 12, 15. Median = 9 (middle of 5 values).

Even example: Dataset: 4, 8, 11, 15. Sorted: 4, 8, 11, 15. Middle two values = 8 and 11. Median = (8+11) ÷ 2 = 9.5. Note: the median does not have to be a value that exists in the original dataset.

The median is a robust statistic — it is resistant to the influence of extreme values. This makes it the preferred measure of central tendency whenever the distribution is skewed or contains outliers. Real-world examples where median is standard:

  • Median household income: A few ultra-high earners would distort the mean dramatically. Median gives the income level that half the population is above and half is below.
  • Median house prices: A handful of luxury sales would skew the mean. Median gives the typical price a buyer actually encounters in the market.
  • Medical survival times: In clinical trials, a few very long survivors would inflate the mean survival time. Median gives the time by which half the patients have reached the endpoint.

Understanding Mode in Statistics

The mode is the value (or values) that appear most frequently in a dataset. Unlike mean and median, a dataset can have no mode, one mode, or multiple modes.

  • No mode: All values appear exactly once. Example: {2, 5, 8, 11, 14}
  • Unimodal: One value appears most frequently. Example: {3, 5, 5, 7, 9} → Mode = 5
  • Bimodal: Two values share the highest frequency. Example: {2, 2, 5, 5, 8} → Modes = 2 and 5
  • Multimodal: Three or more values share the highest frequency.

Mode is unique among the three averages: it is the only measure that applies to categorical (non-numerical) data. You cannot calculate the mean or median of colours, political parties, or product preferences — but you can find the mode (most common category).

Real-world uses of mode:

  • Retail: Which shoe size should be stocked in highest quantity? The mode of past sales.
  • Manufacturing: Which defect type occurs most frequently? The mode of quality control data.
  • Web analytics: Which page is visited most often? The mode of page view data.
  • Healthcare: What is the most common blood pressure reading in a clinical population?
  • Education: What score did the most students achieve on a standardised test?

A bimodal distribution — where two distinct modes exist — is often a signal that the dataset actually contains two subpopulations. Height data for a mixed male/female group typically produces a bimodal distribution, with one peak near the average female height and one near the average male height. Identifying bimodality is important — summarising such data with a single mean or median can be profoundly misleading.

What Is Range in Statistics?

The range is the simplest measure of variability (spread) in a dataset. It is calculated by subtracting the minimum value from the maximum value.

Formula: Range = Maximum − Minimum

Example: Dataset: 5, 12, 18, 24, 31. Range = 31 − 5 = 26

Range gives an immediate sense of how spread out the data is, but it has a critical weakness: it depends entirely on the two most extreme values and is therefore highly sensitive to outliers. A single unusually large or small value can make the range extremely large even if most values are tightly clustered.

When range is useful: Quick comparison of spread between similar datasets (e.g., comparing test score variability between two classes). Temperature range (max − min temperature for a day). Manufacturing tolerance checking (is every measurement within the acceptable range?).

Better alternatives for measuring spread: The IQR (Interquartile Range) = Q3 − Q1 measures the spread of the middle 50% of data and is not affected by outliers. Standard deviation measures average deviation from the mean and is the most mathematically powerful spread measure for normally distributed data.

Mean, Median, Mode and Range — Complete Formula Reference

MeasureFormulaExample (2,4,4,5,7)Sensitivity to outliersBest used when
MeanΣx ÷ n(2+4+4+5+7)÷5 = 4.4HighSymmetric data, no extreme outliers
MedianMiddle value (sorted)4 (middle of 5)NoneSkewed data, income, house prices
ModeMost frequent value4 (appears twice)NoneCategorical data, most-common queries
RangeMax − Min7 − 2 = 5Very highQuick spread check, simple comparison
IQRQ3 − Q1Depends on quartilesNoneRobust spread, outlier detection
Std Dev√(Σ(x−μ)²/n)≈ 1.62HighNormal distribution, comparing spread

Difference Between Mean, Median, and Mode

The three measures of central tendency answer the same question — “what is a typical value?” — but in different ways, making each appropriate in different situations.

📐

Use mean when…

Your data is symmetrically distributed with no significant outliers. Mean uses all data points and is the foundation of further statistical calculations (variance, standard deviation, regression). Examples: test scores, temperatures, manufactured component weights — any dataset that follows a bell curve.

⚖️

Use median when…

Your data is skewed or contains outliers that would distort the mean. The median is the standard average for income, house prices, and clinical trial survival times. Whenever you see “median” reported in news or research, it usually signals awareness that outliers make the mean misleading.

👟

Use mode when…

You need the most common value, especially for categorical data. Mode is irreplaceable for shoe size stocking decisions, popular survey responses, peak traffic hours, and any context where “most frequent” is more meaningful than “average.” Mode is the only average that works with non-numeric data.

📏

Use range / IQR when…

You want to describe how spread out the data is. Range gives a quick total spread; IQR gives a robust mid-spread (Q3−Q1) that ignores outliers. IQR is the foundation of box-and-whisker plots and the 1.5×IQR outlier detection rule used in this calculator.

How Outliers Affect Mean, Median, and Mode

Outliers — values that are unusually far from the rest of the data — have very different impacts on each measure of central tendency. Understanding this is crucial for choosing the right average and interpreting data correctly.

Consider two datasets:

  • Dataset A: 10, 12, 14, 15, 16. Mean = 13.4, Median = 14, Mode = none.
  • Dataset B: 10, 12, 14, 15, 200 (one outlier added). Mean = 50.2, Median = 14, Mode = none.

Adding a single outlier (200) caused the mean to jump from 13.4 to 50.2 — a 275% change — while the median remained exactly 14. This is the core reason economists, property market analysts, and medical researchers use median rather than mean: the median is simply not distorted by extreme values.

The 1.5×IQR rule (used by this calculator) is the most widely taught outlier detection method. Any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is flagged as an outlier. This rule identifies roughly 0.7% of values in a perfectly normal distribution as outliers, which is a reasonable sensitivity for most applications.

Step-by-Step Statistics Examples

Example dataset: 4, 8, 8, 12, 15, 19, 19, 22

Step 1 — Mean: Sum = 4+8+8+12+15+19+19+22 = 107. Count = 8. Mean = 107 ÷ 8 = 13.375

Step 2 — Median (even n): Sorted: 4, 8, 8, 12, 15, 19, 19, 22. Middle two values (positions 4 and 5) = 12 and 15. Median = (12+15) ÷ 2 = 13.5

Step 3 — Mode: 8 appears twice, 19 appears twice — all other values appear once. Modes = 8 and 19 (bimodal dataset)

Step 4 — Range: Max = 22, Min = 4. Range = 22 − 4 = 18

Step 5 — Quartiles: Q1 = 8 (25th percentile), Q3 = 19 (75th percentile). IQR = 19 − 8 = 11.

Step 6 — Outlier check: Lower fence = 8 − 1.5(11) = −8.5. Upper fence = 19 + 1.5(11) = 35.5. All values are within fences → no outliers.

Understanding Data Distribution and Skewness

The relationship between mean and median reveals the shape of a distribution — a concept fundamental to understanding any dataset:

  • Symmetric distribution: Mean ≈ Median. Values are evenly distributed around the centre. A perfect bell curve (normal distribution) has mean = median = mode all at the same point. Test scores and heights often approximate this.
  • Right-skewed (positively skewed): Mean > Median. A long tail extends to the right. A few very high values pull the mean up above the median. Income distribution in most countries is right-skewed — the majority earn below the mean income because a small number of very high earners pull the average up.
  • Left-skewed (negatively skewed): Mean < Median. A long tail extends to the left. A few very low values pull the mean below the median. Retirement age in a company with mandatory retirement at 65 but no minimum age would be left-skewed if a few staff leave very early.

This calculator automatically detects skew by comparing mean and median, and tells you which direction your data leans and what it implies for choosing the most representative average.

Real-Life Applications of Mean, Median, and Mode

Statistics are not just academic exercises — mean, median, and mode appear constantly in everyday professional and social contexts:

  • Economics and policy: Governments report median income (not mean) to describe typical living standards. Median is used because mean income is distorted by the ultra-wealthy. The gap between mean and median income is itself a measure of economic inequality.
  • Property markets: Estate agents and property portals report median house prices. One £10 million mansion in a neighbourhood can push the mean far above what a typical buyer would pay. Median gives the price that half the sold properties were above and half below.
  • Education: Schools and exam boards analyse mean, median, and mode of test score distributions to set grade boundaries, identify struggling cohorts, and compare year-on-year performance. Mode identifies the most commonly achieved score.
  • Healthcare: Clinical trials use median survival time as a primary endpoint because survival data is almost always right-skewed. Median blood pressure in a population is used for guidelines because extreme hypertensive values would inflate the mean.
  • Manufacturing: Quality control uses the mean and standard deviation of component measurements to detect process drift. Mode identifies the most common defect type. Range and IQR measure consistency of production.
  • Sports analytics: A cricket batsman’s mean score can be inflated by a few exceptional innings; median score may better represent typical performance. In basketball, median points scored controls for blow-out games that inflate totals.
  • Retail and e-commerce: Mode of product sizes ordered determines stocking decisions. Mean order value guides promotional offers. Median customer rating may better represent typical customer experience than mean (which is distorted by extreme 1-star or 5-star ratings).

Statistics in Education: What Students Need to Know

Mean, median, and mode are typically first introduced in primary school and revisited with increasing complexity through secondary school and beyond. Here is what each level typically covers:

  • KS2/Primary: Finding the mode and mean of simple whole-number datasets. Introducing range as a measure of spread.
  • KS3/Lower secondary: Finding median with both odd and even datasets. Comparing mean and median. Identifying which average is most appropriate for a given context.
  • KS4/GCSE: Calculating mean from frequency tables and grouped frequency tables. Understanding when outliers affect averages. Quartiles and interquartile range for box plots. Cumulative frequency curves.
  • A-Level/Post-16: Standard deviation and variance. Probability distributions (normal, binomial, Poisson). Hypothesis testing. Correlation and regression — all of which build on mean and variance.

This calculator covers all the core calculations needed through GCSE level and provides the descriptive statistics summary (quartiles, IQR, standard deviation) needed for A-Level introductions to data analysis.

Common Statistics Mistakes and How to Avoid Them

  • Using mean for skewed data: The most common error. Always compare mean and median — if they differ significantly, the distribution is skewed and median is more representative.
  • Reporting only mean without spread: A mean without a standard deviation or range is incomplete. Two datasets can have identical means but completely different distributions.
  • Assuming “no mode” means the data is uninformative: When every value appears once, it often means you need a larger dataset or different analysis (such as grouping data into ranges).
  • Confusing population and sample standard deviation: Dividing by n gives population std dev; dividing by n−1 gives sample std dev (Bessel’s correction). This calculator uses n (population). For samples estimating a population, use n−1.
  • Removing outliers without investigation: Outliers are not automatically errors. They might be the most interesting data point in your set — a genuine extreme case, a signal of process failure, or a subpopulation you didn’t account for. Always investigate before removing.
  • Treating mode as “the best” value: Mode identifies the most common value, not the most desirable or most typical. In a skewed distribution, the mode might be near one extreme end.

Related Statistics & Math Calculators

Frequently Asked Questions

What is mean in statistics?
The mean (arithmetic mean) is the most commonly used average. Add all values together and divide by the count: Mean = Σx ÷ n. For 4, 8, 12, 16: Mean = (4+8+12+16) ÷ 4 = 40 ÷ 4 = 10. The mean uses every value in the calculation, making it sensitive to outliers. It is the foundation of variance, standard deviation, correlation, and regression — making it the most mathematically important average despite its vulnerability to extreme values.
What is the difference between mean and median?
Both describe the “centre” of data, but differently. Mean = sum ÷ count (affected by every value). Median = the middle value of sorted data (not affected by extreme values). For symmetric distributions, they are nearly equal. For skewed distributions — income, house prices, clinical data — the median is more representative. When a single extreme value is added to a dataset, the mean shifts dramatically while the median barely changes. This is why “median income” and “median house price” are the standard measures rather than mean.
What is mode in math?
Mode is the most frequently occurring value in a dataset. A dataset can have no mode (all values appear once), one mode (unimodal), two modes (bimodal), or multiple modes (multimodal). Example: {3, 5, 5, 7, 9} → mode = 5. Mode is the only average that applies to categorical data — you can find the mode of colours, shoe sizes, or survey responses, which have no meaningful mean or median. Bimodal data often signals two distinct subgroups within your dataset.
What happens if there are multiple modes?
All values sharing the highest frequency are modes. Example: {3, 3, 7, 7, 9} → both 3 and 7 are modes (bimodal). This calculator displays all modes when multiple exist. Bimodal and multimodal distributions often indicate that the dataset contains two or more distinct subgroups that should be analysed separately. Height data for a mixed-gender group, for instance, produces a bimodal distribution — one peak near the average female height, one near average male height.
What is range in statistics?
Range = Maximum − Minimum. It is the simplest measure of spread. For {3, 7, 11, 15, 19}: range = 19 − 3 = 16. Range is easy to calculate but highly sensitive to outliers — one extreme value produces a misleadingly large range. For more robust spread measures, use IQR (Q3 − Q1, measuring the middle 50% of data) or standard deviation (average deviation from the mean). Range is useful for quick comparisons and manufacturing tolerance checking.
What is an outlier and how is it detected?
An outlier is a data point significantly different from the rest of the dataset. The 1.5×IQR rule (used by this calculator): compute Q1, Q3, and IQR = Q3−Q1. Any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is an outlier. Outliers are not automatically errors — they may be genuine extreme cases (a product that outsold all others) or data entry mistakes (typing 1,000 instead of 100). Always investigate before removing. Outliers inflate the mean and range but do not affect the median or IQR.
Which average is best for skewed data?
Median. In a right-skewed distribution (long tail to the right), the mean is pulled up above the median by high outliers — making it an overestimate of the typical value. In left-skewed distributions, the mean falls below the median. The rule of thumb: if mean and median differ significantly, prefer the median. This is why income statistics, property prices, and clinical trial outcomes all use median — the distributions are skewed and median gives a more accurate picture of what’s “typical.”
Can I calculate statistics with decimals and negative numbers?
Yes — this calculator handles integers, decimals, and negative numbers. Enter them separated by commas, spaces, or new lines. Examples: “−5, −2, 0, 3.5, 8.2” or “0.1, 0.25, 0.5, 0.75”. Mean, median, and range all work normally with negative values. The sorted order (for finding the median) places negatives first. Mode works identically. Standard deviation and IQR are also fully supported with any numeric input.
How do I find the median with an even number of values?
Sort the data ascending. Find the two middle values (positions n/2 and n/2+1). Average them. Example: {3, 7, 11, 15} → two middle values are 7 and 11 → Median = (7+11) ÷ 2 = 9. Important: the median does not have to be a value that exists in the dataset. The calculator handles this automatically for any dataset size.
What is standard deviation and how is it related to mean?
Standard deviation measures how spread out values are from the mean. Small std dev = tightly clustered. Large std dev = widely spread. Formula: σ = √(Σ(x−μ)²/n). For a normal distribution, 68% of values fall within ±1 std dev of the mean, 95% within ±2, and 99.7% within ±3 (the 68-95-99.7 rule). This calculator uses population std dev (÷n). For sample data estimating a population, divide by n−1 instead (this is what Excel’s STDEV function and most statistics software use by default).
What are quartiles and the IQR?
Quartiles divide sorted data into four equal parts: Q1 (25th percentile) — 25% of values are below this; Q2 (50th percentile) — the median; Q3 (75th percentile) — 75% of values are below this. IQR = Q3 − Q1 is the range of the middle 50% of data. IQR is used in box plots, the 1.5×IQR outlier rule, and as a robust measure of spread that is not affected by outliers (unlike range). In standardised testing, quartiles show how an individual score ranks relative to the population.
What is the difference between population and sample standard deviation?
Population std dev (σ): divide by n — used when your dataset IS the entire population. Sample std dev (s): divide by n−1 (Bessel’s correction) — used when your dataset is a sample from a larger population and you’re estimating the population’s spread. This calculator uses population formula (÷n). For most school-level problems, population formula is expected. For research or business analytics where you’re sampling from a larger population, use sample formula. The difference is negligible for large datasets (n>30) but meaningful for small samples.
How does this calculator handle large datasets?
This calculator handles any size dataset — from 2 values to hundreds or thousands. Paste your data directly from a spreadsheet (values separated by tabs, commas, or new lines are all accepted). The frequency chart will adapt automatically, and all statistical calculations scale to any n. For very large datasets (thousands of values), consider whether you need descriptive statistics (this calculator) or inferential statistics (hypothesis testing, confidence intervals) — the latter requires dedicated statistical software.

Analyse your dataset instantly

Mean, median, mode, range, quartiles, std dev, outliers, frequency chart — free, instant, step-by-step.

Calculate statistics ↑