Statistics Calculator | Free Mean, Median, Mode & Std Dev Tool
Comprehensive descriptive statistics in one place. Compute mean, median, mode, standard deviation, variance, quartiles, and the five-number summary. Analyze frequency tables, detect outliers using IQR or Z-score methods, and generate normally distributed data for practice. Features visual distribution bars and box plots.
Calculator Features
Descriptive Statistics
Complete set: mean, median, mode, range, variance (sample & population), standard deviation, quartiles, IQR, and skewness. Includes visual distribution histogram and auto-generated insight about symmetry.
Five-Number Summary & Box Plot
Shows Min, Q1, Median, Q3, and Max with a visual box plot. The box represents the IQR, the line marks the median, and whiskers extend to the extremes.
Frequency Table Analysis
Enter values with their counts for weighted descriptive statistics. Perfect for grouped data, survey results, or any data with repeating values. Includes frequency bars for each value.
Data Generator
Generate normally distributed random data using the Box-Muller transform. Specify count, mean, and standard deviation. Generated data is automatically loaded for analysis.
Outlier Detection
Two methods: IQR (Tukey's Fences) marks values below Q1 - 1.5รIQR or above Q3 + 1.5รIQR. Z-score method flags values with |Z| > threshold (default 2.5). Color-coded results table.
Statistics Formulas
Central Tendency
Mean
xฬ = ฮฃx / n
Sum of all values divided by count
Median
Middle value when sorted
If n is odd: value at position (n+1)/2. If even: average of two middle values
Mode
Most frequent value(s)
Value that appears most often in the data set
Dispersion
Range
Max - Min
Difference between largest and smallest values
Variance (Sample)
sยฒ = ฮฃ(x - xฬ)ยฒ / (n-1)
Average squared deviation from mean, with Bessel's correction
Variance (Population)
ฯยฒ = ฮฃ(x - xฬ)ยฒ / n
Average squared deviation from mean for entire population
Std Deviation
s = โsยฒ
Square root of variance, in same units as original data
IQR
Q3 - Q1
Range of middle 50% of data
Position
Q1 (25th %ile)
Median of lower half
Value below which 25% of data falls
Q3 (75th %ile)
Median of upper half
Value below which 75% of data falls
Z-Score
z = (x - xฬ) / s
Number of standard deviations from the mean
Shape & Outliers
Skewness
g = ฮฃ((x-xฬ)/s)ยณ ร n / ((n-1)(n-2))
Measures asymmetry: positive = right tail, negative = left tail
IQR Outlier
Outside [Q1 - 1.5รIQR, Q3 + 1.5รIQR]
Tukey's fences: values beyond these bounds are potential outliers
Z-Score Outlier
|z| > 2.5 or 3
Values beyond 2.5 or 3 standard deviations from mean
Why Descriptive Statistics Matter
Every dataset tells a story โ but without the right tools, you're guessing. Descriptive statistics give you the vocabulary to describe what your data is doing: where it centers, how spread out it is, and what shape it takes.
Consider this: a manufacturing company runs 1,000 units on two production lines. Line A produces parts with an average width of 10.02 mm. Line B also produces parts with an average width of 10.01 mm. Without standard deviation, you might think both lines are equivalent. But Line A has a standard deviation of 0.05 mm, while Line B's is 0.3 mm โ that's 6ร more variability. The average alone hid the problem.
Measures of Central Tendency
Mean (Average)
The arithmetic mean is the sum of all values divided by the count. It is the most commonly used measure of central tendency โ and the most misused.
Mean = (xโ + xโ + ... + xโ) / n
Real-world example: A startup tracks monthly revenue: $12K, $15K, $11K, $48K, $14K. The mean is ($12K + $15K + $11K + $48K + $14K) / 5 = $20K. But the $48K month was a one-time enterprise deal. The mean says "typical month is $20K," but the other four months averaged just $13K. That's the problem with an outlier โ the mean is pulled toward the extreme.
Median
The median is the middle value when data is sorted in order. For the same revenue data: $11K, $12K, $14K, $15K, $48K โ the median is $14K. That better represents the typical month.
When median beats mean: Real estate is the classic example. If nine homes sell for $300K and one sells for $3M, the mean is $570K โ making the market look far more expensive than it is. The median of $300K tells the real story.
Mode
The mode is the most frequent value. It is the only measure of central tendency that works with categorical data.
Practical example: An e-commerce site surveys customers on why they abandoned their cart. You can't calculate the mean or median of these categories โ but you can identify the mode (the most common reason). If "High shipping" appears 200 times out of 500 responses, you know exactly where to focus your A/B tests.
Measures of Dispersion
Range
Range = Maximum value โ Minimum value. It is the simplest measure of spread โ and the least useful on its own. Two datasets can have the same range with wildly different distributions.
Variance and Standard Deviation
Variance measures the average squared distance from the mean. Standard deviation is the square root of variance โ bringing the units back to the original scale.
ฯยฒ = ฮฃ(xแตข โ ฮผ)ยฒ / N ย ย (population variance)
sยฒ = ฮฃ(xแตข โ xฬ)ยฒ / (n โ 1) ย ย (sample variance)
Interquartile Range (IQR)
IQR = Q3 โ Q1 (the range of the middle 50% of data). It is resistant to outliers and often paired with the median for robust summaries.
Real-World Case Studies
Case Study 1: The $2M Data Point
A SaaS company analyzed average deal size across 50 closed-won deals. The mean was $24,000 โ which the VP of Sales used to set quotas. But one enterprise deal at $500,000 was included. Removing that single outlier, the mean dropped to $14,000. The median was $12,500. For 6 months, the sales team had been chasing quotas based on an inflated average driven by one exceptional deal.
Lesson: Always check for outliers before reporting the mean. Calculate both mean and median โ if they differ significantly, investigate.
Case Study 2: Investment Portfolio Volatility
An investor compares two portfolios over 12 months. Portfolio B has a slightly higher average return but over 3ร the volatility. Standard deviation reveals the hidden risk that average return alone masks.
Case Study 3: Factory Quality Control
Both machines hit the target on average, but Machine 2 has 4ร the variability, meaning nearly 1 in 5 bags is underweight or overweight. Standard deviation catches the quality issue that average weight misses.
Choosing the Right Statistic
Match the statistic to your data type and question. Using the wrong one leads to misleading conclusions.
| Situation | Use | Avoid |
|---|---|---|
| Data with outliers (income, home prices) | Median, IQR | Mean, Standard deviation |
| Symmetric, outlier-free data | Mean, Standard deviation | โ |
| Categorical data (survey responses) | Mode, Counts | Mean, Median |
| Assessing consistency (manufacturing) | Standard deviation, Range | Mean alone |
Common Pitfalls in Statistics
Pitfall 1: The Mean of Means
Averaging averages without considering group sizes is a classic mistake. If Class A (20 students) averages 90% and Class B (5 students) averages 60%, the overall average is not 75%.
Pitfall 2: Ignoring the Shape
Reporting mean and standard deviation assumes your data is roughly symmetric. Always visualize your data first.
Pitfall 3: Small Sample Overconfidence
With n=5, your mean and standard deviation have wide confidence intervals. Report the sample size alongside your statistics.
Frequently Asked Questions
What is the difference between sample and population standard deviation?
Sample standard deviation (s) divides by n-1 (Bessel's correction) to provide an unbiased estimate of the population parameter. Population standard deviation (ฯ) divides by n and is used when you have data for the entire population.
How is the median calculated for an even number of values?
For an even number of values, the median is the average of the two middle values after sorting. For example, with values [3, 5, 7, 9], the median is (5 + 7) / 2 = 6.
What does IQR tell me about my data?
The Interquartile Range (IQR) measures the spread of the middle 50% of your data. It is calculated as Q3 - Q1 (75th percentile minus 25th percentile). A larger IQR indicates more variability in the middle portion of your data.
How do I detect outliers in my data?
Our calculator supports two methods. IQR method (Tukey's Fences): values below Q1 - 1.5รIQR or above Q3 + 1.5รIQR are potential outliers. Z-Score method: values where |Z| > 2.5 are flagged.
What is skewness and why does it matter?
Skewness measures the asymmetry of your data distribution. Positive skew means the tail extends to the right (mean > median). Negative skew means the tail extends to the left (mean < median).
What is the five-number summary?
The five-number summary consists of: Minimum (smallest value), Q1 (25th percentile), Median (50th percentile), Q3 (75th percentile), and Maximum (largest value). It is the basis for box plots.
When should I use median instead of mean?
Use median when your data has outliers or is skewed. Mean is pulled toward extreme values, so median better represents the 'typical' value for income data, home prices, or test scores with outliers. If your dataset looks symmetric, mean and median will be close โ but the moment you have a single extreme value, median is safer.
What does standard deviation tell me?
Standard deviation measures how spread out your data is from the mean. A low SD means data points cluster tightly around the average; a high SD means values are widely dispersed. In investing, a higher SD means higher volatility (and risk). In quality control, a low SD means consistent output. For normally distributed data, ~68% of values fall within ยฑ1 SD, ~95% within ยฑ2 SD.
Can I use mean for ordinal data?
No โ mean requires interval or ratio data (numeric values with consistent spacing). For ordinal data (rankings, Likert scales), use median or mode instead. Calculating the 'average' of a 5-point satisfaction scale assumes the gap between 'Satisfied' and 'Very Satisfied' equals the gap between 'Neutral' and 'Satisfied,' which isn't guaranteed.
How large should my sample be for reliable statistics?
Rule of thumb: at least 30 for the Central Limit Theorem to apply, allowing you to treat sample means as normally distributed. For smaller samples, use t-distributions. For proportions, ensure at least 10 successes and 10 failures. The more variable your population, the larger the sample needed โ use a sample size calculator for precision targets.
Statistics Calculator Pros & Cons
Pros
- โ Full descriptive statistics suite
- โ Outlier detection (IQR & Z-score)
- โ Visual box plot & distribution bars
- โ Free forever โ no subscriptions
- โ Works offline after page load
Cons
- โ No hypothesis testing (t-test, ANOVA)
- โ No CSV data import

Reviewed by Shahid
Content Reviewer & Calculator SpecialistContent reviewer specializing in marketing, finance, health, and math calculators on GM Calculator.