Profit Margin Calculator

Quartile Calculator – Find Q1, Q2, Q3, IQR and Outliers Step by Step
Math Calculator

Quartile Calculator

Find Q1, Q2 (median), Q3, interquartile range (IQR), and outliers from any dataset. Enter your numbers separated by commas or spaces — see the full step-by-step solution.

Quartile Calculator

Enter your dataset below

Dataset (comma or space separated)
Sample Datasets →
📈
IQR Rule: Outliers are values below Q1 − 1.5×IQR or above Q3 + 1.5×IQR. This is Tukey's fence method, the standard for box-and-whisker plots.
What Are Quartiles?
Q1 (25th percentile)
Median of lower half
Q2 (50th percentile)
Median of entire dataset
Q3 (75th percentile)
Median of upper half
IQR
IQR = Q3 − Q1
Outlier Fences
Lower Fence
Q1 − (1.5 × IQR)
Upper Fence
Q3 + (1.5 × IQR)

Frequently Asked Questions

Sort the data from smallest to largest. Q2 (median) is the middle value. Q1 is the median of the lower half. Q3 is the median of the upper half. For even datasets, average the two middle values. Use the Quartile Calculator above for instant step-by-step results.
IQR = Q3 − Q1. It measures the spread of the middle 50% of your data, making it resistant to outliers. The IQR is used to identify outliers (values more than 1.5 × IQR below Q1 or above Q3) and to draw box-and-whisker plots.
After finding Q2 (median), split the dataset into lower and upper halves. For odd-count datasets, exclude the median from both halves. Q1 is the median of the lower half; Q3 is the median of the upper half. For even-count halves, average the two middle values.
Calculate the fences: Lower = Q1 − (1.5 × IQR), Upper = Q3 + (1.5 × IQR). Any data point below the lower fence or above the upper fence is considered a mild outlier. Points beyond Q1 − 3×IQR or Q3 + 3×IQR are extreme outliers.
A box plot displays the five-number summary: minimum, Q1, Q2 (median), Q3, and maximum. The box spans Q1 to Q3 (IQR). Whiskers extend to the farthest non-outlier values. Outliers are plotted as individual dots beyond the whiskers.
Percentiles divide data into 100 equal parts; quartiles divide into 4. Q1 = 25th percentile, Q2 = 50th percentile (median), Q3 = 75th percentile. Quartiles are a subset of percentiles used for quick descriptive statistics and outlier detection.
You need at least 4 data points for meaningful quartiles (one per quartile). For reliable statistical analysis, use 10+ data points. With very small datasets, quartiles may not represent the population well and should be interpreted cautiously.
Q3 + 1.5 × IQR is the upper Tukey fence. Any data point above this value is considered an outlier. For example, if Q3 = 80 and IQR = 20, the upper fence = 80 + 30 = 110. Values above 110 are outliers in that dataset.