Skip to content

Mean Median Mode Range Calculator — Free Online Tool

Find the mean, median, mode, and range of any dataset instantly, plus geometric mean, harmonic mean, and summary statistics.

9 numbers detected

Arithmetic Mean

18.3333

Sum of values divided by count

Median

18.0000

Middle value when sorted

Mode

15.00

Most frequent value(s)

Range

22.0000

Max minus Min

Geometric Mean

17.1494

Harmonic Mean

15.9008

Count

9

Sum

165.00

Min

8.00

Max

30.00

Sorted Data

8.00, 12.00, 15.00, 15.00, 18.00, 20.00, 22.00, 25.00, 30.00

How to Use the Mean Median Mode Range Calculator

  1. Enter your numbers: Type or paste your dataset into the text area. Separate values with commas, spaces, or new lines. The calculator automatically detects valid numbers and displays the count below the input field. You can paste data directly from spreadsheets.
  2. Read the four primary measures: The top section displays the arithmetic mean (average), median (middle value), mode (most frequent value), and range (max minus min) in large, easy-to-read cards. Each card includes a brief definition for quick reference.
  3. Check additional means: Below the primary results, find the geometric mean and harmonic mean. The geometric mean is best for growth rates and ratios, while the harmonic mean is ideal for averaging rates and speeds.
  4. Review summary statistics: The bottom section shows the count, sum, minimum, and maximum values, along with the sorted dataset for verification.

All calculations update in real time. The calculator handles any dataset size and displays results to four decimal places for precision. If all values are unique, the mode shows "None" since no value appears more frequently than others.

Mean, Median, Mode, and Range Formulas

Arithmetic Mean

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

Geometric Mean

GM = (x₁ × x₂ × ... × xₙ)^(1/n)

Harmonic Mean

HM = n / (1/x₁ + 1/x₂ + ... + 1/xₙ)

Range

Range = Max - Min

Variables Explained

  • x₁, x₂, ..., xₙ: The individual data values in your dataset. Each value is a single observation or measurement.
  • n: The total number of values in the dataset. This is the count of observations used in the calculations.
  • Median: The middle value after sorting all values in ascending order. For even-sized datasets, it is the average of the two middle values.
  • Mode: The value that appears most frequently. A dataset may have zero, one, or multiple modes.

Step-by-Step Example

Find the mean, median, mode, and range for: 3, 7, 7, 12, 15, 18, 18, 18, 24

  1. Count the values: n = 9
  2. Calculate the sum: 3 + 7 + 7 + 12 + 15 + 18 + 18 + 18 + 24 = 122
  3. Arithmetic Mean: 122 / 9 = 13.556
  4. Median: Data is already sorted. The 5th value (middle of 9) = 15
  5. Mode: 18 appears 3 times (most frequent) = 18
  6. Range: 24 - 3 = 21

Notice that mean (13.556) is less than median (15), which is less than mode (18). This pattern suggests a slightly left-skewed distribution where a few lower values pull the mean downward.

Practical Examples

Example 1: Emma's Budget Analysis

Emma tracks her monthly grocery spending for a year: $320, $285, $310, $295, $340, $310, $275, $310, $365, $290, $310, $330. She wants to understand her typical spending pattern to create a realistic budget for next year.

  • Mean: $311.67 (her average monthly spending)
  • Median: $310 (the middle spending amount)
  • Mode: $310 (appearing 4 times, her most common spending level)
  • Range: $365 - $275 = $90

All three central tendency measures converge around $310, giving Emma confidence that this is her typical monthly grocery cost. The range of $90 shows moderate variability. She sets her monthly budget at $320 (slightly above the mean) to accommodate occasional higher-spending months while maintaining discipline.

Example 2: James's Running Performance

James is training for a 5K race and records his practice times (in minutes): 28.5, 27.3, 26.8, 29.1, 26.5, 25.9, 26.8, 27.0, 26.2, 26.8. He wants to know his typical pace and consistency.

  • Mean: 27.09 minutes (his average time)
  • Median: 26.8 minutes (the middle time)
  • Mode: 26.8 minutes (appearing 3 times)
  • Range: 29.1 - 25.9 = 3.2 minutes

The convergence of median and mode at 26.8 minutes suggests this is James's natural pace. The mean is slightly higher due to one slower run (29.1 minutes, possibly a bad day). His range of 3.2 minutes shows fairly consistent performance. For his race goal, targeting 27 minutes is realistic based on his median time.

Example 3: Company Salary Analysis

A small company has 10 employees with annual salaries (in thousands): $42, $45, $48, $50, $52, $55, $58, $62, $75, $180. The HR team needs to report a representative salary figure.

  • Mean: $66,700 (inflated by the CEO's $180K salary)
  • Median: $53,500 (between $52K and $55K)
  • Mode: None (all values unique)
  • Range: $180K - $42K = $138K

This example perfectly illustrates why median is preferred for salary data. The mean of $66,700 exceeds what 80% of employees actually earn because the CEO's $180K salary pulls it upward. The median of $53,500 better represents the typical employee's compensation. When presenting to job candidates, the median gives a more honest picture. For more comprehensive statistical analysis, try our statistics calculator.

Comparison of Mean Types

Mean Type Formula Best For Example Use
Arithmetic Σx / n Additive data Test scores, heights
Geometric (∏x)^(1/n) Multiplicative data Growth rates, returns
Harmonic n / Σ(1/x) Rates and ratios Average speed, P/E ratios
Median Middle value Skewed data Income, house prices
Mode Most frequent Categorical data Shoe sizes, survey responses

Tips and Complete Guide

Quick Decision Guide for Central Tendency

Start by asking: Is your data roughly symmetric? If yes, the mean is your best choice because it uses all data points and has desirable mathematical properties. If your data is skewed or has outliers, the median is more representative. If you need to find the most common category or value, use the mode. When in doubt, report all three measures and let the reader understand the full picture.

The Relationship Between Mean and Median

The difference between mean and median is a quick indicator of skewness. If the mean is substantially greater than the median, your data is right-skewed (a long tail of high values). If the mean is substantially less than the median, your data is left-skewed. When they are approximately equal, the distribution is roughly symmetric. This comparison is faster than calculating the formal skewness coefficient and gives you an immediate sense of your data's shape.

Handling Special Cases

Some datasets present unique challenges. Bimodal distributions (two peaks) suggest your data might come from two distinct populations that should be analyzed separately. Datasets with many ties can have multiple modes, making interpretation difficult. Very small datasets (fewer than 5 values) should be interpreted cautiously, as the statistics may not be representative. For datasets with zeros or negative values, the geometric mean cannot be calculated. Our calculator handles all these cases gracefully and clearly indicates when a measure cannot be computed.

Common Mistakes to Avoid

  • Using the mean for skewed data without context: Always check for skewness before relying solely on the mean. If you report only the mean salary at a company where the CEO earns 10 times the median employee, you are giving a misleading picture.
  • Confusing "no mode" with "mode is zero": If zero is the most frequent value, zero is the mode. If no value appears more than once, there is no mode. These are fundamentally different situations.
  • Interpreting range without context: A range of 50 means something very different for test scores (0-100 scale) versus temperatures (in a moderate climate). Always consider the range relative to the scale of measurement.
  • Averaging percentages directly: You cannot simply average percentage changes or growth rates using the arithmetic mean. Use the geometric mean for compounding rates to get accurate results.
  • Forgetting that the geometric mean requires all positive values: If your dataset includes zero or negative numbers, the geometric mean is undefined. Check your data before applying this measure.

Frequently Asked Questions

The mean (arithmetic average) is calculated by adding all values together and dividing by the number of values. For example, for the dataset {4, 8, 15, 16, 23}, the mean is (4 + 8 + 15 + 16 + 23) / 5 = 66 / 5 = 13.2. Our calculator also computes the geometric mean (the nth root of the product of values) and harmonic mean (n divided by the sum of reciprocals), which are useful for rates, ratios, and multiplicative processes.

For an odd number of values, the median is the middle value when data is sorted. For example, in {3, 7, 9}, the median is 7. For an even number of values, the median is the average of the two middle values. For example, in {3, 7, 9, 12}, the median is (7 + 9) / 2 = 8. The median is particularly useful for skewed distributions because it is not affected by extreme values the way the mean is.

Yes, a dataset can be unimodal (one mode), bimodal (two modes), multimodal (three or more modes), or have no mode at all. If all values appear equally often, there is no mode. For example, {2, 3, 3, 5, 7, 7} is bimodal with modes 3 and 7. Our calculator identifies all modes in your dataset. Bimodal data often suggests the presence of two distinct groups within the data.

The range is the simplest measure of spread, calculated as the maximum value minus the minimum value. It tells you the total span of your data. However, the range only considers two data points (the extremes) and is highly sensitive to outliers. For a more robust measure of spread, consider the interquartile range (IQR) or standard deviation. For example, the dataset {10, 20, 30, 40, 50} has a range of 40, while {10, 25, 30, 35, 100} also has a range of 90 despite most values being similar.

The geometric mean is appropriate for data that is multiplicative in nature or spans several orders of magnitude. Common uses include averaging growth rates, investment returns, and ratios. For example, if an investment grows 10% one year and 20% the next, the geometric mean return is √(1.10 x 1.20) - 1 = 14.89%, not the arithmetic average of 15%. The geometric mean is always less than or equal to the arithmetic mean and requires all positive values.

The harmonic mean is used when averaging rates or ratios. The classic example is averaging speeds: if you drive 60 mph for one leg of a trip and 40 mph for the same distance, the average speed is the harmonic mean: 2 / (1/60 + 1/40) = 48 mph, not the arithmetic mean of 50 mph. The harmonic mean is also used in finance for averaging price-earnings ratios and in physics for averaging resistances in parallel circuits.

In a perfectly symmetric distribution (like a normal distribution), the mean, median, and mode are all equal. In a right-skewed distribution, the mean is greater than the median, which is greater than the mode: mode < median < mean. In a left-skewed distribution, the relationship reverses: mean < median < mode. Comparing these three values gives you a quick assessment of your data's symmetry without needing to create a histogram.

Slight differences can arise from rounding methods (when to round, how many decimal places) and how ties are handled in the median calculation. For the mode, some tools only report one mode even when data is multimodal. Our calculator reports all modes, uses standard rounding to 4 decimal places by default, and follows the conventional method for median calculation with even-sized datasets (averaging the two middle values).

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