Median Formula


Understand the arithmetic mean formula, including mathematical notation and step-by-step explanation for ungrouped and grouped data.

Median = Middle value after sorting data If even: Median = (Middle1 + Middle2) / 2




The median formula is used to calculate the median, a positional measure of central tendency in statistics. 

The median represents the middle value of an ordered dataset and divides the data distribution into two equal halves.

This page explains:

All formulas are presented using standard statistical notation.

What Is the Median Formula?

The median formula determines the middle value of a dataset after arranging the observations in ascending or descending order.

The formula depends on the number of observations is odd or even.

Median Formula for Ungrouped Data

Ungrouped data refers to raw numerical values that are not organized into class intervals.

Before applying the formula:

  1. Arrange the dataset in ascending order

  2. Count the total number of observations (n)

Case 1: Odd Number of Observations

When the total number of observations (n) is odd:

Median = Value at position (n + 1) / 2

Where:

This formula directly identifies the middle observation.

Case 2: Even Number of Observations

When the total number of observations (n) is even:

Median = [Value at (n/2) + Value at (n/2 + 1)] / 2

Where:

This ensures the dataset is divided into two equal parts.

Median Position Formula

The median position formula helps determine the location of the median in an ordered dataset.

Median Position = (n + 1) / 2

Where:

This formula is especially useful when identifying the middle value in discrete datasets.

Median Formula for Grouped Data (Frequency Distribution)

When data is organized into class intervals with corresponding frequencies, the grouped median formula is used:

Median = L + [(N/2 − cf) / f] × h

Where:

This formula is applied to continuous frequency distributions and statistical tables.

How to Identify the Median Class

To apply the grouped median formula:

  1. Calculate N/2

  2. Construct the cumulative frequency column

  3. Locate the class interval where the cumulative frequency ≥ N/2

  4. That interval is the median class

The lower boundary of this class is used as L in the formula.

Median Formula for Discrete and Continuous Data

Discrete Data

For discrete ordered values, use the positional formulas:

Continuous Data

For continuous grouped data, use:

This method accounts for class intervals and cumulative frequencies.

Statistical Symbols Used in Median Formula

Symbol

Meaning

n

Number of observations

N

Total frequency (Σf)

L

Lower boundary of median class

cf

Cumulative frequency before median class

f

Frequency of median class

h

Class width

Frequently Asked Questions About Median Formula

What is the formula of median?

For ungrouped data: Median = Value at position (n + 1) / 2 (odd case)

For grouped data: Median = L + [(N/2 − cf) / f] × h

What does N/2 represent in the median formula?

N/2 represents half of the total frequency and is used to locate the median class in grouped data.

Why is cumulative frequency used in the median formula?

Cumulative frequency helps identify the class interval that contains the median value in a grouped frequency distribution.

What is the median position formula?

Median Position = (n + 1) / 2

It determines the location of the median in an ordered dataset.

Is arranging data necessary before applying the median formula?

Yes. Observations must be arranged in ascending or descending order before applying positional median formulas.

Final Notes on Median Formula

The median formula is a positional statistical method used to determine the central value of ordered quantitative data. It is applied in both ungrouped datasets and grouped frequency distributions using standard statistical notation.

All formulas presented follow conventional mathematical and statistical principles.