Skip to main content

Mean, spread & quartiles

Average Calculator: Mean, Median, Mode & More

Calculate mean, median, mode, range, and geometric mean with real-time statistics from raw datasets.

By Jeff Beem

Updated

Dataset input

Numbers can be separated by commas, spaces, or new lines. Invalid entries are automatically ignored.

Statistical results

Mean (average)
30

Arithmetic center of the data

Median
30

Middle value when sorted

Mode
None

Most frequent value(s)

Range
40

Max โˆ’ Min (spread)

Geometric mean
26.05

For growth rates (requires all positive values)

Count
5

Number of values

Sum
150

Total of all values

Min / max
10 / 50

Smallest and largest values

Picking the right average for your data

Mean, median, and mode each describe a different kind of "center." Which one represents your data best depends on the shape of the dataset, not on which sounds most familiar.

When to use each

Median vs. mean

U.S. median household income runs near $80,000 while the mean is closer to $115,000. The gap between the two is the cleanest signal that a dataset is skewed: when they're close, the mean represents typical; when they diverge by 30% or more, the median usually does.

When mode is the only option

Mode is the only one of the three that handles non-numeric data. If you're tallying T-shirt sizes (S, M, L, XL) or survey answers, neither mean nor median makes sense; you want the most frequent response. With continuous numeric data (heights, prices, test scores) every reading tends to be unique, and the mode is either uninformative or technically every value at once.

Geometric mean for compounding

A portfolio that gains 50% one year and loses 50% the next has an arithmetic mean return of zero, but the actual outcome is a 25% loss (1.5 ร— 0.5 = 0.75). The geometric mean returns -13.4% per year, which matches the real result. Anything that compounds (returns, growth rates, ratios) needs geometric mean; additive quantities like heights and temperatures don't.

Range and its blind spot

Range is the cheapest measure of spread (max minus min) but it only sees the two endpoints. A dataset with one outlier and a tightly clustered middle will look identical to a uniformly spread dataset by range alone, which is why standard deviation or the interquartile range is what you reach for when the answer matters.

Average Calculator: Calculate Mean, Median, Mode & More

A 10% return followed by a 20% return averages to 14.89%, not 15%. The arithmetic mean overstates anything that compounds, which is why this calculator shows mean, median, mode, range, and geometric mean side by side instead of just one number.

Mean, median, and mode answer different questions

All three are "centers" of a dataset, but they describe slightly different things. Five Americans with incomes of $40K, $55K, $60K, $75K, and $300K have a mean of $106K and a median of $60K. The mean is what each person would have if you split the total evenly; the median is what the person in the middle of the lineup actually makes; the mode is the most common single value, when one exists. The 10/20/30/40/50 textbook example (mean = 30) hides this distinction because the values are evenly spaced. Real datasets rarely are.

How to Calculate the Average of a Dataset

The Average (Mean) Formula

The average (mean) is calculated by summing all values and dividing by the count. For example, to find the average of 10, 20, 30, 40, 50: Sum = 10 + 20 + 30 + 40 + 50 = 150. Count = 5. Mean = 150 รท 5 = 30. The calculator performs this calculation automatically as you enter your data, supporting numbers separated by commas, spaces, or new lines.
  • Formula:
    Mean = Sum รท Count
  • Example:
    For the dataset [10, 20, 30, 40, 50]: Sum = 150, Count = 5, Mean = 30

Understanding Mean, Median, and Mode: When to Use Each

Mean (Average)

The arithmetic center, calculated as sum divided by count. Best for normally distributed data without outliers. When to use median instead of mean: when your data has extreme values or is skewed (e.g. income, house prices).
  • Calculation:
    Sum of all values divided by the number of values
  • Best For:
    Normally distributed data without extreme outliers
  • Limitation:
    Sensitive to outliers (e.g., billionaire incomes skew the mean upward)

Median

The middle value when data is sorted. For even datasets, it's the average of the two middle numbers. More reliable than mean when outliers are present.
  • Calculation:
    Middle value(s) when data is sorted in ascending order
  • Best For:
    Skewed data with outliers (e.g., income distributions, test scores with extreme values)
  • Advantage:
    Not affected by extreme values, providing a more representative central tendency

Mode

The most frequently occurring value(s). Can be "None" if all values appear once, or multimodal if multiple values tie for highest frequency.
  • Calculation:
    Value(s) that appear most frequently in the dataset
  • Best For:
    Categorical data, survey responses, and identifying common values
  • Special Cases:
    Can be "None" (all values unique) or multimodal (multiple values tie for highest frequency)

Geometric Mean for Growth Rates: When to Use Geometric Mean

Geometric Mean Calculation

The geometric mean is calculated as the nth root of the product of n numbers. Use it for growth rates, interest calculations, and ratios. Geometric mean vs arithmetic mean: geometric accounts for compounding and is always less than or equal to the arithmetic mean, so it's the right choice for multiplicative processes.
  • Formula:
    Geometric Mean = (xโ‚ ร— xโ‚‚ ร— ... ร— xโ‚™)^(1/n)
  • Example:
    If an investment grows 10% in year 1 and 20% in year 2, the geometric mean growth rate is โˆš(1.10 ร— 1.20) - 1 โ‰ˆ 14.89%, not the simple average of 15%.
  • Requirement:
    All values must be positive for geometric mean calculation
  • Use Cases:
    Growth rates, interest calculations, ratios, and multiplicative processes

When to use geometric mean: for average growth rate, investment returns, or ratios, not for raw measurements like heights or temperatures.

Pasting data from anywhere

Supported input formats

Numbers can be separated by commas, spaces, or new lines, in any combination. Non-numeric entries are silently dropped, so pasting a column out of a spreadsheet works without cleanup. Decimals (10.5, 20.75) are kept at full precision; only the displayed values are rounded.
  • Comma-separated:
    10, 20, 30, 40, 50
  • Space-separated:
    10 20 30 40 50
  • Newline-separated:
    10 20 30 40 50

FAQ

How do I calculate the average of a dataset?

To calculate the average (mean), add all numbers together and divide by the count. For example, the average of 10, 20, 30, 40, 50 is (10 + 20 + 30 + 40 + 50) รท 5 = 30. The calculator automatically performs this calculation as you enter your data.

What is the difference between mean and median?

The mean is the arithmetic average (sum divided by count), while the median is the middle value when data is sorted. The median is more reliable when your data contains outliers. For example, in a dataset with billionaire incomes, the mean would be skewed upward, but the median would better represent typical income.

How do I calculate the average with zero values?

Zero values are included in the calculation. For example, the average of [0, 10, 20] is (0 + 10 + 20) รท 3 = 10. Zero values reduce the mean, so they are important to include for accurate statistics.

What does "Mode" mean in statistics?

The mode is the most frequently occurring value(s) in your dataset. If all values appear once, the mode is "None". If multiple values tie for the highest frequency, the dataset is "multimodal" and all tied values are shown. The mode is useful for identifying common values in categorical or discrete data.

When should I use geometric mean instead of arithmetic mean?

Use geometric mean for growth rates, interest rates, ratios, and percentages. It's calculated as the nth root of the product of n numbers. Geometric mean is always less than or equal to arithmetic mean and is better for multiplicative processes. All values must be positive for geometric mean to be calculated.

Can I enter data separated by commas, spaces, or new lines?

Yes! The calculator automatically handles numbers separated by commas (10, 20, 30), spaces (10 20 30), or new lines. Invalid entries (non-numeric characters) are automatically ignored, so you can paste data from spreadsheets or other sources without manual cleaning.

What is the range in statistics?

The range is the difference between the maximum and minimum values in your dataset. It shows the spread or volatility of your data. A larger range indicates more variation, while a smaller range indicates data points are closer together.

How does the calculator handle decimal numbers?

The calculator fully supports decimal numbers. You can enter values like 10.5, 20.75, or 30.123, and all calculations (mean, median, mode, etc.) will maintain decimal precision. Results are displayed with up to 2 decimal places for readability.

Mathematical Reference Note

Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.

Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.

Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.

ยฉ 2026 CalcRegistry Reference Last System Check: May 2026Free Online Utility Tools