Skip to content

Math glossary

Outlier

An outlier is a value that sits far away from the rest of the data. An outlier can be real or a mistake. It pulls the mean and the range strongly but barely moves the median, so with an outlier present the median is often a fairer summary.

Outlier meaning

An outlier is a value that sits unusually far from the rest of a data set. In test scores of 72, 75, 78, 80, 81 and 12, the 12 stands out at once. Outliers can come from mistakes (a misplaced decimal, a mis-typed entry), from a different group sneaking into the data (one adult in a sample of children's heights), or from genuine rare events (a record-breaking heatwave).

There is no single universal definition. "Far" has to be measured against something, so statisticians use rules based on the spread of the data. The two used most in school and in everyday analysis are the IQR rule and the z-score rule.

The 1.5 × IQR rule

  1. Put the data in order.
  2. Find the median, then the medians of the lower and upper halves. These are Q1 and Q3.
  3. Compute the interquartile range: IQR = Q3 − Q1.
  4. Build the fences: lower = Q1 − 1.5 × IQR, upper = Q3 + 1.5 × IQR.
  5. Any value outside the fences is an outlier.

Worked example. Daily commute times in minutes: 12, 14, 15, 15, 16, 17, 18, 19, 21, 48.

  • Lower half 12, 14, 15, 15, 16 → Q1 = 15
  • Upper half 17, 18, 19, 21, 48 → Q3 = 19
  • IQR = 19 − 15 = 4
  • Fences: 15 − 6 = 9 and 19 + 6 = 25
  • 48 is above 25, so it is an outlier. Nothing is below 9.

Software may use a slightly different quartile method and get Q1 and Q3 a little different, but a value as far out as 48 is flagged by every version. On a box plot, outliers are drawn as separate dots beyond the whiskers.

The z-score rule

For data that is roughly bell-shaped, a z-score measures how many standard deviations a value is from the mean:

z=x−xˉsz = \frac{x - \bar{x}}{s}

A common cutoff is |z| > 3, sometimes |z| > 2 for small samples. If exam scores have a mean of 70 and a standard deviation of 8, a score of 98 has z = (98 − 70) ÷ 8 = 3.5 and would be flagged. The weakness of this rule is that the outlier itself inflates the mean and standard deviation, which can hide it in small data sets. The IQR rule does not have that problem.

How outliers change the summary statistics

Using the commute data above:

StatisticWith 48Without 48
Mean19.5 min16.3 min
Median16.5 min16 min
Range36 min9 min

The mean jumps by over 3 minutes because of one value; the median moves by half a minute. Range is the most sensitive of all, since it depends only on the extremes. The mode is not affected at all here. This is why house prices and household incomes are usually reported as medians.

What to do with an outlier

  • Check it first. Look for data entry errors, wrong units or equipment faults. A height recorded as 1,750 cm is almost certainly 175.0 cm.
  • Correct or remove genuine errors, and note that you did.
  • Keep real values. A real extreme is part of the story. A hospital's unusually long wait time may be the most important number in the report.
  • Use robust statistics. Median and IQR summarise data well even with outliers present.
  • Report both versions when a result depends heavily on one or two points.

Outliers in graphs and models

On a scatter plot, an outlier is a point far from the overall pattern. A single point can drag a line of best fit toward it, especially if it lies far to the left or right; such points are called influential. Fitting the line with and without the point shows how much it matters.

In machine learning and fraud detection, finding outliers is often the goal rather than a nuisance. A card transaction far outside a customer's normal pattern is an outlier worth a second look.

Common mistakes

  • Calling the maximum an outlier automatically. It has to fail a rule, not just be the largest.
  • Deleting values because they are inconvenient. That biases the results.
  • Using the z-score rule on tiny or skewed samples, where it is unreliable.
  • Forgetting to sort the data before finding quartiles.

The standard deviation calculator gives the mean and spread you need for z-scores, and mean, median and mode explained shows when each average is the better choice.

FAQ

Frequently asked questions

01How do you find an outlier?

The most common method is the 1.5 × IQR rule. Find Q1 and Q3, compute IQR = Q3 − Q1, and flag any value below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.

02Does an outlier affect the mean or the median more?

The mean. One extreme value pulls the mean toward it, while the median barely moves. That is why the median is preferred for skewed data such as house prices or incomes.

03Should you remove outliers?

Only if they are errors, such as a typo or a broken sensor. Genuine extreme values are real information. If you leave them out, say so and report results with and without them.

04Can there be more than one outlier?

Yes. A data set can have several, on one side or both. Some sets have none.

05What is the difference between an outlier and an extreme value?

Every outlier is extreme, but not every extreme value is an outlier. The largest value in a set is always the maximum, yet it only counts as an outlier if it falls outside a rule such as the IQR fences.

Related terms

Last updated November 9, 2026. See all math terms.