Outlier Calculator

An outlier is a data value that sits far away from the bulk of the other values in a data set. Outliers can arise from genuine extreme observations (a very tall person in a height survey), from measurement error, or from data entry mistakes. Identifying them matters because a single outlier can dramatically shift summary statistics like the mean and standard deviation, making your analysis misleading. The IQR method, also called the Tukey fences method, is one of the most widely taught and robust approaches to outlier detection. It works by computing the interquartile range (IQR = Q3 minus Q1, the spread of the middle 50% of the data) and then setting two boundaries called fences. The lower fence is Q1 minus 1.5 times the IQR. The upper fence is Q3 plus 1.5 times the IQR. Any value that falls outside these fences is classified as a potential outlier. Because the fences are built from the middle of the distribution rather than from the extremes, they are not themselves distorted by the very outliers they are trying to detect. That makes the IQR method more appropriate than standard deviation methods for skewed distributions. This calculator accepts a comma-separated list of numbers, computes Q1, Q3, and IQR using linear interpolation, then applies the 1.5 x IQR rule. It returns the lower and upper fences, a list of any outlying values found, the total data count, and the count of clean (non-outlier) values. It is useful for students, data analysts, teachers, and anyone cleaning a data set before further statistical analysis.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
100
outliers detected
Lower fence-3.00
Upper fence13.00
IQR4.00
Q13.00
Q37.00
Clean values6

How it works

The calculator sorts the data and uses linear interpolation to compute Q1 (25th percentile) and Q3 (75th percentile). IQR = Q3 minus Q1. Lower fence = Q1 minus 1.5 times IQR. Upper fence = Q3 plus 1.5 times IQR. Every data value below the lower fence or above the upper fence is listed as a potential outlier. The clean count is the total number of values minus the number of outliers.

Worked example

Data: 2, 3, 4, 5, 6, 7, 100 (n = 7, sorted). Q1 rank = 0.25 x 8 = 2.0 (exact), so Q1 = sorted[1] = 3.00. Q3 rank = 0.75 x 8 = 6.0 (exact), so Q3 = sorted[5] = 7.00. IQR = 7 - 3 = 4.00. Lower fence = 3 - 1.5 x 4 = -3.00. Upper fence = 7 + 6 = 13.00. The value 100 exceeds the upper fence of 13.00 and is the only outlier. 6 clean values remain. These match the default values pre-filled above.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.