Median calculator with quartiles
Use a period for decimals (12.5) and no thousands separators.
Paste your numbers to get the median, quartiles, mean and spread, with the sorted list.
Updated November 24, 2026 · calculated in your browser, nothing is sent.
How to find the median
Sort the numbers from smallest to largest. With an odd count, the median is the middle number. With an even count, it is the average of the two middle numbers.
Example: 12, 7, 15, 9, 11, 18, 7, 14 sorts to 7, 7, 9, 11, 12, 14, 15, 18. There are 8 numbers, so the median is (11 + 12) ÷ 2 = 11.5.
Quartiles
Quartiles split the sorted data into four parts. Q1 is the median of the lower half and Q3 is the median of the upper half. When the count is odd, the middle number is left out of both halves. In the example, Q1 = (7 + 9) ÷ 2 = 8 and Q3 = (14 + 15) ÷ 2 = 14.5, so the interquartile range is 14.5 − 8 = 6.5.
Other tools, such as spreadsheet functions, interpolate between values and can return slightly different quartiles.
Median vs. mean
The mean is sensitive to extreme values, and the median is not. In 10, 11, 12, 13 and 200, the mean is 49.2 but the median is 12, which better describes a typical value. This is why reports often quote the median income or median home price.
Other measures
- Range: the maximum minus the minimum (18 − 7 = 11 in the example).
- Mean: the sum divided by the count (93 ÷ 8 = 11.625).
- Standard deviation: how spread out the values are. Use the sample figure for data drawn from a larger group and the population figure when you have every value.
Sources
Checked on November 24, 2026. Spotted an error? Email contact@maxicards.net.
Frequently asked questions
How do I find the median of a list of numbers?
Sort them in order. The median is the middle value, or the average of the two middle values if there is an even count.
What is the median of an even set of numbers?
The average of the two middle numbers. For 2, 4, 6 and 8 the median is (4 + 6) ÷ 2 = 5.
What is the difference between median and mean?
The mean is the sum divided by the count. The median is the middle value, so extreme values barely affect it.
How do I find Q1 and Q3?
Split the sorted list at the median. Q1 is the median of the lower half and Q3 is the median of the upper half.
Other calculators
- Percentage calculatorX% of Y, what percent, percentage change, increase or discount.
- BMI calculatorBody mass index in kg/cm or lb/ft-in, with the WHO category.
- Age calculatorExact age in years, months and days, days lived, next birthday.
- Days between datesDays between two dates, or a date plus or minus days, weeks, months or years.
- Decimal hours to minutesConvert decimal hours to hours and minutes, and back.
- Time card calculatorWeekly timesheet: hours worked per day and in total, in hours-minutes and decimal.
- Add time calculatorAdd and subtract hours and minutes.
- Week numberWeek number of any date (ISO 8601), and the dates of any week.
- Electricity cost calculatorkWh and cost per day, month and year of any appliance.
- Fuel consumption calculatorMPG (US and UK), L/100 km, conversions and trip fuel cost.
- Rule of three calculatorDirect or inverse proportion: find the missing fourth value.
- Loan calculatorMonthly payment, total interest and a year-by-year amortization table.
- Compound interest calculatorSavings growth with monthly deposits, year by year.
- Profit margin calculatorProfit margin, markup and selling price from your cost.
- Unit price calculatorCompare two products per oz, lb, kg, liter or item.
- Average calculatorSimple average and weighted average of up to 10 values.
- Area calculatorArea and perimeter of common shapes, in ft², m² and more.