Mean Median Mode Calculator
A clear view of your dataset.
Enter your data
Exact statistics.
Separate signed decimals, scientific e notation or integer fractions with commas, spaces, semicolons, pipes or new lines. Decimal point only; commas separate values, never thousands.
Each method keeps its own data. Frequency counts represent repeated observations, not arbitrary weights.
Conventions and display
A literal label only; all observations must already use the same measurement unit. No unit conversion is performed.
Changes the first and third quartiles and the interquartile range. Mean, median, mode and range stay unchanged.
Choose whether a highest-frequency tie at one occurrence is reported as no repeated mode or as all tied values.
Exact rational answers do not change. Tiny nonzero views use scientific notation. Halfway values round away from zero.
Imports into the selected method. Files must be UTF-8, at most 64 KiB, and contain only supported numeric data plus an optional frequency header. Invalid files leave current data unchanged.
Supports up to source observations or frequency rows, and total count . Nonzero source magnitudes range from through , with forty significant digits per number. Combined exact arithmetic is bounded to numerator or denominator digits. Results describe the supplied data; no missing values or outliers are removed automatically.
Arithmetic mean
points
Center, extent and quartile summary
Arithmetic mean
Median
Sum
Minimum
Maximum
Range
Midrange
First quartile
Third quartile
Interquartile range
- Observation count
- Distinct exact values
- Highest frequency
- Zero-frequency rows excluded
Mode and repeated-value convention
Unimodal
- points
Mode compares exact numerical values, without rounding or clustering nearby measurements. It is the observed sample mode, not an estimate of the peak of a continuous population distribution.
Step-by-step solution
1. Validate and count observations
All active tokens are checked before arithmetic. Equivalent fractions and decimals share one exact value; zero-frequency rows are excluded explicitly.
2. Sort and retain multiplicities
Values are sorted by exact numerical comparison. Frequency rank intervals retain every observation without expanding large counts.
3. Add the weighted value total
Each multiplicity counts repeated observations, rather than an arbitrary reliability or probability weight. Unrounded rational terms are added exactly.
4. Divide the total by the count
The arithmetic mean uses every observation. Cancellation and rounding do not alter the exact numerator or denominator.
5. Locate the middle rank or pair
The odd observation count selects one middle rank in sorted order.
6. Identify the greatest observed frequency
Unimodal. The selected convention requires a frequency greater than one.
7. Compare range and the selected quartiles
Quartiles are the medians of the lower and upper halves, excluding the overall median for an odd count. A singleton repeats its only value.
Sorted values and frequency audit
Each row represents an exact distinct value with all its repetitions. First and last ranks locate observations in the fully sorted dataset. Equivalent decimals and fractions are combined. Percentages use the unrounded total count.
Showing distinct rows 1–4 of 4. Print includes this page; CSV includes every row.
| Value | Frequency | Cumulative count | Sorted rank interval | Relative frequency | Percent | Cumulative percent | Mode |
|---|---|---|---|---|---|---|---|
| Valuepoints | — | ||||||
| Valuepoints | Modal value | ||||||
| Valuepoints | — | ||||||
| Valuepoints | — |
Understand the center without losing the observations
An arithmetic average with an exact audit
The sum is calculated before division, with exact fractions retained through each operation. This matters when small values sit beside very large positive and negative observations. The resulting mean is therefore tied to the supplied data rather than to the order in which a floating-point accumulator happened to add them. A separate rounded view remains convenient for a worksheet or concise report.
A median based on actual sorted ranks
The calculator distinguishes a middle position from the numerical value stored at that position. An even count uses both central observations and averages their values. Frequency rows preserve the same rank logic through cumulative intervals, so a compressed table can describe a large sample without changing its median. Close exact values remain in the right order even when their rounded displays look identical.
Every observed mode, with a visible convention
Tied maximum counts produce a complete set of modal values. The repetition selector makes the all-distinct case explicit instead of presenting conflicting textbook conventions as an arithmetic error. Equivalent rational sources share a frequency, while nearby but different values stay separate. The frequency audit connects each mode back to its count and identifies whether the dataset is unimodal, bimodal or has a larger tie.
Mean, median and frequency formulas with a worked dataset
Here is a distinct observed value, is its repetition count, is the number of distinct values, and is the observation at sorted rank . The repeated-mode convention additionally requires . For , the sum is , the count is , the mean is , the median is , and the only mode is with frequency .
For , the two central values are and , so . No value repeats. Under exclusive median-of-halves quartiles, and . Linear interpolation uses and gives and for the same data.
Why the source representation and definitions stay visible
The active data is checked first
- Invalid tokens and missing punctuated cells never become zero or disappear silently.
- Both editors retain their buffers, and only the active method enters the calculation.
- Nonnegative integer frequencies represent repetitions, with zero-count exclusions reported.
- Numerical sorting and duplicate detection use exact values rather than rounded labels.
Different conventions remain reviewable
- Mode repetition and quartile methods are selected explicitly and preserved in exports.
- Known source strings, effective count and rank intervals remain distinct quantities.
- Exact rational results stay separate from decimal display precision.
- Paged rows reduce browser work while copying and CSV retain the complete frequency audit.
Useful for learning, teaching and checking numerical summaries
Students comparing three meanings of center
A dataset with an extreme observation can have a mean far from its median and mode. Use the worked examples to compare these measures without deleting the observation that creates the difference. Follow the sorted ranks and exact sum before interpreting the result. The best description of a dataset depends on the question, its distribution and how the observations were collected, not just on which output is easiest to calculate.
Teachers demonstrating boundary cases
Move between odd and even counts, a singleton, a complete frequency tie and two genuinely tied modes. Compare the three quartile conventions on the same retained dataset, then switch to an equivalent frequency representation. Exact decimal and fraction examples help separate data interpretation from rounding behavior. The ordered mathematical working and full frequency export support a reproducible explanation rather than an isolated answer with no visible source assumptions.
People checking small numerical datasets
Paste a supported list or local file to check an arithmetic total, inspect repetitions and identify middle observations. A custom unit label keeps the numerical summary connected to a shared measurement unit without pretending to convert mixed units automatically. The result describes the supplied sample only. Population inference, missing-data treatment, grouped-class estimates and arbitrary-weight models require additional assumptions that this observation-count calculator does not invent.
How it works in three quick steps.
Choose a raw list or a frequency representation
Paste one numerical dataset into the raw editor, or supply value and whole-number frequency rows. A local CSV or text file can populate the selected editor. Check the decimal-point convention, source unit and active method before proceeding. Each input method retains its own buffer, and invalid observations are reported instead of being dropped or truncated silently.
Review exact results and the selected definitions
Read the arithmetic mean, median and all modal values alongside the count, sum and range. Choose the mode convention and quartile method explicitly. Follow the ordered working and inspect the sorted frequency rank intervals to identify the observations behind the median. Decimal precision changes the rounded view while the exact rational certificates remain unchanged.
Retain the complete dataset audit
Compare the full sorted frequency table through its pages. Copy or download the calculation to preserve every distinct value, multiplicity and modal flag, including rows hidden from the current view. Share the active dataset when the encoded link fits the size limit. Before printing a PDF, choose the visible working and frequency page that you want included.
Keep a complete, reproducible calculation record
Copy readable exact working
The copied summary keeps the chosen quartile and mode definitions alongside every summary statistic, the complete mode set and ordered calculation steps. Mathematical expressions become readable plain text because a clipboard destination may not support visual typesetting. The sorted frequency representation is included in full, so the copied record remains useful even when only one page of rows was visible in the browser.
Download the full frequency audit
CSV retains the literal active source, exact numerical outputs, rounded views, counts and rank intervals. Relative frequencies are calculated from the unrounded count, and modal values are marked on every matching row. Display switches and pagination do not truncate this export. Formula-like source strings and unit labels are protected against spreadsheet execution. Save the file before editing the data if you need a record of the earlier calculation.
Print the current review view
Use the browser's PDF destination to save a mathematical record with accessible typeset values, the visible ordered working and the currently selected frequency page. Editing controls and supporting article sections are removed from print. Choose the relevant frequency page before printing; CSV remains the complete representation for larger tables. Long certificates receive an explicit CSV notice so a very large fraction cannot silently run beyond the printable width.
Frequently Asked Questions
What is the difference between mean, median and mode?
Why can a dataset have no repeated mode or several modes?
Are equivalent fractions and decimals counted as the same value?
How do value and frequency rows affect the median?
Why do different quartile methods produce different answers?
Does the calculator remove outliers or missing values?
Which separators and number formats can I paste?
How are calculations and decimal rounding kept accurate?
What are the dataset and sharing limits?
What do copying, CSV and printed PDFs include?
Related calculators
A numerical summary should still explain which data it describes
Mean, median and mode compress a dataset in three different ways. The arithmetic mean balances the numerical total across all observations. The median is located through sorted ranks, while the observed mode describes repeated exact values. Their differences can be informative rather than contradictory. An extreme observation changes the arithmetic total and can shift the mean considerably, while the central sorted ranks may stay at the same values. A frequency tie says something different again: the supplied data has no single most frequent observed value under the selected definition.
This page treats a frequency row as a compact description of repeated observations. It does not treat arbitrary reliability or probability weights as whole observations, infer a grouped interval's unknown internal values, or guess that a missing item was intended to be zero. Exact rational parsing gives equivalent decimal and fraction sources the same numerical identity. It also preserves small differences between large values and retains cancellation when large positive and negative terms surround a much smaller observation. Those arithmetic guarantees apply to the entered numbers, independently of how well the measurements represent a population.
The working and frequency audit are designed to make the compression reversible enough to inspect. Cumulative counts identify the ranks behind the median; each distinct value keeps its multiplicity; the total and count determine the mean; and modal flags identify every maximum-frequency tie. Quartile methods remain explicit because finite-sample conventions can disagree without either computation being internally wrong. Display precision affects only a separately labelled numerical view. Together, the exact summaries, active source record and complete exports help a learner or reviewer follow an answer back to the numerical dataset that produced it.
Who maintains this page
Ownership and review
Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.
Methodology
Equations are checked by substituting worked examples into the stated relationship and comparing the result with the interactive implementation.
Read the editorial methodologyDates and sources
Review dates change only after a substantive method or content check.
Keep building