ToollyX
no sign-up ยท instant ยท free

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.

Modes3 Modes
IncludesBox Plot, Outliers
QuartilesQ1, Q3, IQR
CostFree, No Signup
728 ร— 90 โ€” Leaderboard Ad
๐Ÿ“ŠMean, Median & Mode
Data Values8 values

Separate values with commas, spaces or new lines.

Sorted Data
23347779

โ–  Mode (appears 3ร—)

Box Plot
Min 2Q1 3Median 5.5Q3 7Max 9
Mean (Average)
5.25
Median
5.5
Mode
7
Count (n)
8
Sum
42
Range
7
Q1 (25th Percentile)
3
Q3 (75th Percentile)
7
IQR (Q3 โˆ’ Q1)
4
Mid-range
5.5
Outliers (1.5ร—IQR)
None
Shape
Left-skewed (tail extends left)
Geometric Mean
4.6597
Harmonic Mean
4.0892
โš™๏ธSettings
Show Outliers (1.5ร—IQR Rule)
Flag values beyond the standard outlier fences
Show Box Plot Visualization
Visual min/Q1/median/Q3/max with outliers
Show Geometric & Harmonic Mean
Extra mean types, shown when all values are positive
Decimal Places
๐Ÿ“Definitions
Mean
Sum of all values รท count
Median
Middle value when sorted (interpolated for even n)
Mode
Most frequently occurring value(s)
Q1 / Q3
25th / 75th percentile, linear interpolation
IQR
Q3 โˆ’ Q1 โ€” the middle 50% spread
Outlier Fence
Below Q1โˆ’1.5ร—IQR or above Q3+1.5ร—IQR
Geometric Mean
nth root of the product โ€” for ratios & growth rates
Harmonic Mean
n รท ฮฃ(1/x) โ€” for rates & speeds
728 ร— 90 โ€” Leaderboard Ad

โšก Quick Tips for Reading Your Results Correctly

01Check whether mean and median are far apart before trusting either alone. A big gap between them means your data is skewed by a few extreme values โ€” the median is usually the more representative number in that case.
02Use Weighted / Frequency mode for grouped data instead of retyping every value. Thirty students scoring 85 is one line โ€” "85, 30" โ€” not thirty separate entries.
03Don't treat every flagged outlier as an error. The 1.5ร—IQR rule is a standard convention for flagging values worth a second look, not a guarantee that a value is wrong.
04Reach for geometric mean when averaging growth rates or returns. Averaging percentage changes the ordinary way overstates results whenever compounding is involved.

Features

๐Ÿ“ŠMean, Median & Mode

All three central tendency measures, computed instantly as you type.

๐Ÿ“ฆQuartiles, IQR & Outliers

Q1, Q3, interquartile range, and automatic 1.5ร—IQR outlier flagging.

๐Ÿ“ˆVisual Box Plot

See the min, Q1, median, Q3, max and any outliers at a glance.

โš–๏ธWeighted & Frequency Data

Enter value-weight pairs for grouped data or importance-weighted averages.

๐Ÿ”ขGeometric & Harmonic Mean

The correct averages for growth rates and speeds, shown automatically.

โ‡„Two-Dataset Comparison

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.

728 ร— 90 โ€” Leaderboard Ad

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.

Frequently Asked Questions

728 ร— 90 โ€” Leaderboard Ad