Skip to content

Average Calculator — Free Online Mean, Median, Mode Calculator

Calculate the mean, median, mode, range, sum, and count for any set of numbers with flexible input formats and instant results.

7 valid numbers entered

Parsed Values

10.000015.000020.000025.000030.000035.000040.0000

Results

25.0000

Mean (Average)

Mean25.0000
Median25.0000
ModeNo mode
Range30.0000
Sum175.0000
Count7

Formula

Mean = 175.00 / 7 = 25.0000

How to Use the Average Calculator

  1. Enter your numbers: Type or paste your data into the text area. Numbers can be separated by commas, spaces, semicolons, or new lines. You can enter integers, decimals, and negative numbers. The calculator is flexible with input formats — copy data directly from spreadsheets, text files, or other sources. Invalid entries (like letters) are automatically ignored.
  2. Review parsed values: Below the input field, you will see your numbers displayed as individual tags. This visual confirmation helps you verify that all values were correctly parsed. The count of valid numbers is shown below the text area. If a number is missing, check your input for formatting issues like double commas or stray characters.
  3. Read the results: The results panel instantly displays six statistical measures: the mean (arithmetic average) in large text, plus the median, mode, range, sum, and count. The formula panel shows the exact computation used to calculate the mean. All results update in real time as you add or remove numbers from the input field.

You can paste data directly from Excel, Google Sheets, or CSV files. The calculator automatically handles various delimiters and formats. There is no limit to the number of values you can enter, though extremely large datasets may take a moment to process.

Average Formulas

Arithmetic Mean (Average)

Mean = (x1 + x2 + ... + xn) / n

Median (Odd Count)

Median = x[(n+1)/2] (middle value when sorted)

Median (Even Count)

Median = (x[n/2] + x[n/2 + 1]) / 2

Range

Range = Max(x) - Min(x)

Variables Explained

  • x1, x2, ..., xn: The individual data values in your dataset. These can be any real numbers including negatives and decimals. The subscript indicates their position in the dataset.
  • n: The total count of values in the dataset. This is the number of valid entries you provide. A larger n generally produces more reliable statistical measures.
  • Mean: The arithmetic average, calculated by dividing the sum of all values by the count. It represents the "center of gravity" of the data and is affected by every value, including outliers.
  • Median: The middle value in a sorted dataset. For an even number of values, it is the average of the two central values. The median is resistant to outliers and skewness.
  • Mode: The most frequently occurring value. A dataset may have no mode (all values unique), one mode (unimodal), or multiple modes (multimodal).

Step-by-Step Example

Calculate the mean, median, mode, and range for the dataset: 12, 15, 15, 18, 22, 25, 30

  1. Sum all values: 12 + 15 + 15 + 18 + 22 + 25 + 30 = 137
  2. Count values: n = 7
  3. Mean: 137 / 7 = 19.5714
  4. Sort the data (already sorted): 12, 15, 15, 18, 22, 25, 30
  5. Median (middle value, position 4): 18
  6. Mode (most frequent): 15 (appears twice)
  7. Range: 30 - 12 = 18

Notice how the three measures of central tendency (mean, median, mode) give different values: 19.57, 18, and 15 respectively. This is because the data is slightly right-skewed, with the higher values pulling the mean above the median.

Practical Examples

Example 1: Patricia's Class Test Scores

Patricia teaches a class of 12 students. Their exam scores are: 78, 82, 85, 85, 88, 90, 91, 92, 94, 95, 97, 100. She enters these scores into the calculator to analyze class performance:

  • Mean: (78+82+85+85+88+90+91+92+94+95+97+100) / 12 = 89.75
  • Median: (90 + 91) / 2 = 90.5 (average of 6th and 7th values)
  • Mode: 85 (appears twice)
  • Range: 100 - 78 = 22 points

Patricia observes that the class average is nearly 90, and the median is slightly higher, suggesting strong overall performance. The 22-point range indicates some spread, with one student scoring 78 while the top scorer hit 100. She may want to provide additional support to students below the median. For a deeper analysis of score spread, she could use our standard deviation calculator.

Example 2: Greg's Monthly Expenses

Greg tracks his monthly grocery spending over 6 months: $420, $385, $510, $395, $440, $1,200. He calculates the average to budget for next month:

  • Mean: ($420+$385+$510+$395+$440+$1200) / 6 = $558.33
  • Median: ($420 + $440) / 2 = $430.00
  • Mode: No mode (all unique values)
  • Range: $1,200 - $385 = $815

The mean ($558) is significantly higher than the median ($430) because of the $1,200 outlier month (holiday shopping). For budgeting, Greg should use the median of $430 as a more realistic estimate of typical monthly spending, rather than the mean which is inflated by one exceptional month.

Example 3: Maria's Running Times

Maria logs her 5K running times (in minutes) over 10 runs: 28.5, 27.2, 29.1, 26.8, 27.2, 28.0, 26.5, 27.8, 27.2, 28.3. She wants to know her average pace and consistency:

  • Mean: 276.6 / 10 = 27.66 minutes
  • Median: (27.2 + 27.8) / 2 = 27.5 minutes
  • Mode: 27.2 minutes (appears 3 times)
  • Range: 29.1 - 26.5 = 2.6 minutes

Maria's average 5K time is 27.66 minutes. Her mode of 27.2 suggests she frequently runs close to that pace. The tight 2.6-minute range shows impressive consistency. She can set a realistic goal of breaking 27 minutes based on her best time of 26.5 and her overall trend.

Measures of Central Tendency Comparison

Measure Strengths Weaknesses Best For
Mean Uses all data points Sensitive to outliers Symmetric data, no outliers
Median Resistant to outliers Ignores extreme values Skewed data, income, prices
Mode Works with categorical data May not exist or be unique Most popular item, surveys
Range Simple to calculate Only uses two values Quick spread assessment
Weighted Mean Accounts for importance Needs weight assignments GPA, portfolio returns
Geometric Mean Good for rates of change Cannot handle zero/negatives Investment returns, growth

Tips and Complete Guide

Choosing the Right Average

The "right" average depends on your data and what you want to convey. For normally distributed data with no extreme outliers, the mean is the best choice because it incorporates every data point. For skewed distributions (like income, home prices, or wait times), the median provides a more representative "typical" value. For categorical data or when you need the most common value (like the most popular shoe size), use the mode. When reporting statistics, consider presenting multiple measures to give the fullest picture of your data.

The Impact of Outliers on the Mean

Outliers can dramatically shift the mean while leaving the median nearly unchanged. Consider the salaries ($50K, $55K, $60K, $65K, $70K): the mean is $60K and the median is $60K. Now add a CEO earning $5M: the mean jumps to $757K while the median only shifts to $62.5K. This is why news reports about "average" income or wealth can be misleading if they use the mean instead of the median. When you encounter averages in the real world, always consider whether outliers might be skewing the result.

Averages in Different Fields

Different fields use specific types of averages. Finance uses the geometric mean for compound returns: if your investment returns 10%, -5%, and 15% over three years, the geometric mean (about 6.3%) better represents your actual annualized return than the arithmetic mean (6.67%). Science uses the harmonic mean for rates: if you drive 60 mph going and 40 mph returning, your average speed is the harmonic mean (48 mph), not the arithmetic mean (50 mph). Sports statistics use weighted averages for batting averages and efficiency metrics. Understanding which average applies prevents common analytical errors.

Interpreting the Range

While the range is easy to calculate, it only tells you about the two most extreme values. Two datasets can have the same range but very different distributions. For example, 100 and 100 both have a range of 99, but the first dataset is tightly clustered around 50 while the second is spread out. For a more nuanced understanding of data spread, use the interquartile range (IQR) or standard deviation. Our standard deviation calculator provides these advanced measures.

Common Mistakes to Avoid

  • Using the mean for skewed data: When data is heavily skewed (like income, home prices, or website load times), the mean can be misleading. Report the median alongside the mean, or use the median as your primary measure of central tendency.
  • Averaging averages incorrectly: You cannot simply average two averages unless both groups have the same sample size. If Group A (10 people) averages 80 and Group B (90 people) averages 70, the overall average is not 75 — it is (80x10 + 70x90)/100 = 71.
  • Ignoring sample size: An average based on 3 observations is far less reliable than one based on 300. Always consider the count alongside the average when making decisions or drawing conclusions.
  • Confusing median with mode: The median is the positional middle value, while the mode is the most frequent value. They can be the same number but often are not. In 10, the median is 2 and the mode is also 2 — coincidentally equal but calculated differently.
  • Forgetting that the average may not appear in the data: The mean of 4 is 2.33, a value not present in the original data. The average is a theoretical center point, not necessarily an observed data point.

Frequently Asked Questions

The mean is the arithmetic average: sum all values and divide by the count. The median is the middle value when data is sorted; for an even count, it is the average of the two middle values. The mode is the value that appears most frequently. For example, in the set {2, 3, 3, 5, 10}: the mean is 4.6, the median is 3, and the mode is 3. Each measure of central tendency tells you something different about your data. The mean is sensitive to outliers, the median resists extreme values, and the mode identifies the most common observation.

Use the median when your data contains outliers or is skewed. For example, if five employees earn $40,000, $42,000, $45,000, $48,000, and $500,000, the mean salary is $135,000 — far higher than what most employees earn. The median is $45,000, which better represents the typical salary. Income distributions, home prices, and response times are classic cases where the median is more informative. Use the mean when data is roughly symmetric and outlier-free, such as test scores in a large class.

A dataset has no mode when every value appears exactly once — no value is repeated more than any other. For example, {1, 2, 3, 4, 5} has no mode. A dataset can also be multimodal: {1, 1, 2, 3, 3} has two modes (1 and 3), making it bimodal. The mode is most useful for categorical data or discrete data where repetitions are meaningful, such as the most frequently purchased shoe size. For continuous measurements, the mode is often less informative than the mean or median.

A weighted average assigns different importance to each value. Multiply each value by its weight, sum the products, then divide by the sum of the weights. For example, if your exam scores are 90 (weight 3), 80 (weight 2), and 70 (weight 1): Weighted Average = (90x3 + 80x2 + 70x1) / (3+2+1) = (270+160+70) / 6 = 500/6 = 83.33. Weighted averages are used in GPA calculation, financial portfolio returns, and any situation where some data points matter more than others.

The range is the difference between the largest and smallest values in a dataset. For {3, 7, 12, 15, 22}, the range is 22 - 3 = 19. It provides a quick measure of data spread or variability. A large range indicates widely dispersed data, while a small range suggests data points are clustered together. However, the range only considers two values and ignores the distribution in between. For a more robust measure of spread, consider the standard deviation or interquartile range using our standard deviation calculator.

Yes, the average formula works identically with negative numbers. Simply sum all values (including negatives) and divide by the count. For example, the mean of {-5, -2, 0, 3, 9} is (-5 + -2 + 0 + 3 + 9) / 5 = 5 / 5 = 1.0. Negative numbers commonly appear in temperature data, financial profit/loss, elevation changes, and scientific measurements. Our calculator handles negative values correctly in all computations including mean, median, mode, and range.

Technically, you can calculate an average from just one number (the average of a single value is itself), but meaningfulness depends on context. For statistical analysis, larger samples produce more reliable averages. The Central Limit Theorem suggests that samples of 30 or more tend to produce normally distributed means. In practice, 10-30 data points give a reasonable estimate for many purposes. For scientific research, sample size calculations determine the minimum needed for statistical power. More data generally means a more representative and stable average.

Related Calculators

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: February 23, 2026

Sources