全球免费使用

平均数与中位数计算器

从逗号或换行分隔的数字中计算平均数、中位数、总和、最小值和最大值。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

Paste a list of numbers and get the common summary figures at once: how many there are, their sum, the mean (average), the median (middle value), and the smallest and largest. It is useful for test scores, monthly expenses, sensor readings or any column copied from a spreadsheet.

The mean and the median tell different stories. One unusually large value pulls the mean up but barely moves the median, so seeing both helps you spot skewed data.

使用方法

  1. Paste or type your numbers, separated by commas, spaces or new lines.
  2. Remove any text, units or currency symbols mixed into the list.
  3. Run the calculation.
  4. Compare the mean and median: a large gap suggests outliers.

计算原理

Mean = sum ÷ count. The median is the middle value after sorting; with an even count it is the average of the two middle values. Minimum and maximum are the extremes of the list.

mean = sum ÷ count

计算示例

Six quiz scores are 72, 85, 91, 64, 85 and 98. The calculator reports a count of 6, a sum of 495, a mean of 82.5, a median of 85, a minimum of 64 and a maximum of 98. The mean is below the median because the low score of 64 pulls it down.

示例输入和结果

10, 20, 30, 40, 50 → 30.

局限性

  • Numbers only; a single non-numeric entry stops the calculation.
  • No weights; for a weighted average use the weighted grade calculator.
  • Lists are limited to 100,000 characters of text.

最后更新:

常见问题

What is the difference between mean and median?

The mean adds everything and divides by the count; the median is the middle value. The median is less affected by extreme values.

Does it calculate the mode?

No. For the spread of the data, use the standard deviation calculator.

Can I paste a spreadsheet column?

Yes. Copied cells arrive on separate lines, which the calculator accepts.

故障排除

I get an error after pasting.

Look for headers, units ("12 kg") or currency symbols in the list and remove them.

Numbers with thousands separators split apart.

A comma inside 1,250 is read as a separator. Paste numbers without thousands separators.

The median seems wrong.

With an even count, the median is the average of the two middle values, which may not appear in your list.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步