Mean, median, mode and standard deviation with steps
Use this descriptive statistics calculator to check homework for Intro to Statistics, a lab report or a data analysis assignment. Paste a list of measurements and read the mean, median and both standard deviations first. Below the input, the calculator shows the sorted data, frequencies, every deviation from the mean, every squared deviation, the variance formulas and the quartile calculations. Nothing is hidden behind a calculate button. Change a value to see which parts of the work change with it.
Enter a clean list
Separate values with commas, spaces or new lines. Negative numbers, decimals and scientific notation are accepted. Commas are separators rather than thousands marks: enter 1000 for a thousand. Keep all measurements in the same units before calculating. Do not paste a header, a unit after each value or missing-value labels. Empty comma fields and invalid entries clear the answer instead of producing a result from only part of your data. The limit is 200 observations; nonzero magnitudes must be between 1e−100 and 1e100.
Worked example: center and frequency
The loaded data is 4, 8, 6, 5, 3, 2, 8, 9, 2, 5. Sorting gives 2, 2, 3, 4, 5, 5, 6, 8, 8, 9. There are 10 observations with a sum of 52, so the mean is 52 / 10 = 5.2. The middle positions are the fifth and sixth. Both contain 5, making the median (5 + 5) / 2 = 5. The values 2, 5 and 8 each occur twice, so all three are modes. The frequency list makes this tie visible rather than picking one arbitrarily.
The mean uses every observation and moves when an extreme observation changes. The median depends on the middle positions in the sorted data. Comparing them is useful, but similar values do not prove symmetry or a normal distribution. If no observation repeats, this tool reports no mode. A repeated value can be a mode even when another repeated value ties it for the highest frequency.
Worked example: variance and standard deviation
Subtract the mean from each original observation. For the first observation, 4 − 5.2 = −1.2, and its squared deviation is 1.44. Repeat that subtraction and squaring for every row. For this dataset the sum of squared deviations, SS, is 57.6. Population variance is SS / n = 57.6 / 10 = 5.76, and population standard deviation is √5.76 ≈ 2.4. Sample variance is SS / (n − 1) = 57.6 / 9 ≈ 6.4. Sample standard deviation is √6.4 ≈ 2.5298221.
Choose the denominator to match the question. Population SD describes the full group of interest. Sample SD is commonly used when those observations are a sample used to estimate variability in a larger population. The n − 1 correction makes sample variance unbiased under standard independent sampling assumptions; it does not make sample SD itself unbiased. Variance has squared units, while SD has the same units as the original measurements. One observation has population variance zero, but sample variance and sample SD are undefined.
Quartiles and the method used here
Different textbooks and software can produce different quartiles from the same short list. This calculator uses type 7, also called inclusive linear interpolation. For a proportion p, calculate the zero-based index h = (n − 1)p. If h is between indices, interpolate between the adjacent sorted values using its fractional part. This is the existing tool's method, and the steps identify each position and interpolation weight.
For the loaded example, Q1 uses h = 9 × 0.25 = 2.25. Positions 3 and 4 contain 3 and 4, so Q1 = 3 + 0.25 × (4 − 3) = 3.25. Q3 uses h = 9 × 0.75 = 6.75. Positions 7 and 8 contain 6 and 8, so Q3 = 6 + 0.75 × (8 − 6) = 7.5. If your course uses medians of the lower and upper halves, follow that convention and expect a different answer.
Range, IQR and potential outliers
Range is maximum minus minimum: 9 − 2 = 7. IQR is Q3 − Q1 = 7.5 − 3.25 = 4.25. The lower fence is Q1 − 1.5 × IQR = −3.125, and the upper fence is Q3 + 1.5 × IQR = 13.875. No loaded observation lies outside these fences. An observation exactly on a fence is not flagged. These are potential outliers to investigate, not instructions to delete data. A recording error and a valid unusual measurement need different treatment.
Use the work in your next assignment
Copy results and steps keeps the formulas with the answers. Displayed numbers use eight significant digits; calculations retain unrounded floating-point values. Small rounding differences can appear when repeating displayed intermediate steps. For standardized scores, continue to the z-score calculator. For related tools and study tasks, open the probability and statistics lab. Always report the SD denominator and quartile convention with your answer.