# Understanding Quartiles: Definitions, Calculations, and Examples

![Quartile](https://www.investopedia.com/thmb/U4W2tXqGwMd15UeuxJ00zi_2QKw=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/Quartile-V2-72cf41f265dd40b3a0f043e32b4c611c.jpg)

*— Investopedia / Matthew Collins*

> **Definition**
>
> Quartiles are values that split lists of datasets into quarters, resulting in lower, middle, and upper segments.

## What Is a Quartile?

Quartiles are statistical measures that divide a data set into four equal parts, each representing 25% of the observations. By arranging data points in increasing order, you can identify three quartile values: the lower quartile, median quartile, and upper quartile. These measures help to analyze the spread and distribution of data, offering insight into how individual values compare to the overall dataset.

### Key Takeaways

*   Quartiles are statistical tools used to divide a data set into four equal parts, with each representing 25% of the data. This division helps identify the spread and distribution of data values.
*   The median, a measure of central tendency, divides a data set into two halves. Quartiles further break down the data set into quarters, which include a lower quartile (25% mark), median (50% mark), and upper quartile (75% mark).
*   Calculating quartiles can be done manually using formulas or more efficiently in spreadsheets using functions like QUARTILE, allowing for quick analysis of data sets.
*   The interquartile range (IQR), the difference between the upper and lower quartiles, is a valuable measure for assessing data variability, as it omits outliers and focuses on the central 50% of the data.
*   Quartile placement reveals insights into the skewness of a data distribution, indicating whether data points are more dispersed towards the lower or upper end of a data set.  
    

## The Role of Quartiles in Data Analysis

To understand the quartile, it's important to understand the [median](https://www.investopedia.com/terms/m/median.asp) as a [measure of central tendency](https://www.investopedia.com/terms/d/descriptive_statistics.asp). The median in statistics is the middle value of a set of numbers. It's the point at which exactly half the data lies below and above the central value.

The median is a robust estimator of location, but it says nothing about how the data on either side of its value is spread or dispersed. That's where the quartile steps in. The quartile measures the spread of values above and below the median by dividing the distribution into four groups. They're grouped into four sections of 25% of the data, with the second and third groups representing the interquartile range.

![quartile chart with interquartile range](https://www.investopedia.com/thmb/ulYtDHFOpXtShHrOk9HOyWYXJfk=/1154x0/filters:no_upscale():max_bytes(150000):strip_icc()/quartileexample2-86e1fae9d3cf48c38dc5569ec7d677d1.jpg)

*A Quartile Chart With an Interquartile Range.*

The median splits the data in half, with 50% below and 50% above. Similarly, quartiles divide data into quarters: 25% below the lower quartile, 50% below the median, and 75% below the upper quartile.

There are three quartile values: a lower quartile, a median, and an upper quartile. They divide the data set into four ranges, each containing 25% of the data points:

*   **First quartile**: The set of data points between the minimum value and the first quartile.
*   **Second quartile**: The set of data points between the lower quartile and the median.
*   **Third quartile**: The set of data between the median and the upper quartile.
*   **Fourth quartile**: The set of data points between the upper quartile and the maximum value of the data set.

## How to Calculate Quartiles Using a Spreadsheet

Suppose you have a distribution of math scores in a class of 19 students. You'd want to enter them into a spreadsheet in ascending order in a row. You could also use a column:

Use the MEDIAN function to get the median value:

*   \=MEDIAN (A2:R2)

Then use the quartile function to return the values for each quartile, where the second variable in the function is the quartile you're calculating for:

*   \=QUARTILE (A2:R2, 1)
*   \=QUARTILE (A2:R2, 2)
*   \=QUARTILE (A2:R2, 3)

You should end up with the values for each quartile. There's no need to calculate the fourth quartile because it's the last value in your dataset:

*   Median = 75
*   Q1 = 68.25
*   Q2 = 75
*   Q3 = 81.75  
    

You can see that the first quartile contains scores between 59 and 68.5, and the second quartile contains scores between 68.5 and 75. The third quartile contains scores between 75 and 81.75. It can help to visualize it:

![Quartile chart corrected](https://www.investopedia.com/thmb/dB7x-dv1p85bWoiR4o08RmwR838=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/AnotherQuartilechart-4154d130ce16403c9e6cf886ed2f9289.jpg)

*A Quartile Chart That's Been Corrected.*

## Manual Method for Calculating Quartiles

Quartile manual calculation requires more effort because there are formulas involved. Using the same values as in the spreadsheet example would look like this:

*   59, 60, 65, 65, 68, 69, 70, 72, 75, 75, 76, 77, 81, 82, 84, 87, 90, 95, 98

You can calculate each quartile using the following formula:

*   First Quartile (Q1) = (n + 1) x 1/4
*   Second Quartile (Q2), or the median = (n + 1) x 2/4
*   Third Quartile (Q3) = (n + 1) x 3/4

_n_ is the number of integers in your dataset, and the result is the position of the number in the sequence dataset. So:

*   First Quartile (Q1) = 20 x 1/4 = 5
*   Second Quartile (Q2) = 20 x 2/4 = 10
*   Third Quartile (Q3) = 20 x 3/4 = 15

Here, we have the Q1 (fifth) value of 68, the Q2 (tenth and the median) value of 75, and the Q3 (fifteenth) value of 84. The results differ slightly from the spreadsheet results because the spreadsheet calculates them differently. Your graph would then look like this:

![Example Quartile](https://www.investopedia.com/thmb/87Up3tP2qe4mfT9KtSI9iqmSMns=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/Quintile3-24e4d529a4694ab8880557afd7e387be.jpg)

*A Quartile Example.*

Quartiles help compute the interquartile range, indicating variability around the median. It’s the range between the first and third quartiles.

You'd have an interquartile range of 68 to 84 in this example, the fifth value to the tenth value in the dataset.

## Important Considerations in Quartile Analysis

You can say there's a greater dispersion among the smaller values of the dataset than among the larger values if the data point for Q1 is farther away from the median than Q3 is from the median. The same logic applies if Q3 is farther away from Q2 than Q1 is from the median. This is referred to as quartile skewness.

Another aspect to consider is whether there's an even number of data points. You'd use the average of the middle two numbers to get the median in this case. The median of their scores would be the [arithmetic average](https://www.investopedia.com/terms/a/arithmeticmean.asp) of the tenth and eleventh numbers in the above example if you had 20 students instead of 19.  

## How Do You Find the Lower Quartile of a Data Set?

The best way is to use a spreadsheet and the QUARTILE function. The function "=QUARTILE(A1:A53,1)" returns the first (lower) quartile of your dataset.

## How Do You Find the Upper Quartile of a Data Set?

A spreadsheet and the QUARTILE function are the quickest way to find the upper quartile. The function "=QUARTILE(A1:A53,3)" returns the third (upper) quartile of your dataset.

## What Is the Interquartile Range of a Data Set?

The interquartile range is the middle 50% of measurements in a data set: the range of data between the upper quartile and the lower quartile. This is more [statistically](https://www.investopedia.com/terms/s/statistics.asp) meaningful than using the full range of data because it omits possible outliers.

## The Bottom Line

Quartiles are values that split lists of datasets into quarters, resulting in lower, middle, and upper segments. The purpose of quartiles is to give shape to a distribution, primarily indicating whether a distribution is [skewed](https://www.investopedia.com/terms/s/skewness.asp), which can be used to determine the consistency of a [fund's performance](https://www.investopedia.com/articles/mutualfund/09/analyzing-mutual-fund-risk.asp).

> **Article Sources**
>
> 1.  Scribbr. "[Quartiles & Quantiles / Calculation, Definition & Interpretation](https://www.scribbr.com/statistics/quartiles-quantiles/)."