How to Calculate an Average
Written by: Muhammad Ahmad • Last updated: October 11, 2026
To calculate an average (the arithmetic mean), add all numbers in your dataset together, then divide that sum by the total count of numbers. For example, to find the average of 10, 20, and 30, add them to get 60, then divide by 3, which equals 20.
How It Works
In everyday language, "average" almost always refers to the arithmetic mean. It provides a central representative benchmark for a group of numbers by balancing all individual values across the sample.
Or expressed with mathematical symbols:
Where x₁, x₂, ... represent each number in the set, and n represents the total count of numbers.
Step-by-Step Worked Example
Consider this sample dataset of seven numbers: 10, 2, 38, 23, 38, 23, 21
- Count the entries (n): There are 7 numbers in the group (n = 7).
- Calculate the total sum:
10 + 2 + 38 + 23 + 38 + 23 + 21 = 155 - Divide the sum by the count:
155 / 7 = 22.142857142857... - Format to desired precision: Rounded to two decimal places, the arithmetic mean is 22.14.
Related Central Metrics for the Same Numbers
- Median (Middle Value): Arrange numbers from lowest to highest:
2, 10, 21, 23, 23, 38, 38. The middle value located at the 4th position is 23. - Mode (Most Frequent): Both 23 and 38 appear twice, while all other numbers appear once. This dataset is bimodal with modes 23 and 38.
- Geometric Mean: Multiply all numbers together: 10 × 2 × 38 × 23 × 38 × 23 × 21 = 320,827,920. Taking the 7th root of 320,827,920 yields 16.412764443111.
Spreadsheet Tip (Excel & Google Sheets): For multi-period investment returns, convert your percentages to gross growth factors first (e.g. enter +10% as
1.10and -5% as0.95), then calculate=GEOMEAN(range)-1. Direct negative percentages cause a#NUM!error. - Range: Subtract the minimum from the maximum: 38 − 2 = 36.
Why the Mean Can Be Misleading: The Outlier Example
The arithmetic mean is vulnerable to extreme high or low numbers (outliers). When a dataset is skewed, the median provides a much more trustworthy reflection of the typical value.
Example: 5 Freelance Weekly Payments
Consider five weekly earnings: $200, $220, $240, $250, and $1,000
- Sum: $200 + $220 + $240 + $250 + $1,000 = $1,910
- Arithmetic Mean: $1,910 / 5 = $382
- Median: Middle value of the sorted sequence = $240
Notice that $382 is higher than 80% of all payments in the group because the single $1,000 payment pulls the mean upwards. The median ($240) accurately shows what a typical week looks like.
When to Use the Mode: The Height Example
The mode identifies the most common observation. It is especially useful in manufacturing and inventory planning where fractions or midpoints do not correspond to physical production units.
Suppose you record the heights of six individuals in centimeters: 155 cm, 160 cm, 160 cm, 162 cm, 168 cm, and 175 cm.
Because 160 cm appears twice and all other heights appear once, the mode is 160 cm. An apparel company manufacturing uniforms would prioritize 160 cm pattern templates to satisfy the largest single segment.
Summary: Mean vs Median vs Mode vs Geometric Mean
| Measure | Plain-Text Formula | Best Application | Outlier Sensitive? |
|---|---|---|---|
| Arithmetic Mean | (Sum of values) / n | Symmetrical data without severe extremes (e.g. test scores) | Yes |
| Median | Middle value of sorted array | Skewed datasets (e.g. real estate prices, household income) | No |
| Mode | Most frequent value(s) | Categorical or discrete inventory sizing (e.g. shoe sizes) | No |
| Geometric Mean (positive values only) | nth root of (x₁ × x₂ × ... × xn) | Compounding growth rates, investment returns, multiplicative scales | Moderate |
| Weighted Average | Sum(weight × value) / Sum(weights) | Unequal contributions (e.g. course grades, asset allocations) | Yes |
Common Mistakes When Calculating Averages
1. Averaging Pre-Calculated Averages Without Weighting
If Class A has 10 students with an average score of 90, and Class B has 30 students with an average of 70, you cannot average 90 and 70 to get 80. The combined average is ((10 × 90) + (30 × 70)) / 40 = 75. Always account for differing sample sizes.
2. Forgetting to Sort Data Before Locating the Median
The median is strictly the middle entry of an ordered list. Selecting the center number from an unsorted sequence gives an arbitrary number rather than the true median.
3. Treating Even-Count Medians as Single Numbers
When your sample size is even (such as 4, 8, 12, 16), there is no single middle number. You must take the two center values (8 and 12) and find their mean: (8 + 12) / 2 = 10.
4. Defaulting to the Mean for Skewed Distributions
When reporting salaries, home values, or network latency spikes, extreme outliers distort the arithmetic mean. Always check whether the median tells a clearer, more realistic story.
Real-World Applications
Academic Grading
Weighted averages let educators assign 40% weight to comprehensive final examinations while weighting weekly homework assignments at 10%.
Financial Planning
Median household income prevents extreme high earners from distorting economic benchmarks, while geometric means accurately compute multi-year investment returns.
Sports Analytics
Points per game and average running pace are means across many events; batting average is a ratio of total hits to total at-bats.
Retail & Supply Chain
Retailers and warehouse teams use the mode to identify the most frequently purchased shoe, tire, or apparel sizes to maintain balanced inventory.
How to Use the Online Average Calculator
- Navigate to our Average Calculator.
- Paste or type your values into the text area. You can separate values using commas, spaces, or line breaks.
- Select your preferred precision (Auto, 0, 2, 4, or 12 decimal places).
- Review the computed Arithmetic Mean, Median, Mode, Geometric Mean, Sum, and Count immediately on screen.
- Click Copy Result to save the summary directly to your clipboard.
Frequently Asked Questions
What is the difference between "average" and "mean"?
In conversational English, "average" almost universally means the arithmetic mean. In mathematical statistics, "average" is a general term encompassing any measure of central location, including the mean, median, and mode.
How do you calculate the median with an even number of values?
When a dataset contains an even count of values, there is no single middle number. Order the list from lowest to highest, identify the two center numbers, add them together, and divide by 2.
Can a dataset have more than one mode or no mode?
Yes. If every number in a dataset appears exactly once, there is no mode. If two or more values tie for the highest frequency, the dataset is bimodal or multimodal.
When is the median preferred over the mean?
Use the median whenever data contains extreme outliers or is heavily skewed in one direction. For income statistics or home sales, a small number of very high values will artificially inflate the mean, while the median accurately captures the typical experience.
How does a weighted average differ from a simple average?
A simple average gives equal weight (1/n) to every data point. A weighted average applies different multipliers based on each value's relative significance, such as a college final exam accounting for 40% of a course grade while weekly quizzes count for 10%.
Sources & References
- National Institute of Standards and Technology (NIST) / SEMATECH: e-Handbook of Statistical Methods, Section 1.3.5.1: "Measures of Location". Available at: https://www.itl.nist.gov/div898/handbook/eda/section3/eda351.htm.