To find the quartile the dataset must be arranged in order, least to greatest.
Then we divide the data into two lots of 25, and we can then define the median which in this case lies midway between X₂₅ and X₂₆, that is, between 56 and 58, so the median, also known as quartile 2 (Q2), is 57.
Next we find the middle datum of the two lots of data, so that gives us Q1 (lower quartile)=X₁₃=47 and Q3= (upper quartile)=X₃₈=76.
The quartiles are markers dividing the whole dataset into quarters.