HexMathv1.0.4
Median calculator
This median calculator finds the middle value of a list of numbers or of a frequency table. Type the data or scan it. HexMath sorts the list, counts the values and returns the median, showing the single middle value for an odd count or the mean of the two middle values for an even count.
Loading math input...
What this page covers
- The median of a list of whole numbers, decimals or negative numbers.
- Odd and even counts: the single middle value, or the mean of the two middle values.
- Data given as a frequency table, by finding the middle position with running totals.
- Not covered here: the mean and mode together, or the spread of the data (see the statistics calculator).
How to enter the problem
- Type it or paste it. Write the word median, then the numbers separated by commas.
- Scan it. Fit the one problem in the frame.
- Choose a photo. Several problems in one photo are solved as a list.
- Then tap Solve.
Worked examples
Example 1: Find the median of 7, 3, 9, 1, 12, 5.
Problem
Find the median of 7, 3, 9, 1, 12, 5.
Answer
VerifiedThe answer is
Explanation
- Sort the data.
- Find the middleThere are values, an even count, so the middle is between the 3rd and 4th values: and .
- Average the two middle values
- CheckThree values are below () and three are above ().
Example 2: Find the median of 2.5, 4, 3.1, 6, 1.8, 5.
Problem
Find the median of .
Answer
VerifiedThe answer is
Explanation
- Sort the data.
- Count the valuesThere are values, an even count, so two values share the middle: positions 3 and 4.
- Read the two middle valuesPosition 3 is and position 4 is .
- Take their mean
Example 3: A survey records how many pets each student has. The value 1 appears 3 times, 2 appears 5 times, 3 appears 4 times and 4 appears 2 times. Find the median.
Problem
A survey records how many pets each student has. The value 1 appears 3 times, 2 appears 5 times, 3 appears 4 times and 4 appears 2 times. Find the median.
Answer
VerifiedThe answer is
Explanation
- Count all the datastudents, an even count.
- Find the middle positionsWith 14 values the middle is between positions 7 and 8.
- Use running totalsValues of 1 fill positions 1 to 3. Values of 2 fill positions 4 to 8. So positions 7 and 8 both hold .
- Take the mean of the two middle values
Common mistakes
- Taking the middle of the list without sorting it first. In the unsorted middle pair is and , which gives instead of .
- With an even count, picking one of the two middle values instead of their mean.
- Using the number of rows in a frequency table as instead of the total of the frequencies.
- Counting a repeated value only once. Every copy stays in the sorted list.
Checks, assumptions and limits
- Check by counting. The same number of values should sit below the median as above it. For the example in the solver above, three values are below 6 and three are above.
- The median needs numbers that can be put in order. It does not change if the largest value grows, which is why it resists outliers.
- HexMath can make mistakes. Double check important steps.
Frequently asked questions
With an even count, the median is the mean of the two middle values after sorting. It may be a value that is not in the list, such as 3.55.
Yes. Use the camera on the one problem, or choose a photo. Several problems in one photo are solved as a list.
Yes. Ask a follow-up question in the same thread, for example for the mean or the range of the same data. A typed follow-up needs sign-in.
Yes. Enter the values with their frequencies. The steps add up running totals to find the middle position, then read off the value at that position.
Related tasks
Ready to solve your next math problem?
Create a free account for 3 math questions a day in your browser. No card.
Last updated: · HexMath