Mean, Median & Mode Calculator
Calculate mean, median, mode, quartiles and outliers instantly, with a visual box plot. Handles weighted or frequency data, and compares two datasets side by side.
Separate values with commas, spaces or new lines.
โ Mode (appears 3ร)
โก Quick Tips for Reading Your Results Correctly
Features
All three central tendency measures, computed instantly as you type.
Q1, Q3, interquartile range, and automatic 1.5รIQR outlier flagging.
See the min, Q1, median, Q3, max and any outliers at a glance.
Enter value-weight pairs for grouped data or importance-weighted averages.
The correct averages for growth rates and speeds, shown automatically.
See exactly how two datasets differ in mean, median and spread.
Why Three Different Averages Exist At All
The clearest way to see why mean, median and mode aren't interchangeable is a neighborhood's household income. Add one extremely wealthy household to a street of otherwise modest earners and the mean jumps sharply โ it's pulled toward every value, including that one outlier โ while the median barely moves, since it only cares about which value sits in the middle once everything is sorted. Neither number is lying; they're answering different questions. Mode answers a third, entirely separate question โ not "what's typical" or "what's central" but "what actually repeats the most" โ which matters for categorical-feeling data (most common shoe size sold, most frequent test score) in a way mean and median never will. This calculator computes all three together specifically so the gap between them โ when there is one โ becomes visible rather than hidden behind a single number. As a rule of thumb: if mean and median land close together, either one is a reasonable summary of the data; the further apart they drift, the more the median deserves to be the number you actually quote.
How This Calculator Finds Outliers Without You Having to Ask
Spotting an outlier by eye works fine for ten numbers and falls apart for a hundred. This tool applies the 1.5รIQR rule automatically: it finds Q1 and Q3, the interquartile range between them, and flags anything sitting more than 1.5 IQRs beyond either edge. It's the same rule a statistics textbook's box plot draws its whiskers around, which is exactly what the box plot below your results is showing โ the box spans Q1 to Q3, the whiskers reach out to the most extreme values that aren't flagged, and anything past that gets its own dot. A flagged value deserves a second look, not an automatic assumption that it's wrong โ sometimes an outlier is a data entry typo, and sometimes it's the most important number in the entire dataset.
Reading a Box Plot at a Glance
The box itself covers the middle 50% of your data โ from Q1 on the left edge to Q3 on the right, with a line marking the median somewhere inside it. Where that median line sits within the box is informative on its own: dead center suggests a fairly symmetric spread, while a line pushed toward one edge suggests the data leans that direction. The whiskers extending from each side of the box reach to the most extreme values that still fall inside the outlier fences, and any point sitting past a whisker's end is a flagged outlier, plotted individually rather than folded into the whisker line. It's a lot of information compressed into one compact shape, which is exactly why it shows up in almost every serious statistical report rather than being a purely academic exercise.
Weighted Data Is Everywhere Once You Look For It
Two very different situations both need a weighted calculation, and Weighted / Frequency mode handles both without caring which one you meant. The first is a genuine frequency count โ 30 students scoring 85 on a test is entered as a single "85, 30" pair rather than typing 85 thirty times, which matters once a dataset runs into the hundreds. The second is importance weighting that has nothing to do with how often something occurs โ a course grade where a final exam counts twice as much as a quiz, similar in spirit to how the GPA Calculator weights grades by credit hours. The weighted median in particular behaves differently from the weighted mean here in a useful way โ it resists being dragged by one heavily-weighted extreme value the same way an ordinary median resists outliers.
Two Means Most Calculators Skip: Geometric and Harmonic
An arithmetic mean quietly gives the wrong answer for certain kinds of data, which is exactly why geometric and harmonic mean exist as separate concepts rather than academic trivia. Geometric mean is the mathematically correct average for anything that compounds โ investment returns, year-over- year growth percentages โ because averaging percentage changes the ordinary way systematically overstates the real result once compounding is involved. Harmonic mean is the correct average of rates measured over a fixed distance or quantity: averaging 30 mph and 60 mph over equal distances the ordinary way gives 45 mph, but 40 mph โ the harmonic mean โ is what actually describes the trip's real average speed. Both only appear here when every value in a dataset is positive, since neither is mathematically defined otherwise.
When You Actually Need to Compare Two Datasets
A before-and-after test score comparison, two different classes taking the same exam, or a website metric before and after a change all share the same shape: two lists of numbers where the interesting answer is the difference between them, not either dataset in isolation. Compare Two Datasets states that difference directly โ which mean is higher, by how much, and which dataset is more spread out โ instead of leaving you to run this tool twice and do the subtraction by hand. For generating quick practice datasets to test this mode with, the Random Number Generator can produce two random samples in seconds. For a deeper look at spread specifically โ variance, standard deviation, coefficient of variation โ the Standard Deviation Calculator picks up where this comparison leaves off.
The Honest Limits of This Calculator
This tool covers central tendency, spread via quartiles and IQR, outlier detection, and weighted or comparative analysis โ it does not perform hypothesis testing, confidence intervals, or p-values, and it is not a substitute for a full statistics package when that level of inferential analysis is actually required. The weighted median specifically uses the "first value where cumulative weight reaches half the total" convention, which is standard but not the only definition used across every textbook โ results can differ slightly from a source using an alternate convention. And for everyday arithmetic once a statistic is in hand, the Scientific Calculator handles anything beyond what belongs in a dedicated statistics tool. Used within those boundaries, though, this calculator covers the vast majority of what a student, analyst, or curious spreadsheet user actually needs from a descriptive-statistics pass over a dataset.