CalcuAll.
A quick calculation, right here.

CalcuAlltor.

FREE ONLINE SCIENTIFIC CALCULATOR

0
Ready when you are.
English

Mathematics

Median Calculator

Find the middle value of a sorted list, or the average of the two middle values.

Let’s calculate.

Usage estimate

Sort the values and find the centre of the list.

Your result
—
Rounded to up to 2 decimal places.

EXPLORE THE FORMULA

Median Calculator

Mathematics · FORMULA GUIDE

Your current calculation

The values and displayed result follow the calculator as you edit it.

Numbers (semicolons or new lines)
—
Your result—
This panel uses the calculator’s displayed, rounded result.

The formula

Median = middle sorted value, or mean of the two middle values

Sort the values and find the centre of the list.

Variables and input conventions

numbers
Numbers (semicolons or new lines)

Understanding the calculation

Sort the numbers. For an odd count take the middle entry; for an even count average the two middle entries. For 1; 4; 8; 20 the median is 6.

Interpreting the result

Repeated observations are retained. The median need not appear in an even-length input list; it is not the mean or the most frequent value.

A worked example

The sorted list 2, 3, 8, 9 has median 5.5.

A fixed reference example; it does not change with your inputs.

Assumptions and valid inputs

Up to 1,000 finite values; semicolons separate values and commas may be decimals.

Numeric entries must be finite, at most 100 characters, and either zero or have magnitude from 10⁻¹⁰⁰ to 10¹⁰⁰. Lists accept up to 1,000 entries, separated by semicolons or new lines; commas may be decimal separators, not thousands separators. Geometric series sums, CV, standard error and z-scores additionally limit result magnitude to 10¹⁰⁰.

Rounding and numerical precision

Mathematics calculations use a private 640-significant-digit decimal context; factorials and selections use exact integer arithmetic before display. Other topics use their stated numeric methods. Choose 0–8 decimal places for display and copying. Trailing zeros are omitted; very small values may round to zero. Display rounding does not change the underlying calculation. Finite-precision arithmetic is not symbolic exact arithmetic.

Accuracy of input data

Extra displayed decimals do not improve input accuracy. Measurement uncertainty, product variability and uncertain chosen rates are separate from rounding. This tool does not propagate measurement uncertainty. Check that its stated assumptions describe your situation.

References and further study

OpenStax

OpenStax explains the middle observation and the mean of the middle pair. It is a definition source, not an endorsement of this implementation.

Related tools

Formula and worked example

Median = middle sorted value, or mean of the two middle values

Reference example

The sorted list 2, 3, 8, 9 has median 5.5.

When this calculation applies

Repeated observations are retained. The median need not appear in an even-length input list; it is not the mean or the most frequent value.

Background reference: OpenStax. References explain the method or units; they do not certify this calculator.

Source scope: OpenStax explains the middle observation and the mean of the middle pair. It is a definition source, not an endorsement of this implementation.

For the derivation, input conventions and numerical limits, open .

Choose the right number-list summary

How to use this result

For 9; 2; 7, sorting gives 2; 7; 9, so the median is 7. With 2; 3; 8; 9, average the middle pair: (3 + 8) ÷ 2 = 5.5.

Do I have to sort the values myself?

No. Enter values in any order using semicolons or new lines. Keep repeated values: each occurrence is part of the list. A decimal comma can be used inside a number, so commas do not separate entries.

How does the median differ from the mean?

The median uses the middle position after sorting; the mean adds all values and divides by their count. For 1; 2; 100, the median is 2 while the mean is approximately 34.33.