Home Tools Blog About

Statistics Calculator - Mean, Median, Mode, SD

In short

Paste a list of numbers to get the mean, median, mode, range, sample and population standard deviation and variance, quartiles with two methods, IQR, outliers, percentiles, skewness and more, plus a histogram and a frequency table.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up

Worked out in your browser; your numbers are not sent anywhere.

🛡
Private by designYour files and text stay in this tab
⚡
Runs in your browserNo waiting for a server
💧
No watermarksClean output you can use
🆓
FreeNo account needed

How to Use Statistics Calculator - Mean, Median, Mode, SD

Statistics Calculator · free online tool · All Tools Verse
The Statistics Calculator - Mean, Median, Mode, SD tool, as it looks in your browser.
  1. Paste or type your numbers, separated by spaces, commas, semicolons or new lines, or open a text or CSV file.
  2. Choose whether the data is a sample or the whole population, and the quartile method.
  3. Read the main results in the cards and every measure in the full table. Add a percentile to look it up.
  4. Copy the results, or download them as CSV or JSON.

Example: 12, 15, 15, 18, 21, 24, 40

  • Count 7, sum 145, mean 20.7143, median 18, mode 15, range 28.
  • Sample standard deviation 9.4112 (variance 88.5714); population standard deviation 8.7131 (variance 75.9184).
  • Quartiles (inclusive method): Q1 15, Q3 22.5, IQR 7.5. The outlier fences are 3.75 and 33.75, so 40 is flagged as a possible outlier.
  • The 90th percentile is 30.4; the standard error of the mean is 3.5571; skewness is 1.7225, a long tail to the right.

The outlier pulls the mean up. Without the 40 the mean drops to 17.5 and the median to 16.5, so the two measures move by very different amounts. When data has extreme values, the median often describes the middle better.

Quartile methods give different answers

There is more than one way to calculate quartiles for small data sets. For the same seven numbers:

Method Q1 Q3 Matches
Inclusive 15 22.5 Excel QUARTILE.INC, Google Sheets QUARTILE, R type 7, NumPy default
Exclusive 15 24 Excel QUARTILE.EXC, R type 6

Sample or population?

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5. The population variance divides the squared deviations by n and gives 4 (standard deviation 2). The sample variance divides by n – 1 and gives 4.5714 (standard deviation 2.1381). Use the sample version when your numbers are a sample from a bigger group.

How it works

  • Mean = sum / n. Median = the middle value of the sorted list, or the average of the two middle values.
  • Variance = sum of (x – mean)2 / (n – 1) for a sample, or / n for a population. Standard deviation is its square root. Standard error = sample standard deviation / square root of n.
  • Percentiles use linear interpolation. Inclusive: position = (n – 1) x p. Exclusive: position = (n + 1) x p – 1, counting from 0.
  • Outliers are values below Q1 – 1.5 x IQR or above Q3 + 1.5 x IQR (Tukey’s fences). Skewness and excess kurtosis use the same formulas as Excel SKEW and KURT.
  • For whole numbers it also counts even, odd and prime values, finds the longest run of consecutive values and works out the exact product. The example has 4 even and 3 odd values.

Limits

  • It describes one list of numbers. It does not run hypothesis tests, regression or correlation between two lists.
  • Words and symbols that are not numbers are skipped, and the tool lists what it skipped so you can check.
  • Geometric and harmonic means are only shown when every value is above zero.

Frequently asked questions

How do I find the mean, median and mode?

The mean is the sum divided by the count. The median is the middle value once the numbers are sorted. The mode is the value that appears most often. Paste your numbers and the calculator gives all three.

Should I use sample or population standard deviation?

Use the sample standard deviation when your numbers are a sample from a larger group, which is the usual case. Use the population version only when you have every value in the group.

Why are my quartiles different from Excel?

Excel has two functions. QUARTILE.INC matches the inclusive method here and QUARTILE.EXC matches the exclusive method. Pick the one you need in the quartile setting.

How are outliers found?

With Tukey’s fences: anything more than 1.5 times the interquartile range below Q1 or above Q3 is flagged. It is a flag to check the value, not proof that it is wrong.

Keep going

Related Tools

All Math tools →

Age Calculator - Years, Months and Days →

Free age calculator. Find your exact age in years, months and days from your…

Date Difference Calculator - Days Between →

Free date difference calculator. Find the time between two dates in years, months and…

Discount Calculator - Sale Price and Savings →

Works out what you pay after a discount, including "extra % off" stacked on…

Fraction Calculator - Add, Subtract, Multiply →

Free fraction calculator. Add, subtract, multiply or divide two fractions and get a simplified…

GPA Calculator - Weighted Grade Point Average →

Free GPA calculator. Add your courses with grades and credit hours to get your…

Hours Calculator - Time Between Two Times →

Free hours calculator. Enter a start and end time to get hours worked, with…

Margin and Markup Calculator - Profit Percent →

Works out profit, gross margin and markup from a cost and a price. It…

Pace Calculator - Running Pace and Splits →

Free running pace calculator. Enter distance and finish time to get pace per km…

Percentage Calculator - Percent and Change →

Answers the six everyday percentage questions: X% of Y, X as a percent of…

Ratio Calculator - Simplify and Solve Ratios →

Free ratio calculator. Simplify a ratio, or solve a proportion by leaving one value…

ROI Calculator - Return on Investment Percent →

Free ROI calculator. Enter amount invested and amount returned to get net profit, ROI…

Scientific Calculator - Trig, Logs, Powers →

Free scientific calculator. Trig, logarithms, powers, roots, factorials, pi and e, with degrees or…

Share

Embed this tool

Add this free tool to your website. Copy and paste the code: