Mean, Median, Mode Calculator - Range and Quartiles

Calculators / Math Calculators / Mean, Median, Mode

Mean, Median, Mode Calculator

Paste from a spreadsheet or type freely. Spaces, semicolons, tabs, new lines and commas all work as separators.

Mean (average) 20.94444444
Median 21
Mode 15
Count 9
Sum 188.5
Minimum 12
Maximum 31
Range 19
First quartile (Q₁) 15
Third quartile (Q₃) 27
Interquartile range 12
Midrange 21.5
Outliers (1.5 × IQR rule) None
Sorted values

12; 15; 15; 18; 21; 22.5; 24; 30; 31

Step-by-step solution

x̄ = (12 + 15 + 15 + 18 + 21 + 22.5 + 24 + 30 + 31) / 9 = 188.5 / 9 = 20.94444444
Me = x[5] = 21
Mo = 15 (2×)
R = 31 − 12 = 19
IQR = 27 − 15 = 12

Mean, median and mode explained

Three numbers describe the centre of a data set in three different ways. Seeing them together tells you more than any one of them alone.

How to use it

  1. 1 Type or paste your numbers into the box.
  2. 2 Check the note under the box if your data contains commas, and change the decimal sign if needed.
  3. 3 Read the results, the chart and the worked steps below.

Formula

x̄ = (x₁ + x₂ + … + xₙ) / n
n = 2k + 1 → Me = x₍ₖ₊₁₎
n = 2k → Me = (x₍ₖ₎ + x₍ₖ₊₁₎) / 2
R = max − min
IQR = Q₃ − Q₁
Q₁ − 1.5 · IQR ≤ x ≤ Q₃ + 1.5 · IQR

When should you use each one?

The mean uses every value, so it suits balanced data without extremes. The median is the middle value and barely moves when one number is very large or very small, which is why it is used for incomes and house prices. The mode is the most frequent value and also works for shoe sizes or ratings.

Why do quartiles differ between programs?

There is no single agreed definition. Some textbooks leave the median out when splitting an odd list, others keep it, and spreadsheets interpolate between values. Choose the method your course or software uses.

Reading the chart

Each dot is one value; long or very varied lists become bars. The solid line marks the mean and the dashed line marks the median. When the mean sits to the right of the median, a few large values are pulling it up.

Related calculators: Standard Deviation · Z-Score · Confidence Interval

Mean, Median and Mode FAQ

Yes. If several values share the highest frequency, all of them are modes. If every value appears only once, there is no mode.
New
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.
Popular Today
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.

Other math calculators

Scientific Calculator A scientific calculator with trigonometry, logarithms, powers, roots and factorials. Type an expression or use the keypad; degrees and radians both supported.
Fraction Calculator Add, subtract, multiply or divide two fractions. The answer is simplified and also shown as a mixed number and a decimal, so you can use the form you need.
Standard Deviation Paste a list of numbers and get the standard deviation, variance, mean, median, mode and range at once - both the sample and the population version.
Quadratic Solver Enter a, b and c to solve ax² + bx + c = 0. You get the roots, the discriminant that decides how many there are, and the vertex of the parabola.
Triangle Calculator Solve a right triangle from any two sides, or a general triangle from all three. You get the missing side, all three angles, the area and a drawing to scale.

Other Calculators You May Like

Age Calculator Free age calculator: enter your birth date to see your exact age in years, months, days, hours and minutes, plus the countdown to your next birthday.
Date Difference Calculator Free date difference calculator: find the exact time between two dates in years, months, days and weeks, and see how many working days fall in between.
Day of the Week Calculator Free day of the week calculator: find out which weekday any date falls on - past or future - handy for birthdays, events and historical dates.
Business Days Calculator Free business days calculator: count the working days between two dates, weekends excluded - useful for deadlines, delivery dates and project planning.
Week Number Calculator Free ISO 8601 week number calculator: find which week of the year any date falls in, and see the first and last day of that week at a glance.