Mean, median, mode and range: understand the answer
Enter numeric observations as decimals or integer fractions. Use semicolons or new lines when the interface uses decimal commas. In frequency mode, put one exact value and positive integer count on each line, separated by a semicolon or tab. Target mode keeps known observations unchanged and solves for the sum or average of k additional unrestricted numbers.
Enter the observations you actually have
The normal summary uses all supplied observations. For example,4;4;6;7;9 contains five values. Frequency input expresses the same data as 4;2,6;1,7;1 and 9;1 on separate lines. These counts repeat exact observations; they are not fractional weights or grouped intervals. Identical values are merged for the sorted frequency listing. Decimal and fraction entries can be mixed, such as 1.5 and 3/2, which represent the same value. In a decimal-comma interface, use semicolons or line breaks so that 1,5 remains one number.
Separate the arithmetic mean from the median
For the example, the sum is 30 and n=5, so the arithmetic mean is 6. Sorting gives 4,4,6,7,9, and the middle position is (5+1)/2=3; the median is therefore 6. For an even count, the median averages the values at positions n/2 and n/2+1. The page shows those positions and their actual values without expanding large frequencies into a huge array. The mean uses each magnitude, while the median uses order. Appending 100 gives mean 130/6≈21.6667 and median (6+7)/2=6.5, illustrating their different responses to an extreme observation.
Report all repeated modes and read the range
A mode is a value with the greatest frequency. In the five-value example,4 appears twice and is the only mode. If 4 and 7 each appear three times, both are listed. This calculator reports every tie at a maximum frequency of at least two; when every distinct value appears only once, it reports no repeated mode. The range is maximum minus minimum:9−4=5 in the example. It is not a typical value and does not describe how observations are distributed between the extremes. This calculator accepts numeric data; categorical labels need a different mode-only workflow.
Review potential flags without deleting observations
Quartiles use Hyndman–Fan type 7 linear interpolation, with zero-based h=(n−1)p. The IQR is Q₃−Q₁. The potential-outlier fences are L=Q₁−1.5IQR and U=Q₃+1.5IQR; only values strictly below L or above U are flagged. A value exactly on a fence is not flagged. For 4;4;6;7;9;100, the quartiles are 4.5 and 8.5, IQR=4 and fences are −1.5 and 14.5, so 100 is flagged. The flag does not establish an error or justify removal. All observations remain in the mean, median, modes and range. A different quartile convention can change the fences.
Work backwards from a target average
Choose target mode, enter the known data, target average M and number k of new observations. The known sum S and count n stay fixed. The required added sum is T=(n+k)M−S, and the required added average is T/k. With known values 4;6;8, S=18, n=3, M=7 and k=1, the unique missing number is 4×7−18=10. With k=2, the new values must sum to 17 and average 8.5. There are infinitely many unrestricted assignments, such as 8 and 9; using 8.5 twice is just one example. The tool imposes no grade, score, integer or nonnegative-value constraints, so check any real-world restrictions separately.
Keep exact values, units and supported bounds in view
Up to 5,000 raw values or frequency rows and 1,000,000 represented observations are accepted. Target mode also requires the final count n+k to stay within that bound. Each number supports 50 coefficient digits or 50 digits per integer fraction component, with scientific exponents from −40 to 40. Rational intermediate components are limited to 4,096 digits, and unsupported work gives an explicit error. Mean, median and range retain the data units. Significant digits change approximate displays rather than the underlying exact results. Expand long lists or copy, download CSV or print the complete report.
Use Statistics Calculator for geometric and harmonic means, quartiles and broader descriptive output. Standard Deviation Calculator examines variability beyond the range. Fraction Calculator helps read exact averages; Percentage Calculator compares changes on a relative scale. For study planning, Sample Size Calculator addresses precision under its own sampling assumptions.
ISO 3534-1:2006 supplies terminology and symbol context without certifying this tool. NIST/SEMATECH — Measures of Location explains center and the influence of extremes; NIST/SEMATECH — Measures of Scale explains range and IQR. R Core — Sample Quantiles documents interpolation conventions, and NIST/SEMATECH — Box Plots and Fences describes IQR fences. This page states its chosen type 7 quartiles and treats flags as prompts for review.
Common questions
How is the median found for an even number of values?
The data are sorted, and the values at one-based positions n/2 and n/2+1 are averaged exactly. Frequency counts act as repeated observations. Both positions and both values are shown.
What does no repeated mode mean?
Under this tool’s stated convention, if every distinct numeric value occurs once, there is no repeated mode. Otherwise every value tied at the highest frequency is listed, including equal repeated frequencies.
Do flagged outliers disappear from the answer?
No. Flags use strict 1.5IQR fences with type 7 quartiles and identify observations for review. All values remain in every summary; a flag alone is not evidence that a value is wrong.
Can a target average determine several missing numbers?
It determines their total and average. With one new number the answer is unique; with more than one unrestricted new number there are infinitely many assignments. The equal-value assignment shown is one example.
Can I enter arbitrary weights or score limits?
Frequency input accepts positive integer replication counts. It does not apply arbitrary fractional weights or constraints such as whole-number scores,0–100 bounds or nonnegative new values. Those restrictions must be assessed separately.
Are my observations uploaded, and what is exact?
Calculations run in your browser without uploading the dataset for computation. Rational summaries, median values and fences are exact within supported bounds; nonterminating decimal displays are approximate. Full fractions, lists and steps remain available for export.
Explore related tools
- Right Triangle Calculator
- Pythagorean Theorem Calculator
- Surface Area Calculator
- Circle Calculator
- Distance Calculator
- Area Calculator
- Slope Calculator
- Volume Calculator
- Triangle Calculator
- Confidence Interval Calculator
- Z-score Calculator
- Permutation and Combination Calculator
- Statistics Calculator
- Probability Calculator
- Sample Size Calculator
- Number Sequence Calculator
- Standard Deviation Calculator
- Random Number Generator
- Scientific Notation Calculator
- Big Number Calculator
- Root Calculator
- Log Calculator
- Matrix Calculator
- Rounding Calculator
- Exponent Calculator
- Fraction Calculator
- Scientific Calculator
- Percentage Calculator
- Percent Error Calculator
- Quadratic Formula Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Ratio Calculator