Average Calculator (Mean, Median, and Mode)
Compute arithmetic mean, median, mode, and range instantly from any number series with step-by-step mathematical breakdowns.
How to Use This Calculator
Paste or type a list of numbers into the input box above. You can separate values using commas, spaces, tabs, or new lines. The tool processes entries dynamically, updating the arithmetic mean, count, sum total, median, mode, and range in real time without page reloads. Whether evaluating classroom exam scores, running time splits, engineering test measurements, or financial portfolios, this tool handles lists of any size accurately.
For deeper analysis and related planning, you can also explore our Area Calculator and Binary / Hex Converter.
Difference Between Mean, Median, and Mode
- Arithmetic Mean: The sum of all values divided by the total number of entries. This represents the central balance point of the data set.
- Median: The physical middle number when all values are sorted in ascending order. If the sample size is even, the median is calculated by taking the average of the two central numbers.
- Mode: The value or values appearing with the highest frequency. If all values appear equally once, the data set has no mode. If multiple values share the top frequency, all are reported.
- Range: The difference between the highest value (maximum) and the lowest value (minimum), measuring total dispersion across the extremes.
How to Calculate the Average (The Mean Formula)
The arithmetic mean (often designated as x-bar) is calculated using the following equation:
How to Find the Range in a Data Set
The range represents the simplest measure of statistical dispersion, quantifying the spread between the lowest and highest values in a sample. To find the range, arrange your data set in order, identify the minimum and maximum observations, and compute their difference:
While range is simple to calculate, it does not reveal how values are distributed between the two extreme endpoints.
Step-by-Step Worked Example
Consider the default data set: 85, 92, 78, 92, 88, 76, 95.
- Count (n): There are 7 distinct numbers entered (n = 7).
- Sum (Σx): 85 + 92 + 78 + 92 + 88 + 76 + 95 = 606.
- Mean: 606 / 7 = 86.5714.
- Sorted Order: 76, 78, 85, 88, 92, 92, 95.
- Median: Since n = 7 is odd, the middle position is (7 + 1) / 2 = 4th entry. The 4th sorted value is 88.
- Mode: The number 92 appears twice, while all other entries appear once. The mode is 92.
- Range: Highest value (95) minus lowest value (76) equals 19.
Averaging Stock Prices and Share Cost Basis
Investors frequently search for average calculators to calculate their cost basis across multiple stock purchases. If you purchase equal quantities of shares at different price points, entering those prices gives you the exact average cost per share. For instance, purchasing 10 shares at $50 and 10 shares at $70 gives an average purchase price of $60.
However, when buying unequal quantities of shares (dollar-cost averaging), you must compute a weighted average. Multiply each purchase price by the number of shares bought at that price, sum those products to find total capital deployed, and divide by the aggregate number of shares owned.
Mean vs Median: When Outliers Skew the Results
While the arithmetic mean is the most common average, it is highly sensitive to extreme outliers. A single exceptionally high or low number shifts the mean substantially. For example, in real estate home prices or household income surveys, a handful of multi-millionaire salaries can pull the mean upward dramatically. In contrast, the median only tracks rank position, providing a more reliable measure of the typical data point when distributions are skewed.
Frequently Asked Questions
How do you calculate the arithmetic mean of a data set?
To calculate the arithmetic mean, add all numbers in the data series together to get the sum, then divide that total sum by the count of numbers: Mean = Sum / Count.
What is the rule for finding the median with an even count of numbers?
When a data set has an even count of numbers, sort the values in ascending order and locate the two middle numbers. The median is the arithmetic mean of those two middle values.
Can a data series have multiple modes or no mode?
Yes. If every number appears exactly once, the data set has no mode. If two or more numbers share the highest frequency, the set is multimodal and all tied values are listed as modes.
How do you find the range of the data?
To find the range, subtract the smallest number (minimum) from the largest number (maximum) in your data list: Range = Maximum - Minimum.
Can this calculator be used for stock price averaging or cost basis?
Yes. Entering share purchase prices gives the simple unweighted average price. For weighted dollar-cost averaging where different share quantities were bought at different prices, multiply each share count by price, sum the total dollars invested, and divide by total shares purchased.
Why do mean and median diverge significantly in skewed distributions?
The mean incorporates the numerical magnitude of every value, making it vulnerable to extreme outliers. The median depends only on rank order position, so extreme outliers do not pull it away from the center.
What is the formula for calculating an average?
To calculate the average (or mean), add up all the numbers in your data set and divide the total sum by the count of numbers in that set.
What is the difference between average and median?
The average (mean) is the sum of all values divided by the number of values. The median is the exact middle number when the data set is arranged in numerical order. Median is often used when there are extreme outliers.