Mean, Median, Mode and Range Calculator with Step-by-Step Working
Paste or type your numbers (commas, spaces or new lines) and get the mean, median, mode and range at once, with the sorted list, a frequency table and a dot plot. Every answer shows the working, so it is perfect for homework and for checking your report. Nothing is saved.
Example: marks of 12 students out of 20.
- PriceFree, no login or sign-up needed
- Your dataCalculated in your browser; nothing is saved
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published24 November 2026
- Last updated24 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Mean, median and mode calculator [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/mean-median-mode-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 November 2026.
How to use the mean, median and mode calculator
- Paste or type your numbers into the box. Commas, spaces, tabs and new lines all work, so you can paste a column from Excel or Google Sheets.
- The mean, median, mode, range, count and sum appear instantly.
- Check the sorted list (the middle value is highlighted), the dot plot and the step-by-step working, then press Copy result.
Mean, median and mode: what they mean
The mean is the sum of the values divided by how many there are; the median is the middle value when the data are sorted; the mode is the value that occurs most often. All three are “averages”, or measures of central tendency. The range (maximum − minimum) tells you how spread out the data are.
| Measure | Formula or rule | Best for |
|---|---|---|
| Mean (x̄) | Σx ÷ n | symmetric data without outliers |
| Median | middle value; average of the two middle values if n is even | skewed data, incomes, house prices, data with outliers |
| Mode | most frequent value (may be none, one or several) | categories and repeated values, e.g. shoe sizes |
| Range | maximum − minimum | a quick idea of spread |
Worked example
Marks of 12 students (out of 20): 12, 15, 11, 18, 15, 20, 14, 15, 17, 12, 19, 13.
- Sort: 11, 12, 12, 13, 14, 15, 15, 15, 17, 18, 19, 20.
- Mean: the sum is 181, so the mean = 181 ÷ 12 = 15.0833.
- Median: n = 12 is even, so average the 6th and 7th values: (15 + 15) ÷ 2 = 15.
- Mode: 15 appears three times, more than any other value, so the mode is 15.
- Range: 20 − 11 = 9.
No mode, one mode or several modes
If every value appears the same number of times (for example 3, 5, 8, 9), there is no mode. If two values tie for most frequent, the data are bimodal; with more than two, multimodal. Excel’s MODE.SNGL returns only the first mode, while MODE.MULT returns them all, like this calculator. These results match Excel’s AVERAGE, MEDIAN and MODE.MULT and R’s mean() and median().
Which average should I report?
- If the mean and median are close, the data are roughly symmetric: report the mean with the standard deviation.
- If they are far apart, the data are skewed or have outliers: report the median with the quartiles (IQR).
- One extreme value can move the mean a lot but barely moves the median. Adding a mark of 100 to the list above raises the mean to 21.6, while the median stays at 15.
Frequently asked questions
How do you find the mean?
Add all the numbers and divide by how many there are. For 12, 15, 11, 18 the mean is (12 + 15 + 11 + 18) ÷ 4 = 14.
How do you find the median of an even set of numbers?
Sort the numbers and average the two middle values. For 11, 12, 15, 18 the median is (12 + 15) ÷ 2 = 13.5.
What if there is no mode?
If no value occurs more often than the others, the data set has no mode. The calculator then shows “No mode”.
Can there be more than one mode?
Yes. Two modes make the data bimodal and more than two make it multimodal. The calculator lists every mode.
What is the difference between mean and median?
The mean uses every value, so it is pulled by outliers. The median is the middle value and is resistant to outliers, so it is better for skewed data such as incomes.
Is my data saved or uploaded?
No. Your numbers are calculated in your browser and nothing is saved or uploaded.
Do I need to log in or create an account to use the mean, median and mode calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Mean, median and mode calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/mean-median-mode-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel