Calculate Mean, Median, Mode, Range, and Distribution of a Data Set

Statistical Average Calculator Sign

This calculator will calculate the mean, median, mode, minimum, maximum, and range of a data set.

You can either enter the numbers in the data set one at a time, or you can copy and paste an existing data set (if separated by spaces, commas, line returns, or any combination thereof), or you can enter a number and its frequency (12x4, 8x6, 9x4) to get the weighted average from grouped data within a data set.

Plus, unlike other online statistics calculators, this calculator will generate and display a distribution table in the results so you can see how many times each of the numbers is repeated within the data set.

Read more ...

Also on this page:

Statistical Average Calculator

Find the mean, median, mode, and range of a number set and generate its distribution table.

Special Instructions

Learn More

Selected Data Record:

A Data Record is a set of calculator entries that are stored in your web browser's Local Storage. If a Data Record is currently selected in the "Data" tab, this line will list the name you gave to that data record. If no data record is selected, or you have no entries stored for this calculator, the line will display "None".

DataData recordData recordSelected data record: None
Data set:Data set:Data set:Data set:

Data set:

Enter each element of the data set (or paste a copied data set) into this text box. Be sure each number is separated by a space, a comma, a line return, or any combination of the three. Also, if you wish to enter a frequency for each number, enter the number, followed by a lowercase x, followed by the multiplier (for 3 number twos, enter 2x3).

Elements:# of elements:Number of elements in set:Numbers of elements in set:

Numbers of elements in set:

This is the total number of elements detected in the data set field.

Sum:Sum of numbers:Sum of numbers:Sum of numbers:

Sum of numbers:

This is the sum of elements detected by the statistical average calculator.

Average:Average (mean):Average (mean):Average (mean):

Average (mean):

This is the average or mean of the elements within the data set. This is calculated by summing the elements within the set, and then dividing the sum by the number of elements.

Median:Median:Median:Median:

Median:

This is the median of the elements detected in the data set. If the number of elements in the set is odd, this is the middle number when sorted from smallest to largest. In the case of an even number of elements in the set, this result will be the average of the middle two numbers.

Minimum:Minimum:Minimum:Minimum:

Minimum:

This is the smallest of the elements entered into the data set.

Maximum:Maximum:Maximum:Maximum:

Maximum:

This is the largest of the elements entered into the data set.

Range:Range:Range:Range:

Range:

This is the difference between the largest number in the data set and smallest number in the data set.

Mode:Mode:ModeMode:

Mode:

This is the mode of elements entered in the data set, which is the element(s) with the highest frequency of occurrences with the set.

If you would like to save the current entries to the secure online database, tap or click on the Data tab, select "New Data Record", give the data record a name, then tap or click the Save button. To save changes to previously saved entries, simply tap the Save button. Please select and "Clear" any data records you no longer need.

Related Calculators

algebra calculator

Help and Tools

Learn

How to calculate mean, median, mode, and range.

Example Data Set

To show how to calculate mean, median, mode, and range, I will use the following data set:

36, 3, 8, 12, 15, 18, 22, 34, 8, 25, 17, 13, 23

How Do You Calculate the Mean?

The mean is the average of all numbers in a data set. To calculate the mean of a set of numbers, you add all of the numbers together and then divide that sum by the number of elements within the set.

Data set: 36, 3, 8, 12, 15, 18, 22, 34, 8, 25, 17, 13, 23
Data set contains 13 numbers
Mean = (36 + 3 + 8 + 12 + 15 + 18 + 22 + 34 + 8 + 25 + 17 + 13 + 23) ÷ 13
Mean = 234 ÷ 13
Mean = 18

How Do You Calculate the Median?

The median is the middle number in a data set after sorting the data set from smallest to largest. To calculate the median of a data set, you count the number of elements and then sort the elements from smallest to largest. Next, for an odd number of elements, you add 1 to the number of elements and then divide by 2 to get the position of the middle number. From our example data set, the median is the 7th number in the sorted list, which is the number 17.

Odd numbered data set: 36, 3, 8, 12, 15, 18, 22, 34, 8, 25, 17, 13, 23
Number of elements in set is 13
Middle Position = ((count + 1) ÷ 2)
Middle Position = ((13 + 1) ÷ 2)
Middle Position = (14 ÷ 2)
Middle Position = 7
Count12345678910111213
Data Set38812131517182223253436
Median = 17 (7th number in sorted data set)

Note that for an even number of elements, you find the average of the two middle numbers. The first middle position would be equal to the number of elements divided by 2 less 1. The second middle position would be the first middle position plus 1. You then add the two middle numbers together and divide by 2 to find the average. From our revised example data set, this gives you a medium of 16 -- which is the average of the 6th and 7th elements (15 and 17).

Even numbered data set: 36, 3, 8, 12, 15, 18, 22, 34, 8, 25, 17, 13
Number of elements in set is 12
1st Middle Position = (count ÷ 2) - 1
1st Middle Position = (12 ÷ 2) - 1 = 6
1st Middle Number = 15
2nd Middle Position = 1st Middle Position + 1
2nd Middle Position = 6 + 1 = 7
2nd Middle Number = 17
Average of Middle Numbers = (15 + 17) ÷ 2 = 16
Count123456789101112
Data Set388121315171822253436
Median = 16 (average of 15 and 17)

How Do You Calculate the Mode?

The mode is the number in a data set that is repeated the most often within the set. To find the mode, you simply count the number of times each unique number appears within the data set. The number that appears most often is the mode. In our example data set, the number that appears the most often is 8. Therefore the mode of the data set is 8.

Example data set: 36, 3, 8, 12, 15, 18, 22, 34, 8, 25, 17, 13, 23
Sorted Data Set38812131517182223253436
Mode = 8 (8 appears the most often)

Note that a data set can have more than 1 mode. For example, if the above data set included another 3, then the set would have two modes: 3 and 8. A data set having two modes is referred to as a bimodal set, whereas a data set having more than two modes is referred to as a multimodal set.

How Do You Calculate the Range?

The range is the difference between the largest number within the set and the smallest number in the set. To find the range, you sort the range from smallest to largest to determine the minimum and maximum values. You then subtract the minimum value from the maximum value to find the range. In our example set the minimum is 3, and the maximum is 36, which would result in a range of 33 (36 - 3).

Example data set: 36, 3, 8, 12, 15, 18, 22, 34, 8, 25, 17, 13, 23
Sorted Data Set38812131517182223253436
Range = 33 (difference between maximum of 36 and minimum of 3)

Adjust Calculator Width:

Move the slider to left and right to adjust the calculator width. Note that the Help and Tools panel will be hidden when the calculator is too wide to fit both on the screen. Moving the slider to the left will bring the instructions and tools panel back into view.

Also note that some calculators will reformat to accommodate the screen size as you make the calculator wider or narrower. If the calculator is narrow, columns of entry rows will be converted to a vertical entry form, whereas a wider calculator will display columns of entry rows, and the entry fields will be smaller in size ... since they will not need to be "thumb friendly".

Show/Hide Popup Keypads:

Select Show or Hide to show or hide the popup keypad icons located next to numeric entry fields. These are generally only needed for mobile devices that don't have decimal points in their numeric keypads. So if you are on a desktop, you may find the calculator to be more user-friendly and less cluttered without them.

Stick/Unstick Tools:

Select Stick or Unstick to stick or unstick the help and tools panel. Selecting "Stick" will keep the panel in view while scrolling the calculator vertically. If you find that annoying, select "Unstick" to keep the panel in a stationary position.

If the tools panel becomes "Unstuck" on its own, try clicking "Unstick" and then "Stick" to re-stick the panel.