Average Calculator – Mean, Median, Mode & Range
Calculate the mean, median, mode, and range of any list of numbers instantly. Enter comma-separated values for a complete statistical summary. Free math tool.
What is an Average (Mean)?
The arithmetic mean is the most common measure of central tendency. It is calculated by summing all values and dividing by the count:
Mean = (x₁ + x₂ + ... + xₙ) / n
Example: Find the average of 8, 12, 7, 15, 3:
- Sum: 8 + 12 + 7 + 15 + 3 = 45
- Count: 5
- Mean: 45 / 5 = 9
The mean is sensitive to extreme values (outliers). If one value in the set above was 100 instead of 15: Mean = (8 + 12 + 7 + 100 + 3) / 5 = 26. This 26 does not represent any of the actual values well — the median would be more informative in this case.
Our calculator also computes median, mode, range, variance, and standard deviation — a complete statistical summary of your data set.
Mean vs Median vs Mode: Which to Use?
These three measures of central tendency each describe the "typical" value differently:
| Measure | Definition | Best Used When | Affected by Outliers |
|---|---|---|---|
| Mean | Sum ÷ count | Data is symmetric, no extreme outliers | Yes — strongly |
| Median | Middle value when sorted | Data has outliers or is skewed (income, prices) | No — robust |
| Mode | Most frequent value | Categorical data, finding most common outcome | No |
Classic example — US income: In 2023, US median household income was ~$74,000, while mean household income was ~$105,000. The mean is pulled upward by the super-wealthy. The median better represents a typical household.
When mode is most useful: Shoe sizes (the store needs to stock the most common size), survey responses ("most people chose option B"), or any categorical data.
In a perfectly symmetric distribution (like a bell curve), mean = median = mode. The further these diverge, the more skewed and asymmetric your data is.
Weighted Average: When Not All Values Are Equal
A weighted average gives different importance to different values based on assigned weights:
Weighted Average = Σ(value × weight) / Σ(weights)
GPA calculation example:
| Course | Grade Points | Credit Hours (Weight) | Weighted Score |
|---|---|---|---|
| Physics | 3.7 (A−) | 4 | 14.8 |
| English | 3.3 (B+) | 3 | 9.9 |
| History | 4.0 (A) | 3 | 12.0 |
| PE | 4.0 (A) | 1 | 4.0 |
| Total | 11 | 40.7 |
Weighted GPA = 40.7 / 11 = 3.70
Simple (unweighted) average of the 4 grades: (3.7 + 3.3 + 4.0 + 4.0) / 4 = 3.75 — different because the heavier-credit Physics course drags it down when weighted.
Other weighted average applications: investment portfolio returns (weighted by dollar amount), student test scores (exam weighted 60%, homework 40%), sports statistics, and consumer price index calculations.
Range, Variance, and Standard Deviation
Knowing the center of your data is not enough — you also need to understand its spread:
- Range: Maximum − minimum. Simple but affected by outliers. Data set {2, 5, 5, 6, 100}: Range = 98, though 98% of values are between 2 and 6.
- Variance: Average of squared deviations from the mean. Measures how spread out data is, but in squared units (harder to interpret directly).
- Standard Deviation (σ or SD): Square root of variance. In the same units as your data — the most useful spread measure.
Calculating standard deviation step by step (data: 4, 7, 13, 16):
- Mean = (4 + 7 + 13 + 16) / 4 = 10
- Deviations from mean: −6, −3, +3, +6
- Squared deviations: 36, 9, 9, 36
- Variance = (36 + 9 + 9 + 36) / 4 = 22.5 (population) or / 3 = 30 (sample)
- Standard deviation = √22.5 = 4.74 (population)
The 68-95-99.7 rule for normal distributions: 68% of data falls within 1 SD, 95% within 2 SD, 99.7% within 3 SD of the mean.
Geometric Mean vs Arithmetic Mean for Growth Rates
For comparing rates of growth or compound returns, the geometric mean is more appropriate than the arithmetic mean:
Geometric Mean = (x₁ × x₂ × ... × xₙ)^(1/n)
Example — Investment returns: Your portfolio returns +50% in year 1 and −50% in year 2.
- Arithmetic mean: (50% + (−50%)) / 2 = 0% average return
- Actual result: $10,000 → $15,000 → $7,500 — you lost 25% of your money!
- Geometric mean: √(1.50 × 0.50) − 1 = √0.75 − 1 = −13.4% per year
The geometric mean reflects the true compound annual growth rate (CAGR). Always use geometric mean for investment returns, population growth rates, and any compounding scenario. The arithmetic mean will overstate performance when returns are volatile.
CAGR formula: CAGR = (End Value / Start Value)^(1/years) − 1
Example: $10,000 grows to $17,500 over 5 years: CAGR = (17,500/10,000)^(1/5) − 1 = 1.75^0.2 − 1 = 11.84% per year.
Practical Average Calculations in Everyday Life
Averages appear constantly in daily decisions:
| Scenario | Numbers | Average | Insight |
|---|---|---|---|
| Weekly running mileage | 8, 12, 0, 10, 15, 11, 0 | 8 miles/day avg (56 total) | 0s (rest days) lower the average significantly |
| Monthly expenses Jan–Jun | $2,100 / $1,900 / $2,400 / $2,200 / $1,850 / $2,150 | $2,100/month | Budget accordingly for consistent months |
| Exam scores (need 70% pass) | 65, 72, 58, 80 | 68.75% — failing by 1.25% | One more exam needed to pull average up |
| 5 job salary offers ($K) | 52, 55, 58, 62, 120 | Mean: $69.4K — Median: $58K | The outlier ($120K) makes mean misleading |
The salary example shows why median is often more useful. When evaluating market salary data, always ask whether you are looking at mean or median — the difference can be $10,000–$30,000 in practice.
Harmonic Mean: The Right Average for Rates and Ratios
The harmonic mean is the least known of the three Pythagorean means (arithmetic, geometric, harmonic), but it is the correct choice whenever you are averaging rates, speeds, or ratios where the denominator varies:
Harmonic Mean = n / (1/x₁ + 1/x₂ + ... + 1/xₙ)
Classic example — average speed: You drive to work at 60 km/h and return at 40 km/h. What is your average speed for the round trip?
- Arithmetic mean: (60 + 40) / 2 = 50 km/h — WRONG
- Harmonic mean: 2 / (1/60 + 1/40) = 2 / (0.0167 + 0.025) = 2 / 0.0417 = 48 km/h — correct!
Why is the arithmetic mean wrong? Because you spend more time at the slower speed. If the trip is 120 km each way: going takes 2 hours (120/60) and returning takes 3 hours (120/40). Total: 240 km in 5 hours = 48 km/h.
The harmonic mean is always ≤ the arithmetic mean, and the gap increases as the values become more spread apart. Other uses include averaging price-to-earnings ratios in finance and averaging fuel efficiency across different vehicles in a fleet.
Averages in Data Science and Running Analytics
Modern running analytics platforms generate enormous amounts of data, and understanding which average to apply is essential for meaningful analysis:
| Running Metric | Best Average Type | Why |
|---|---|---|
| Weekly mileage over a season | Arithmetic mean | Simple total context; all weeks weighted equally |
| Average pace across runs of different distances | Weighted mean (weight by distance) | A 20 km run should count more than a 3 km jog |
| Average speed for out-and-back courses | Harmonic mean | Time spent at each speed differs |
| Year-over-year improvement rate | Geometric mean | Compounding percentages over time |
| Typical heart rate during a run | Median or trimmed mean | Outlier spikes from stopping/starting distort arithmetic mean |
Trimmed mean (truncated mean): A useful hybrid that removes the top and bottom X% of values before computing the arithmetic mean. A 10% trimmed mean drops the highest 10% and lowest 10%, then averages the rest. This is commonly used in scoring systems (Olympic figure skating drops the highest and lowest judge scores) and in analyzing running pace data where GPS errors can create extreme outlier values.
Moving average: In running training analysis, a 7-day or 30-day moving average of daily mileage smooths out day-to-day variation and reveals trends. Your training load might fluctuate between 0 and 20 km on individual days, but the 7-day moving average shows a steady upward trend from 40 to 55 km/week — much more informative for monitoring fitness progression and injury risk.
When analyzing your running data, always ask: what question am I trying to answer? The right average depends entirely on the question. "What was my typical weekly mileage?" (arithmetic mean). "At what pace did I actually run the most distance?" (weighted mean). "Am I improving year over year?" (geometric mean of improvement percentages).
Frequently Asked Questions
What is the difference between mean and average?
In everyday usage, 'mean' and 'average' refer to the same thing: the arithmetic mean, calculated as sum ÷ count. Technically, 'average' is a broader term that can refer to mean, median, or mode. In mathematics and statistics, 'mean' always refers specifically to the arithmetic mean unless specified otherwise (geometric mean, harmonic mean, etc.).
What if all numbers appear the same number of times — what is the mode?
If every value appears an equal number of times, there is no single mode — the dataset is amodal or all values are modes equally. In practice, statisticians often say 'no mode' exists. If two values share the highest frequency, the dataset is bimodal.
How do I calculate a weighted average?
Multiply each value by its weight, sum those products, then divide by the sum of all weights. Example: exam (80 points, worth 60%) and homework (90 points, worth 40%): Weighted average = (80×0.6 + 90×0.4) / (0.6+0.4) = (48+36) / 1 = 84.
When should I use median instead of mean?
Use the median when your data contains outliers or is heavily skewed. Classic examples: household income (a few billionaires pull up the mean), house prices (luxury homes skew the average), response times (a few slow responses inflate the mean). The median represents the 'typical' observation more fairly in these cases.
What is standard deviation and why does it matter?
Standard deviation measures the spread of your data around the mean. Low SD means data points are clustered close to the mean; high SD means they are spread out. For example, a class where everyone scores 70–75% has a lower SD than one where scores range from 40–100%. Investors use SD to measure volatility.
What is the geometric mean and when should I use it?
The geometric mean equals the nth root of the product of n values: (x₁ × x₂ × ... × xₙ)^(1/n). Use it for rates of change, investment returns, and growth rates where compounding applies. A portfolio returning +50% and −50% has an arithmetic mean of 0% but a geometric mean of −13.4% — reflecting the true loss.
How do I find the median of a dataset?
Sort the numbers from lowest to highest. If the count is odd, the median is the middle value. If even, the median is the average of the two middle values. Example: {3, 5, 7, 9, 11} → median = 7. Example: {3, 5, 7, 9} → median = (5+7)/2 = 6.
What is the range of a dataset?
Range = Maximum value − Minimum value. For {4, 8, 15, 16, 23, 42}: Range = 42 − 4 = 38. Range measures the total spread but is very sensitive to outliers. For more robust spread measurement, use interquartile range (IQR = Q3 − Q1) or standard deviation.