Back to public tools
All tools
Exact descriptive statistics

Average, Median and Mode Calculator

Paste a list of numbers to find its average, median and most common value. Try it with your reading time over four days.

Processing stays in your browser. Drafts stay in memory; refreshing clears them.

Calculate exact averages, compare two datasets and explore their spread. All calculation runs locally; nothing is saved automatically. Each dataset allows 100,000 observations and 2 MiB of values and weights combined.

Input settings
Dataset A

Plain signed decimals: 1–18 integer digits and up to 12 fractional digits. No grouping, units, expressions or exponents. Blank entries are ignored. With decimal commas, choose newline, semicolon or whitespace; comma cannot also separate values. Files are loaded for review before calculation.

How to use the average and median calculator

Enter or import numbers

Paste a list into Numbers, or load a UTF-8 .txt file, review it and select Calculate. Choose Newline for one number per line, Comma or Semicolon for a separated list, or Whitespace for spaces and tabs. Blank entries are skipped, rather than counted as zero.

Choose your number format

Choose Dot for numbers such as 1.5, or Comma for 1,5. When decimals use commas, choose another input delimiter. Display precision controls the number of decimal places shown, from 0 to 12; it does not change the exact values used to calculate.

Add weights or repeated values

Optional weights give some values more influence on the weighted mean. Supply one nonnegative weight per nonblank number, in the same order. Other statistics remain unweighted. For repeated observations, choose Frequency table and enter one value;count pair per line. A tab can also separate columns. Select the header checkbox only if your first row is a header.

Compare and explore

Enable Compare two datasets for a second list. Choose a percentile from 0 to 100, a trim percentage from 0 to 49 for each tail and 1–50 histogram bins. All settings apply to both datasets. Turning comparison off discards the second input.

Calculate and save

Select Calculate to see results below. The ≈ symbol marks an approximation; exact fractions are included in exports. Copy or download the summary, complete frequency table and data as TXT, CSV or JSON. Save the box plot as an SVG image or download every sorted observation. Clear resets the inputs; Undo restores the previous input. Cancel stops a calculation while keeping your numbers. Changing an input clears results; changing display precision only reformats them.

Example: compare daily reading time

You read for 1, 2, 2 and 5 hours across four days. Select Try an example, then Calculate.

The total is 10 hours and the average is 2.5 hours per day. The median is 2 hours, the middle of the sorted list. The mode is also 2 hours because it appears twice. The range is 4 hours, the gap between the shortest and longest days.

About averages, medians and spread

The average shares the total equally. The median is the middle sorted value, or the average of the two middle values. The mode lists every repeated value tied for highest frequency. A list without repetitions has no repeated mode.

Quartiles divide the sorted data into quarters. This calculator uses type 7 percentiles: interpolate at zero-based position (count−1)×percentile/100. Other quartile conventions can give different answers. For 1, 2, 2, 5, Q1 is 1.75, Q3 is 2.75 and the interquartile range (IQR) is 1.

Population standard deviation describes the whole supplied population; sample standard deviation uses count−1 and requires at least two observations. Choose the interpretation that fits your data. Variances are exact; square roots are calculated to 50 significant digits before display rounding. A trimmed mean removes floor(count×trim percentage/100) values from each end. It does not remove flagged outliers automatically.

Outliers are strictly below Q1−1.5×IQR or above Q3+1.5×IQR. A flag is a prompt to investigate, not proof of a mistake. Box plots use these quartiles; whiskers reach the most extreme inlier or the box edge when no inlier extends beyond it. Histograms use equal-width bins, including the maximum in the final bin. Constant data uses one bin. Chart positions are approximate; exports retain exact numerical results.

Signed decimals are calculated exactly before rounding halfway values away from zero. Files, weights and number lists stay in your browser and clear on refresh. Each dataset is limited to 100,000 observations and 2 MiB of values and weights combined.

Stars and feedback

Loading…

Tool reference #111