Median Calculator

Median is evaluated from Number 1, Number 2 and Number 3. The calculation reports Count, Median and Mean.

Results

Thanks — we’ve logged this for review.

About the Median Calculator

Median is treated here as a quantitative relation between Number 1, Number 2, Number 3 and Number 4 and Count, Median and Mean.

The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.

Formula basis:
2. If n is odd: median = value at position ⌊n/2⌋ (0-indexed).
3. If n is even: median = average of values at positions n/2 - 1 and n/2.

Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.

Formula & How It Works

The calculation applies the following relations exactly as recorded in the metadata:

2. If n is odd: median = value at position ⌊n/2⌋ (0-indexed).
3. If n is even: median = average of values at positions n/2 - 1 and n/2.

Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.

Worked Examples

Example 1: Odd dataset: 15, 42, 8, 27, 33

Inputs

n1: 15 n2: 42 n3: 8 n4: 27 n5: 33
Count: 10. Median: 10. Mean: 17.5

With Number 1 = 15, Number 2 = 42, Number 3 = 8 and Number 4 = 27 as the stated inputs, the result is Count = 10, Median = 10 and Mean = 17.5. Each value corresponds to the declared output fields.

Example 2: Even dataset (incomes $K): 45, 52, 38, 95, 61, 48

Inputs

n1: 45 n2: 52 n3: 38 n4: 95 n5: 61 n6: 48
Count: 10. Median: 41.5. Mean: 37.9

With Number 1 = 45, Number 2 = 52, Number 3 = 38 and Number 4 = 95 as the stated inputs, the result is Count = 10, Median = 41.5 and Mean = 37.9. Each value corresponds to the declared output fields.

Example 3: Reaction times (ms): 245, 312, 198, 287, 421, 234, 301, 189

Inputs

n1: 245 n2: 312 n3: 198 n4: 287 n5: 421 n6: 234 n7: 301 n8: 189
Count: 10. Median: 239.5. Mean: 220.7

With Number 1 = 245, Number 2 = 312, Number 3 = 198 and Number 4 = 287 as the stated inputs, the result is Count = 10, Median = 239.5 and Mean = 220.7. Each value corresponds to the declared output fields.

Example 4: House prices ($K): 280, 310, 275, 850, 295, 305, 320

Inputs

n1: 280 n2: 310 n3: 275 n4: 850 n5: 295 n6: 305 n7: 320
Count: 10. Median: 287.5. Mean: 266.5

With Number 1 = 280, Number 2 = 310, Number 3 = 275 and Number 4 = 850 as the stated inputs, the result is Count = 10, Median = 287.5 and Mean = 266.5. Each value corresponds to the declared output fields.

Common Use Cases

  • Find the median of a dataset
  • Compare median vs mean for skewed data
  • Calculate median salary or home price