Updated Statistics Toolkit

Mean Calculator

Analyze datasets with arithmetic mean, weighted mean, geometric mean, harmonic mean, trimmed mean, frequency and grouped mean, multi-dataset comparison and outlier detection.

Global Dataset Input Multiple Mean Types Summary Statistics Outlier Detection & Comparison

Interactive Mean Calculator With Summary Statistics

Paste or type your numbers once in the global dataset box, then use the tabs to compute arithmetic, weighted, geometric, harmonic and trimmed means, handle frequency or grouped data, compare datasets and flag outliers.

This dataset is used by arithmetic, geometric, harmonic, trimmed mean, summary statistics, outlier detection and some comparison modes.

The summary shows the most common descriptive statistics based on your global dataset. For small samples the variance and standard deviation are computed using the sample formulas with denominator n − 1.

Make sure your data is entered in the Dataset & Summary tab. This tab reuses that dataset.

The arithmetic mean is the sum of all values divided by the count of values.

Weighted mean formula: Σ wᵢ xᵢ / Σ wᵢ

All values must be strictly positive to compute the geometric mean.

Geometric mean formula: (x₁ × x₂ × … × xₙ)1/n. This calculator uses logarithms to avoid overflow.

Harmonic mean is defined for non-zero values. Negative values are allowed but zeros are not.

Harmonic mean formula: n / Σ(1 / xᵢ).

Values are sorted and a percentage is removed from both tails before computing the mean.

For 10% trimmed mean, 10% of the smallest and 10% of the largest values are removed.
Mean from frequency table: Σ xᵢ fᵢ / Σ fᵢ
Grouped mean formula: Σ mᵢ fᵢ / Σ fᵢ, where mᵢ is the class midpoint.

Each dataset is summarized by count, mean and sample standard deviation.

Outliers are defined using the rule |x − mean| > k × standard deviation.

Mean Calculator – One Dataset, Many Ways To Average

The mean, or average, is one of the most frequently used summary statistics in mathematics, statistics and everyday data analysis. This Mean Calculator from MyTimeCalculator lets you compute multiple types of mean from the same dataset: arithmetic, weighted, geometric, harmonic, trimmed, frequency-based and grouped means. It also provides summary statistics, dataset comparison and outlier detection so you can see more than just a single number.

Suppose you have numerical data x₁, x₂, …, xₙ. Different mean formulas answer different questions about how to summarize or combine these values. Choosing the right version of the mean depends on the context, the measurement scale and how you want to treat extreme values or weights.

Arithmetic Mean

The arithmetic mean is the standard “average” taught in basic mathematics. If you have n observations x₁, x₂, …, xₙ, the arithmetic mean is

Mean = (x₁ + x₂ + … + xₙ) / n.

This is appropriate when each value contributes equally and you want a simple center of the data. In the calculator, the arithmetic mean tab reuses the global dataset, sums the values and divides by the count. A step-by-step table shows each xᵢ so you can check the calculation.

Weighted Mean

Sometimes different observations should contribute more or less to the final average. In that case you use weights w₁, w₂, …, wₙ and define the weighted mean as

Weighted mean = (Σ wᵢ xᵢ) / (Σ wᵢ).

For example, course grades might be weighted by credit hours, or survey responses by sample weights. In the weighted mean tab you enter values xᵢ and matching weights wᵢ. The calculator computes Σ wᵢ, Σ wᵢ xᵢ and the weighted mean, and displays a table with each product wᵢ xᵢ.

Geometric Mean

The geometric mean is useful for combining multiplicative changes such as growth rates, returns or ratios. For positive values x₁, x₂, …, xₙ, the geometric mean is

Geometric mean = (x₁ × x₂ × … × xₙ)1/n.

If r₁, r₂, …, rₙ are growth factors (for example 1.05 for +5%, 0.98 for −2%), the geometric mean gives the single constant growth factor that would produce the same overall effect. This calculator uses logarithms internally to compute the geometric mean safely for long products.

Harmonic Mean

The harmonic mean is appropriate when averaging rates, such as speeds or cost per unit, where values behave like “1 over something”. For non-zero values x₁, x₂, …, xₙ, the harmonic mean is

Harmonic mean = n / Σ(1 / xᵢ).

For example, if you drive equal distances at different speeds, the harmonic mean of the speeds gives the correct average speed over the whole trip. In the harmonic mean tab, the calculator computes Σ(1 / xᵢ) and then applies the formula.

Trimmed Mean

Extreme values can sometimes distort the arithmetic mean. A trimmed mean reduces the influence of outliers by removing a percentage of the smallest and largest values before averaging. For a chosen trim percentage α, the steps are:

  • Sort the data x₍₁₎ ≤ x₍₂₎ ≤ … ≤ x₍ₙ₎.
  • Compute the number of values to remove from each tail: k = floor(α × n).
  • Delete the smallest k and largest k values.
  • Compute the arithmetic mean of the remaining n − 2k values.

The trimmed mean tab implements this procedure. You choose the trim percentage per tail, and the tool shows the trimmed dataset and the resulting mean.

Mean from a Frequency Table

When data come in the form of distinct values xᵢ with associated counts fᵢ, you can compute the mean without expanding all repeated values. The formula is

Mean from frequency table = Σ xᵢ fᵢ / Σ fᵢ.

In the frequency mean tab you enter the list of distinct values and matching frequencies. The calculator multiplies xᵢ by fᵢ, sums these products and divides by the total frequency Σ fᵢ. A table shows each xᵢ, fᵢ and xᵢ fᵢ entry.

Mean for Grouped Data

For grouped data, the raw observations are summarized into class intervals [Lᵢ, Uᵢ) with frequencies fᵢ. The mean is approximated by using the midpoint mᵢ of each interval:

  • mᵢ = (Lᵢ + Uᵢ) / 2
  • Grouped mean ≈ Σ mᵢ fᵢ / Σ fᵢ

The grouped mean tab asks for each class as lower bound, upper bound and frequency on a separate line. It computes midpoints, multiplies by frequencies and applies the formula to obtain the grouped mean.

Summary Statistics from a Single Dataset

The Dataset & Summary tab takes your global dataset and computes a full set of descriptive statistics:

  • Count n and sum Σ xᵢ
  • Arithmetic mean (Σ xᵢ / n)
  • Median (middle value or average of two middle values when sorted)
  • Mode (value or values that appear most often)
  • Minimum, maximum and range (max − min)
  • Sample variance s² = Σ(xᵢ − mean)² / (n − 1) for n ≥ 2
  • Sample standard deviation s = √s²
  • Standard error of the mean SE = s / √n
  • Coefficient of variation, defined as 100 × s / mean when the mean is not zero

A table lists the sorted dataset so you can visually inspect the values used in the calculations.

Comparing Means Across Multiple Datasets

Often you want to compare the mean of two or three datasets, such as test scores from different classes or results from different experiments. The comparison tab lets you enter up to three datasets. For each dataset it computes

  • Count n
  • Arithmetic mean
  • Sample standard deviation

The results appear in a comparison table so you can see which dataset has the larger mean and how much variability there is around that mean.

Outlier Detection Using Mean and Standard Deviation

Outliers are values that lie far from the rest of the data. A common rule of thumb uses the mean and standard deviation. If x̄ is the sample mean and s is the sample standard deviation, then a value x is considered an outlier if

|x − x̄| > k × s,

where k is a chosen multiplier, such as 2, 2.5 or 3. In the outlier detection tab you choose k, and the calculator

  • Computes x̄ and s from the global dataset.
  • Computes the lower threshold L = x̄ − k s and upper threshold U = x̄ + k s.
  • Classifies each observation as an outlier if it falls outside [L, U].

Two tables list outliers and non-outliers separately so you can see which observations drive the spread of the data.

Choosing the Right Mean for Your Data

No single mean is best in every situation. Use this quick guide alongside the calculator tabs:

  • Use the arithmetic mean for everyday averaging when values are additive and all have equal importance.
  • Use the weighted mean when some observations should count more, for example due to sample design or credit hours.
  • Use the geometric mean for growth factors, percentage returns and ratios that combine multiplicatively.
  • Use the harmonic mean for rates, speeds and costs per unit where “per something” appears naturally.
  • Use a trimmed mean when you expect occasional extreme values that you do not want to dominate the average.
  • Use frequency and grouped means when data are summarized into counts or class intervals rather than raw values.

This Mean Calculator is designed for learning, teaching, exam preparation, quick data checks and exploratory analysis. It does not perform formal statistical tests on its own, but it gives you the key summary quantities that underlie many statistical methods.

Mean & Averages FAQs

Frequently Asked Questions About the Mean

Clarify when to use arithmetic, weighted, geometric, harmonic and trimmed means in your calculations.

In everyday language “average” often means the arithmetic mean, but in statistics there are several types of average, including the arithmetic mean, geometric mean, harmonic mean and median. This calculator makes the distinctions explicit so you can choose the version that matches your problem.

The median is more robust to extreme values than the arithmetic mean. When your data contain strong outliers or have a highly skewed distribution, the median or a trimmed mean may represent the center more reliably than the simple mean.

No. The geometric mean is defined for strictly positive values in this context because the calculation uses logarithms. If your dataset contains zero or negative values, the geometric mean tab will not compute a result and you should use another type of mean instead.

Using n − 1 in the denominator of the variance formula corrects a small bias that appears when you estimate population variance from a sample. This version, called the unbiased sample variance, is standard in most statistical software and textbooks for inference tasks.

No. This tool focuses on calculating descriptive statistics and different types of mean. For hypothesis tests, confidence intervals or regression models you should use dedicated statistical software, using the summary quantities from this calculator as inputs where needed.