Mean, Median, Mode & Average Calculator
Every kind of average with the working — lists, frequency tables and class intervals.
Averages
This is the last answer worked out. Fix the data above to update it.
Other averages
Values in order
Ogives (cumulative frequency curves)
Hover, tap or focus the chart and use the arrow keys to read the values at each class boundary.
Steps
Table
About the Mean, Median, Mode & Average Calculator
Type or paste your numbers to get the mean, median, mode and range with every step shown: the sum divided by the count, the values sorted with the middle one marked, and how often each value occurs. Alongside them you get the other averages people need — the geometric, harmonic and root-mean-square means, a trimmed mean and the midrange — and a weighted mean for grades with credits or marks with percentage weights.
For grouped data (class intervals with frequencies) the calculator uses the formulas taught in school: the mean by the direct, assumed-mean or step-deviation method, the median from l + ((N/2 − cf)/f) × h and the mode from l + ((f₁ − f₀)/(2f₁ − f₀ − f₂)) × h, with a table you can check line by line and the less-than and more-than ogives, which cross at the median.
How to use it
- Choose List of values, Frequency table, Weighted mean or Grouped data.
- Type or paste the data. A list: numbers separated by commas, spaces or new lines. A frequency table or weighted mean: a value and its frequency (or weight) on each line, such as
8.5 4. Grouped data: a class and its frequency on each line, such as10-25 2. - For grouped data, choose the method for the mean; with the assumed-mean or step-deviation method you can type the A and h from your book, or leave them empty.
- Optionally change the share cut from each end for the trimmed mean and the number of decimal places.
- Read the averages, the steps and the table. Copy the result or the working, or download the table as a CSV file.
Examples
12, 15, 11, 15, 18, 14, 15, 20, 9, 13
Mean = 142 ÷ 10 = 14.2 Sorted: 9, 11, 12, 13, 14, 15, 15, 15, 18, 20 → median = (14 + 15) ÷ 2 = 14.5 Mode = 15 (3 times) · range = 20 − 9 = 11
Salaries (₹ thousand): 28 31 35 30 29 33 32 250
Mean = 468 ÷ 8 = 58.5, but the median is (31 + 32) ÷ 2 = 31.5 Trimmed mean cutting 12.5% (one value) from each end: 190 ÷ 6 ≈ 31.6667
Grade 8.5 for 4 credits, 9 for 3, 7 for 2, 10 for 1
(8.5×4 + 9×3 + 7×2 + 10×1) ÷ (4 + 3 + 2 + 1) = 85 ÷ 10 = 8.5
10-25: 2, 25-40: 3, 40-55: 7, 55-70: 6, 70-85: 6, 85-100: 6
Mean = 1,860 ÷ 30 = 62 (or A = 47.5: 47.5 + 435 ÷ 30) Median = 55 + ((15 − 12) ÷ 6) × 15 = 62.5 Mode = 40 + ((7 − 3) ÷ (14 − 3 − 6)) × 15 = 52
Common uses
- Checking homework and exam answers for the mean, median and mode of grouped data, step by step.
- Working out a weighted average such as a grade point average from credits, or a final mark from weighted parts.
- Choosing a fair “typical value” for skewed data such as incomes or house prices, where the median or a trimmed mean says more than the mean.
- Averaging growth rates (geometric mean) or speeds over equal distances (harmonic mean).
Which average should I use?
- Mean (Σx ÷ n): uses every value; best for symmetric data without outliers.
- Median: the middle value when the data are sorted (the mean of the two middle values when n is even). It ignores how extreme the largest and smallest values are, so it is the better “typical value” for skewed data such as incomes.
- Mode: the most frequent value; the only average for categories (the most common shoe size). A data set can have several modes, or none when every value occurs equally often.
- Geometric mean (ⁿ√(x₁ × … × xₙ)): for rates of growth and ratios — the average yearly growth over several years is the geometric mean of the yearly growth factors.
- Harmonic mean (n ÷ Σ(1/x)): for rates over equal amounts — driving 60 km/h one way and 40 km/h back averages 48 km/h, not 50.
- Root mean square (√(Σx² ÷ n)): the typical size of values that can be positive or negative, such as errors.
- Trimmed mean: the mean after cutting the same share of the smallest and largest values, a compromise between the mean and the median. Here 10% from each end means ⌊0.1 × n⌋ values from each end, as in R’s
mean(x, trim = 0.1); it equals Excel’sTRIMMEAN(data, 20%), which takes the total share.
For positive data, mean ≥ geometric mean ≥ harmonic mean, with equality only when all the values are equal.
Formulas for grouped data
With class intervals, each class is represented by its class mark x = (lower limit + upper limit) ÷ 2, and N = Σf.
- Mean, direct method: x̄ = Σfx ÷ N. Assumed-mean method: x̄ = A + Σfd ÷ N with d = x − A. Step-deviation method: x̄ = A + h × Σfu ÷ N with u = (x − A) ÷ h. All three give the same mean; A and h only make the arithmetic smaller.
- Median = l + ((N/2 − cf) ÷ f) × h, where the median class is the first class whose cumulative frequency is more than N/2, l is its lower boundary, cf the cumulative frequency of the classes before it, f its frequency and h its width.
- Mode = l + ((f₁ − f₀) ÷ (2f₁ − f₀ − f₂)) × h, where the modal class has the highest frequency f₁, f₀ and f₂ are the frequencies of the classes before and after it, and l and h are its lower boundary and width.
These are the formulas of the NCERT Mathematics textbook for Class 10 (chapter “Statistics”). Inclusive classes such as 10–19, 20–29 use the boundaries half-way between them (9.5, 19.5, 29.5 …) for l. The rough relation mode ≈ 3 × median − 2 × mean is shown as a check; it only holds for moderately skewed data.
Reading the median from an ogive
A less-than ogive plots the cumulative frequency — how many values lie below each upper class boundary — and rises from 0 to N. A more-than ogive plots how many values lie at or above each lower boundary and falls from N to 0. Both pass through N/2 at the same point, so the x-coordinate where they cross is the median; reading it from a carefully drawn graph gives the same value as the median formula, because the formula assumes the values of a class are spread evenly across it — exactly what the straight lines between the points assume.
Limitations
- Grouped data give estimates: the original values are not known, and every value of a class is taken to be at its class mark (for the mean) or spread evenly across the class (for the median). Open-ended classes such as “below 10” need a limit before they can be used.
- The grouped mode formula assumes classes of equal width. When the widths differ, the calculator compares frequency densities (frequency ÷ width) instead and says so.
- Frequencies must be whole numbers; decimal weights belong in the weighted mean, which gives the weighted mean only (not a weighted median).
- A list can have up to 50,000 values. Commas separate values, so do not use thousands separators (type 12500, not 12,500).
Privacy
Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.
Frequently asked questions
How do I find the mean, median and mode?
Mean: add the values and divide by how many there are. Median: sort the values and take the middle one — or the mean of the two middle ones when there is an even number. Mode: the value that occurs most often. For 12, 15, 11, 15, 18, 14, 15, 20, 9, 13 the mean is 142 ÷ 10 = 14.2, the median is (14 + 15) ÷ 2 = 14.5 and the mode is 15.
What if two values tie for the mode, or no value repeats?
If two values occur equally often and more than any other, both are modes and the data are bimodal (with more, multimodal). If every value occurs the same number of times — for example all of them once — there is no mode. Some books call every value a mode in that case; the calculator says “none” and explains why.
How do I find the median of grouped data?
Add a cumulative frequency column and find N/2. The median class is the first class whose cumulative frequency is more than N/2. Then median = l + ((N/2 − cf) ÷ f) × h. For the marks example (N = 30), N/2 = 15, the median class is 55–70 with cf = 12 before it and f = 6, so the median is 55 + ((15 − 12) ÷ 6) × 15 = 62.5.
How do I find the mode of grouped data?
Find the modal class (the highest frequency f₁) and the frequencies f₀ before it and f₂ after it. Then mode = l + ((f₁ − f₀) ÷ (2f₁ − f₀ − f₂)) × h. In the marks example the modal class is 40–55 with f₁ = 7, f₀ = 3 and f₂ = 6, so the mode is 40 + (4 ÷ 5) × 15 = 52.
How do I calculate a weighted average such as a CGPA?
Multiply each value by its weight, add the products and divide by the total weight: Σ(w × x) ÷ Σw. For grade points with credits — 8.5 for 4 credits, 9 for 3, 7 for 2 and 10 for 1 — that is 85 ÷ 10 = 8.5. Your university’s own rules (for example for failed or repeated courses) decide which grades and credits count.
Why is the mean so different from the median?
Because the data are skewed or contain an outlier. The mean uses the size of every value, so one very large value pulls it up; the median only depends on the middle of the sorted data. In the salary example, one salary of 250 lifts the mean to 58.5 while the median stays at 31.5.