Code tool

Median Calculator

Sort the numbers and find the middle value; average the two middle values for an even count.

In-browser processingNo account requiredPrivacy details ↗

Enter one finite decimal number per line (absolute value up to 1e100). Blank lines are ignored. Maximum 50,000 characters and 10,000 numbers.

Results use JavaScript floating-point arithmetic; displayed values have up to 12 significant digits.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter one finite decimal number per line (absolute value up to 1e100). Blank lines are ignored. Maximum 50,000 characters and 10,000 numbers.
  2. Calculate
  3. Results use JavaScript floating-point arithmetic; displayed values have up to 12 significant digits.

Numbers

Enter one finite decimal number per line (absolute value up to 1e100). Blank lines are ignored. Maximum 50,000 characters and 10,000 numbers.

Median

Sort the numbers and find the middle value; average the two middle values for an even count.

GOOD TO KNOW

Common questions

Are the results exact?

Results use JavaScript floating-point arithmetic; displayed values have up to 12 significant digits.