Outlier Detection Calculator – IQR, Z-Score, MAD

Outlier Detection Calculator

Paste a numeric dataset to compare IQR fences, ordinary z-score thresholds, MAD modified z-scores, outlier counts, and a winsorized preview on JSCalc-Blog.com.

🎯Outlier presets

Load a realistic dataset, then adjust method, thresholds, quartile rule, winsorization behavior, row count, unit label, and rounding.

⚙Dataset and method settings
Separate numbers with commas, spaces, semicolons, tabs, pipes, or line breaks. Non-numeric text is ignored.
Common rule: flag absolute z-score greater than 3.
Common rule: flag absolute modified z-score greater than 3.5.
Primary outliers -- selected method count
IQR fences -- lower to upper
Z-score flags -- mean and sample SD
MAD flags -- median and MAD

Enter at least three values to compare outlier methods.

📌Current summary grid
--Data Count
--Mean | Median
--SD | IQR
--Winsor Mean
đź—‚Method comparison grid
Method
Center
Spread
Rule
Current flags
IQR fences
Median region
--
Q1 -/+ 1.5 x IQR
--
Z-score
--
--
abs(z) > 3
--
MAD method
--
--
abs(mod z) > 3.5
--
đź“‹Detected values table
#ValueIQR flagZ scoreMAD scorePrimary status
Results appear after calculation.
đź§®Formula and method breakdown
MethodFormulaBest useWeaknessCurrent threshold
IQR fencesQ1 - k x IQR and Q3 + k x IQRSkewed or non-normal dataQuartile method can shift small samples1.5 x IQR
Z-score thresholdz = (x - mean) / sample SDRoughly normal data without heavy skewMean and SD move when extremes existabs(z) > 3
MAD methodmodified z = 0.6745 x (x - median) / MADRobust screening with extreme valuesNeeds a zero-MAD rule for repeated dataabs(mod z) > 3.5
Union ruleFlag when any selected detector firesConservative review listsMay create more false positivesAny method
Intersection ruleFlag when two or more detectors fireHigh-confidence review listsMay miss one-method extremes2+ methods
✂Winsorized preview table
MetricOriginal dataWinsorized previewChangeInterpretation
Winsorized results appear after calculation.
📚Common threshold reference
ScenarioIQR multiplierZ thresholdMAD thresholdPractical note
Standard screening1.53.03.5Good first-pass review setting
Extreme-only screen3.04.05.0Flags fewer values for audit lists
Tight teaching example1.02.53.0Useful for showing method sensitivity
Skewed operational data1.5 to 2.0Avoid alone3.5Favor robust methods over mean-based z
Small samplesReport methodUse careUse careManual context matters below n = 10
Repeated flat valuesWorks if IQR positiveMay be zero SDNeeds zero-MAD ruleUse the table notes before removing values
đź’ˇOutlier review tips
Compare robust and mean-based methods: IQR and MAD are less affected by the very values they are trying to detect. If z-score disagrees, inspect skew and sample size before deciding.
Use winsorization as a preview: The winsorized table shows how summary statistics change when extremes are capped, not a command to edit or delete the original observations.

Sometimes there’s one number in the middle of all these numbers and they looks like a perfectly good set of data. Except then you see it: its a typo. Or it’s an outlier. It is a true anomaly. It is something that completely shifts story. And it makes all the difference.

Delete that real event because it seemed strange? Lost information. Keep that sensor error? Drifted off average. Outlier detection isn’t about finding junk data. Its about dealing with unusual.

How to Find Outliers in Your Data

The calculator above can runs the equations for you. But knowing which method flags which value, that’s the actual work.

The z-score is the one most people begin with because it seems like the intuitive choice. Here’s mean. Here’s the standard deviation. How far away from that do you sit? And if your data is nicely shaped into a bell then this will work out just fine.

This is where people go astray. Mean and standard deviation aren’t rock-solid stats. Extreme points makes them budge around. A huge outlier pull the average towards itself. It stretches the spread apart. Now all of a sudden that high outlier appears less extreme than it realy is. The process obscures what you want to uncover.

That’s where the interquartile range help. It doesn’t use the average. Rather than using all your data, it focuses on middle fifty percent. It draws fences around this core group. Anything beyond the fences gets flagged. Since it doesn’t look at the tails, it is far more difficult to trick.

Notice that you can adjust the multiplier used by this tool for the fences? The default is one and a half times the interquartile range. This is a decent starting place to begin screening in general. Making the multiplier smaller will result in just about everything being flagged. Increasing the multiplier results in only most extreme cases getting caught. How nosy your data tends to be determine which option makes sense.

But if you’re working with messy, skewed data (as most of us do), then your best friend may be median absolute deviation. This is because it’s measuring how far away something is from the median, not the mean. And the median are stubborn. A million isn’t going to budge it as much as a single hundred but it doesn’t matter. The median remains firm. This means that an outlier will be called out by the modified z-score based off the robust center, and it won’t get pulled off course by extreme values.

The more you think your data is normal, the less helpful the modified z-score will be… Since it’s great at finding outliers in data with heavy tails or just data that’s not normal in general.

Not only does the calculator do the math with coefficients for you, it allows you to concentrate on what the numbers are telling you instead of thinking about the equation behind it. Very few is going to align with all the methods. Some will highlight a value that none of the others caught. Don’t worry: that’s not a bug! It’s a feature. It’s a signal that there’s some sort of strange shape in your distribution.

The union option says “any method caught this, so we’ll flag it.” That’s conservative. Less precision, more recall (you’ll get fewer false alarms but you’ll also miss fewer things that are actualy an issue). The intersect option says “all methods agree,” or something like that. That’s high confidence and low volume. There is fewer false alarms, but you may miss some subtle anomalies. Choose whichever works best depending on how expensive it is to check a point. If five seconds per data point is reasonable, go conservative; if it costs money, go selective.

Another thing I think is helpful is Winsorization. It doesn’t delete your outliers. Instead, it clamps them to the closest non-outlier point. This shows you what your summary stats might look like with their extremes capped off. This helps you understand how badly those few points is skewing your perspective.

There’s a great table of reference on the page that walks through this and shows where the cutoffs move, from standard screening to super-tight teaching examples. Use it as a rough guide for sensitivity before committing to anything.

Only you know your context. Maybe a low number was an aberration due to a holiday, or maybe it’s a stockout event, something critical for you to understand. The numbers are your guides, but your judgement is what decides. Look at the flags, look at the trimmed impact then look at why this point stands out from others. And then decide.

Outlier Detection Calculator – IQR, Z-Score, MAD