Modified Z-Score Outlier Calculator

Modified Z-Score Outlier Calculator

Enter a numeric dataset to calculate median, MAD, modified z-scores, common outlier flags using abs(modified z) > 3.5, zero-MAD handling, and robust versus ordinary z-score behavior.

📌Modified z-score presets

Load a realistic dataset, then adjust the outlier threshold, zero-MAD rule, standard z-score comparison, row display, label, and unit.

Modified z outliers 0 abs(modified z) > 3.5
Median and MAD 0 robust center and spread
Largest robust score 0 max abs modified z
Z-score comparison 0 ordinary z flags

Enter at least three values to flag robust outliers.

Dataset and method settings
Separate numbers with commas, spaces, semicolons, tabs, pipes, or line breaks. Non-numeric text is ignored.
Used in the result note and table labels.
Examples: ms, points, mm, rating, units, dollars, or blank.
Common rule: flag abs(modified z) > 3.5.
Common comparison: flag abs(z) > 3.
MAD can be zero when many values equal the median.
Changing the table order does not change the calculation.
All rows remain included; this only limits the visible table.
Internal math keeps full precision.
📊Current dataset summary
0Sample size
0Median
0Mean
0Sample SD
🔎Flagged values table
Input #ValueDistance from medianModified zOrdinary zFlag result
Enter values to see robust outlier flags.
🧮Formula and method table
StepFormulaPurposeCurrent value
Calculate to fill method steps.
Robust versus z-score comparison
ScenarioMedianMADMeanSample SDModified z flagsz-score flags
Calculate to compare robust and ordinary flags.
🗂Decision grid
Metric
Center
Spread
Formula cue
Threshold
Current result
Modified z
Median
MAD
0.6745(x-med)/MAD
> 3.5
0 flags
Ordinary z
Mean
Sample SD
(x-mean)/SD
> 3
0 flags
Zero MAD
Median
0 distance
Division blocked
Rule based
Not active
Max distance
Median
MAD units
abs(mod z)
Largest
0
Robustness
Median
MAD
Add high test point
Change
0%
Flagged values
Both
Both
Union of flags
Review
None
📘Threshold reference table
RuleTypical cutoffBest used forWatch out for
Modified z-scoreabs(score) > 3.5Skewed or outlier-prone numeric data.MAD = 0 needs explicit handling.
Ordinary z-scoreabs(score) > 3Roughly bell-shaped data with stable mean and SD.Mean and SD move when extremes are present.
IQR fencesQ1 - 1.5 x IQR, Q3 + 1.5 x IQRBoxplot-style quick flagging.Can flag many points in heavy-tailed samples.
Strict zero MADundefinedReports that modified z cannot be computed.No ranking among non-median values.
Unequal zero MADx not equal to medianFlat data where any deviation is noteworthy.May be too sensitive for rounded data.
IQR backup scaleMAD substitute = IQR / 1.349Fallback when IQR still has spread.It is no longer a pure MAD calculation.
Tips
Use modified z when a few extremes may distort the mean. The median and MAD usually stay steadier than ordinary z-score inputs, so the flagged values can be easier to interpret.
Read zero MAD results separately. If MAD is zero, the formula 0.6745 x (x_i - median) / MAD is not defined unless you choose a fallback rule.

There’s a way for you to use statistics to find outliers in your data: it’s called the modified z-score. It resolves the push-pull of suspicion versus curiosity we feel when something doesn’t look right.

If you have perfectly symmetrical data (e.g. Following a textbook bell curve), standard z-score is fine. But this isn’t how things play out in the real world. Extreme values pulls the mean towards themselves, shrinking the standard deviation in the process. This causes all the other points to appear more normal then they are.

What is the Modified Z-Score?

The fix? Don’t let outliers determine the rules by which they’re detected. The modified z-score fixes this issue using median instead of mean and the median absolute deviation (instead of the standard deviation). Why? Because median does not depend on position: it anchors the center point of data no matter where the tails extend.

Once you’ve entered your data into the calculator on the page, it will take care of the math for you. That way you can concentrate on what these results tell you about your research or quality control process. Enter raw numbers and the tool calculates a reliable z-score for every point which indicates how many units away that point is based off the center in terms of typical spread. In other words, it’s a cleaner way to separate the signal from the noise. The points you’re looking for don’t hijack mean.

Typically, we use a modified z-score with a threshold value of 3.5. Why do we do that? Why aren’t we using common threshold of 3 for ordinary z-scores? We do this because the median is stable. Unlike standard deviation and mean, the median and MAD are resistant to outliers. So when we look at the distribution of our scores, they’re not going to behave like normal distribution that the standard approach assumes. We would of end up calling too many normal scores anomalies if we used a threshold of 3. To make up for more tightly clustered robust scores, we apply a 3.5 threshold. That’s just enough tweaking to avoid throwing out good data while still maintaining sensitivity. (See the reference table on the page about how varying thresholds work for various purposes.)

This depends off the nature of your data. One common edge case can be problematic: What if the MAD is zero? That’s when more than half of your observations are same thing. In that case, bottom of the standard equation is zero and it doesn’t work.

The tool provides some fallback rules for this case. It could use a different statistic if the value is equal to the median which flags anything different from the median. Or it could have another back-up range like the interquartile range. And this isn’t just a technical issue, it represents actual cases in which survey responses get rounded or sensors drift, resulting in flattened out observations. Without thinking through this zero-MAD case, your script could break. Or worse yet, you might miss something seemingly minor but important in a context with no other variation. Picking the correct fallback rule demonstrate that you’re aware of how your data was collected.

It’s also worth comparing the strong results with ordinary z-scores. Occasionally, the modified method will miss outliers that the standard method will catch. That tends to occur if the data is really heavy tailed and symmetric. Alternatively, the standard method may miss everything because extreme values makes its standard deviation look much higher than it actualy is. If you compare both methods in parallel, it gives you an idea of how normal your data actually is. You can look for signs of skewness. You can use it to check if your assumptions are right.

In other words: it’s not so much about following some sort of formula, it’s about knowing what those numbers mean. High? Could be an error in data entry. Could be a real world record. It could even just be a sensor glitch. The math takes you to the suspect; your domain knowledge gives the verdict.

Do you need a nice normal distribution for the truth? No! But do you need something which doesn’t tell lies about what “normal” looks like? Yes! And when the data gets ugly, then median doesn’t move. That steadiness is worth more than elegance.

Modified Z-Score Outlier Calculator