https://www.itl.nist.gov/div898/handbook/prc/section1/prc16.htm
Box plot construction The box plot is a useful graphical display for describing the behavior of the data in the middle as well as at the ends of the distributions. The box plot uses the median and the lower and upper quartiles (defined as the 25th and 75th percentiles). If the lower quartile is Q1 and the upper quartile is Q3, then the difference (Q3 - Q1) is called the interquartile range or IQ.
Box plots with fences A box plot is constructed by drawing a box between the upper and lower quartiles with a solid line drawn across the box to locate the median. The following quantities (called fences) are needed for identifying extreme values in the tails of the distribution:
lower inner fence: Q1 - 1.5IQ
upper inner fence: Q3 + 1.5IQ
lower outer fence: Q1 - 3IQ
upper outer fence: Q3 + 3IQ
Outlier detection criteria A point beyond an inner fence on either