Exact arithmetic on your listReviewed 28 Sep 2026Runs in your browser

Mean, Median & Mode Calculator

Enter a list of numbers to get the mean, median and mode (including multiple modes), plus the geometric and harmonic means, trimmed mean, midrange, range and skewness — with the sorted list, frequency table and every step shown.

Who wrote it

Written by Suhaib Hassan. Definitions follow the NIST/SEMATECH Engineering Statistics Handbook. Our methodology.

How the engine works

It sorts your list, sums it for the mean, picks the middle value(s) for the median, and counts how often each value occurs to find every mode.

Why we built it

Averages disagree on skewed data. This page shows all of them side by side, plots the frequencies, and tells you which one to report.

Data set

—

Separate values with commas, spaces or new lines.

Input format

—

Arithmetic mean (x̄)—
—

—

Median—
Mode—
—
Geometric mean
—

nth root of the product

Harmonic mean
—

n ÷ Σ(1/x)

10% trimmed mean
—

—

Midrange
—

(min + max) ÷ 2

Count · Sum
—

—

Range
—

—

Skewness (Pearson’s second coefficient)—

3 × (mean − median) ÷ s

Frequency distribution and averages

Bars show how often each value (or range of values) occurs. Modes are highlighted; the dashed lines mark the mean and median.

—

—

Step-by-step working

—

—
    ValueFrequencyShare of dataStatus
    —

    Three kinds of average

    Each mean answers a different question. Pick the one that matches how your numbers combine.

    Arithmetic mean

    x̄ = Σxᵢ ÷ n

    The everyday average. Best for values that add up — heights, marks, weights — but pulled by extreme values.

    Geometric mean

    G = (x₁ · x₂ · … · xₙ)^(1/n)

    For quantities that multiply — growth factors, index ratios. Requires every value to be above zero.

    Harmonic mean

    H = n ÷ Σ(1 ÷ xᵢ)

    For averaging rates over equal amounts — such as speed over equal distances. Requires every value to be above zero.

    Skewness: how mean, median and mode compare

    When a distribution is lopsided, the three measures separate in a predictable way (though the ordering is a guide, not a law).

    Symmetric

    Mean ≈ median ≈ mode. The centre of mass sits at the peak, as in a bell-shaped distribution.

    Right-skewed (positive)

    Mean > median > mode is typical. A long tail of high values, such as incomes or house prices, drags the mean upward.

    Left-skewed (negative)

    Mean < median < mode is typical. A tail of low values, such as age at death in high-income countries or scores on an easy exam, pulls the mean down.

    Which average should you report?

    The right choice depends on the scale of measurement and how skewed the data is.

    Type of dataSensitivity to outliersBest measureExample
    Nominal (categories)Not applicable — no numeric orderMode onlyMost common shoe size or party choice
    Ordinal (ranked)LowMedianSatisfaction on a 1–5 scale
    Interval / ratio, skewedHigh for the meanMedian (or trimmed mean)House prices, salaries, response times
    Interval / ratio, symmetricModerateArithmetic meanRepeated lab measurements, heights
    Growth rates or ratiosModerateGeometric meanAverage annual growth over several years

    Worked example: a skewed set of household incomes

    Twelve household incomes in thousands of dollars: 38, 42, 45, 48, 52, 55, 58, 62, 65, 70, 95, 650. (Load "Skewed incomes" from the examples menu to see it above.)

    Mean distorted

    Σx = 1,280 ÷ 12
    mean = 106.67 ($106.7k)

    11 of 12 households (91.7%) earn less than this “average”, because one very large value inflates it.

    Median robust

    6th and 7th values: 55 and 58
    median = (55 + 58) ÷ 2 = 56.5

    Half of households earn less and half more, so the median describes a typical household far better here.

    Where each average is used

    Economic statistics

    Official income and house-price figures are usually reported as medians because a few very large values would distort the mean.

    Governing measure: median

    Retail & inventory

    A shop ordering stock wants the most common size, not the average size — the mode identifies the size that sells most.

    Governing measure: mode

    Grading & measurement

    Exam marks are usually summarised with the mean, while two well-separated modes can reveal two distinct groups in a class.

    Governing measure: mean, modes

    What are the mean, median and mode?

    The mean is the sum of the values divided by how many there are. The median is the middle value once the list is sorted — or the mean of the two middle values when there is an even number of them. The mode is the value that occurs most often; a data set can have one mode, several, or none.

    How to calculate them

    • Mean: add all values, then divide by the count.
    • Median: sort the values. With n values, take the value at position (n + 1) ÷ 2, averaging the two middle values when n is even.
    • Mode: count each value; the highest count wins. If every value occurs once there is no mode.
    • Trimmed mean: drop the lowest and highest 10% of values (rounded down), then average the rest.

    By Suhaib Hassan · Reviewed 28 September 2026 · How CalculatePilot verifies formulas →

    Sources

    Frequently asked questions

    What if a data set has more than one mode?

    Then it is bimodal (two modes) or multimodal (more). This calculator lists every value that ties for the highest frequency. If every value appears exactly once, there is no mode.

    Why does an extreme value change the mean but not the median?

    The mean uses every value's size, so one very large number pulls it up. The median depends only on the middle position in the sorted list, so making the largest value larger changes nothing.

    What is the difference between arithmetic, geometric and harmonic means?

    Arithmetic averages values that add, geometric averages values that multiply (such as growth factors), and harmonic averages rates over equal amounts. For positive, unequal values they always satisfy harmonic ≤ geometric ≤ arithmetic.

    How do I find the median with an even number of values?

    Sort the list and average the two middle values. For 2, 4, 6, 8 the middle values are 4 and 6, so the median is 5.

    How does the value:frequency format work?

    Type each distinct value followed by a colon and how many times it occurs, for example 5:2, 8:4 means two 5s and four 8s. The calculator expands it into a full list before working everything out.

    What is a trimmed mean?

    A trimmed mean discards a fixed share of the smallest and largest values before averaging. Here 10% is removed from each end, rounded down, so it resists outliers while still using most of the data.

    Related statistics calculators

    Continue your analysis.

    All Math Calculators

    Embed This Mean, Median & Mode Calculator

    Free and responsive, and it runs in the visitor's browser. Branding removal from $7.99/month.

    <iframe src="https://www.calculatepilot.com/embed/mean-median-mode-calculator.html" width="100%" height="560" loading="lazy" title="Mean, Median and Mode Calculator"></iframe>
    For website owners

    Want this calculator on your own website?

    Embed it in one line of code. Keep it free with a small CalculatePilot attribution link, or go white-label: your brand, no attribution, one license for all your domains.

    • All 159 calculators, unlimited embeds
    • Works on WordPress, Webflow, Squarespace, Wix and plain HTML
    • Runs in your visitor's browser, so nothing is sent to a server
    • License key emailed automatically after checkout, cancel anytime
    $7.99 / month
    or $89.99 / year · white-label Pro
    Get the white-label license Embed free with attribution