Tool to calculate the quartile value from a list of values. The quartile of a list of numbers is a statistical value that partially illustrates the distribution of numbers in the list.
Quartile of Numbers - dCode
Tag(s) : Statistics, Data Processing
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Quartiles (or the four quarters) are three values that separate a list of sorted numbers composed of $ n $ values $ X = \{ x_1, x_2, \dots, x_n \} $ into $ 4 $ (four) equal parts: the first quartile (25%, the lower quartile), the second quartile (50%) also called the median, and the third quartile (75%, the higher quartile).
Automatic method: on dCode, enter (or copy-paste) the list of numbers and click on Calculate.
Manual method: From a list of $ N $ elements sorted by ascending order, calculate $ q_1 = N / 4 $, $ q_2 = N / 2 $ and $ q_3 = 3 N / 4 $. Locate the elements of the list in position $ q_i $, the value of the element is the $ i $-th quartile.
NB: if $ q_i $ is not an integer, take the average between the element just before and the element just after. It is also possible to take the closest value in the list (less rigorous method).
Example: The list of 8 elements: 11,3,5,7,19,13,17,2 is sorted by ascending order 2,3,5,7,11,13,17,19. Its quartiles are 4, 9 and 15, this means that there are 25% of the values lower than 4 and 75% higher than 4, and that there are 25% of the values greater than 15 and 75% lower.
Quartiles are used to describe the dispersion of a series. If the gap between 2 quartiles is small, then many values are in this zone.
dCode retains ownership of the "Quartile of Numbers" source code. Any algorithm for the "Quartile of Numbers" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Quartile of Numbers" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Quartile of Numbers" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Quartile of Numbers" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Quartile of Numbers on dCode.fr [online website], retrieved on 2025-04-16,