Mean, Median, Mode Calculator
Enter up to 10 numbers to calculate the mean (arithmetic average), median (middle value), and mode (most frequent value). Also shows range, sum, count, min, and max.
Mean, median, and mode are the three "measures of central tendency" that describe where the typical value in a dataset lies. Each tells you something slightly different and is useful in different contexts. The mean (arithmetic average) is what most people think of when they say "average" — sum the values and divide by count. The median is the middle value when data is sorted — it splits the dataset into halves. The mode is the most frequently occurring value.
This calculator returns all three measures from up to 10 data values, along with related statistics: range, sum, count, minimum, and maximum. Use it for homework problems, basic data analysis, or quick exploratory statistics. For larger datasets, statistical software (Excel, R, Python, SPSS) is more appropriate.
Each measure has different sensitivity to outliers. The mean is highly affected by extreme values — a single billionaire in a sample dramatically raises average wealth. The median is robust to outliers; it only reflects the middle position. The mode tells you the most common value, which is most useful for categorical or discrete data. For income data, median is preferred over mean precisely because extreme wealth distorts the mean upward. For symmetric data without outliers, all three measures tend to be close together.
Inputs
Results
Mean
12
Median
10
Mode
10
Range
15
Sum
60
Count
5
Min
5
Max
20
Geometric Mean
10.844718
Formula
How to use this calculator
- Enter up to 10 numeric values.
- Leave unused slots at 0 (calculator detects and ignores).
- Calculator returns mean, median, mode, range, sum, count, min, max.
- For larger datasets, use statistical software (Excel, R, Python).
- For categorical data, use mode (numeric calculator doesn't apply).
Worked examples
Test score analysis
**Scenario:** Student test scores: 75, 80, 85, 85, 90, 95. **Calculation:** Mean: (75+80+85+85+90+95)/6 = 510/6 = 85. Median (sorted): (85+85)/2 = 85. Mode: 85 (appears twice). Range: 95-75 = 20. **Result:** Mean = Median = Mode = 85. Data is symmetric and unimodal. Range of 20 indicates moderate spread. This is a healthy distribution suggesting consistent student performance.
Income data (right-skewed)
**Scenario:** Annual incomes in $1000s: 25, 30, 35, 40, 45, 250 (CEO included). **Calculation:** Mean: (25+30+35+40+45+250)/6 = 425/6 = 70.8. Median: (35+40)/2 = 37.5. Mode: none (all unique). **Result:** Mean $70.8K is much higher than median $37.5K due to single CEO income of $250K. This is right-skewed data. For describing "typical" earnings, median ($37.5K) better represents the worker; mean ($70.8K) is pulled up by the outlier.
Daily rainfall (mode useful)
**Scenario:** Daily rainfall in inches over a week: 0, 0, 0.5, 0, 0.2, 0.3, 0. **Calculation:** Mean: 1.0/7 = 0.14 in. Median: 0 (4th value when sorted). Mode: 0 (appears 4 times). **Result:** Mode = 0 indicates rain is rare. Median = 0 (more than half of days had no rain). Mean 0.14 in includes the rainy days. For weather descriptions: "most days had no rain" (mode) is more meaningful than "average rainfall 0.14 inches" (mean).
When to use this calculator
**Use these measures of central tendency for:**
- **Test scores and grading**: mean for class averages, median for typical performance. - **Salary analysis**: median for "typical worker", mean for total payroll. - **Quality control**: mean for measurement precision, mode for common defects. - **Survey data**: mode for most common response, median for rank-order data. - **Real estate**: median home price (mean is skewed by mansions). - **Education**: mean GPA for ranking, median for student performance comparison. - **Healthcare**: median age of patients (skewed data), mean for vital signs. - **Sports statistics**: mean for performance, mode for most common play type.
**Strengths and weaknesses:**
**Mean:** - Uses all data values. - Standard mathematical operation. - Sensitive to outliers (problem). - Best for symmetric data.
**Median:** - Not affected by outliers. - Better for skewed data. - Requires sorting (slower for large data). - Doesn't use specific values, just positions.
**Mode:** - Identifies most common value. - Works with categorical data. - May not exist or be unique. - Less stable across samples.
**Distribution shape:**
- **Symmetric and unimodal**: mean ≈ median ≈ mode. - **Right-skewed**: mode < median < mean. - **Left-skewed**: mean < median < mode. - **Bimodal**: two distinct peaks, average doesn't represent either.
**Decisions based on these measures:**
- **Pricing decisions**: median competitive price. - **Performance review thresholds**: mean or median of historical data. - **Quality acceptance**: mean within tolerance. - **Inventory management**: mode of customer purchases. - **Marketing targeting**: median of customer demographic data.
**Statistical software:**
For datasets larger than 10 values: - **Excel**: AVERAGE, MEDIAN, MODE. - **R**: mean(), median(), Mode(). - **Python (pandas)**: .mean(), .median(), .mode(). - **SPSS**: descriptive statistics.
**Common reporting:**
- **Always specify which measure** when reporting "average." - **Note skewness** if mean and median differ significantly. - **Report mode for categorical data** even if mean/median don't apply. - **Include range or standard deviation** for complete picture.
**Limitations:**
- These three measures alone don't capture data shape. - For deeper analysis: standard deviation, quartiles, percentiles, histograms. - Outliers may be data errors or true extreme values. - Sample size affects reliability of all measures.
**Beyond basic measures:**
- **Trimmed mean**: removes top/bottom 10-25%, then averages. - **Weighted mean**: data values weighted differently. - **Geometric mean**: multiplicative average for ratios. - **Harmonic mean**: appropriate for rates.
**Practical tips:**
- **Sort data when calculating median**: critical step. - **Check for missing values**: NaN, zero placeholders. - **Outlier check**: if mean differs significantly from median, investigate. - **Sample vs population**: notation may differ (e.g., x̄ for sample mean).
Common mistakes to avoid
- Confusing average with mean. They're synonyms but "average" is informal.
- Using mean for skewed data. Median is better for skewed/outlier-rich data.
- Forgetting median calculation requires sorted data.
- Reporting mean of categorical data. Mode is appropriate for categorical data.
- Calling mean a "measure of center" without checking skewness.
- Reporting mode = 0 as if dataset has no center. 0 may be the actual mode.
- Using these measures for small samples without acknowledging uncertainty.