1001Ferramentas
📦Calculators

Quartiles & IQR Calculator

Calculate the quartiles (Q1, Q2/median, Q3) and the interquartile range (IQR) of a list of numbers. Spot the spread and possible outliers in your data.

Q1/Q2/Q3/IQR

Quartiles and IQR

Quartiles cut sorted data into four equal parts: Q1 = P25, Q2 = median = P50, Q3 = P75. The interquartile range, IQR = Q3 − Q1, tells you how spread out the central 50% of the data is. There's more than one way to compute it. R type 7 uses linear interpolation and is the default in NumPy and R; Tukey's hinges take the median of each half; and R offers several others, nine in all. For 7, 15, 36, 39, 40, 41, 42, 43, 47, 49 → Q1 ≈ 36.75, Q2 = 40.5, Q3 ≈ 42.75, IQR ≈ 6. Tukey's 5-number summary (1977), which lists min, Q1, median, Q3 and max, gives you a compact picture that holds up against outliers in a way mean ± σ doesn't.

Applications

You'll see this in boxplots during EDA, in outlier detection with the 1.5·IQR fence, and in robust analyses such as reporting median salary alongside the IQR for income variability. It also shows up in descriptive statistics for scientific papers, and really anywhere the mean gets thrown off by extreme values.

FAQ

Why do different tools give different quartiles? Because there are at least 9 valid ways to interpolate quantiles in small samples. NumPy, R and Excel can disagree by a few decimals, though for n ≫ 100 those differences fade away.

IQR or σ for spread? Reach for the IQR when the data is skewed or has outliers. The σ assumes roughly symmetric data and reacts strongly to extremes.

Can the IQR be zero? It can, whenever at least half the observations share the same value (think lots of zeros). That points to highly concentrated data, and isn't necessarily a mistake.

Related Tools

📊

Median Quartiles IQR Calculator

Computes median, first quartile Q1, third quartile Q3 and interquartile range IQR of a list of numerical values.

🚨

Outlier Detection (IQR Rule)

Detect outliers using IQR rule (outside Q1−1.5·IQR or Q3+1.5·IQR).

📦

Median and Quartiles

Compute min, Q1, median, Q3 and max with linear interpolation.

💧

Leaching Requirement (Irrigation)

Computes the leaching requirement of an irrigated field — the fraction of the applied depth that must pass through the root zone and drain away to flush out the salts the irrigation water leaves behind: LR = water EC ÷ (5 × tolerable saturation extract EC − water EC), with both electrical conductivities in decisiemens per metre. The tolerable EC comes from the crop salt tolerance table — beans sit near 1 dS/m, maize near 1.7 and barley above 8. The result, as a percentage, feeds the gross depth calculation, which is the net depth divided by (1 − LR): a requirement of 13.6%, for instance, forces you to apply about 16% more water than the crop consumes. The saltier the water relative to what the crop tolerates, the larger the fraction; and when the water EC approaches five times the tolerable EC the value blows up, a sign that this water is unusable for that crop without artificial drainage or a change of species. Enter the electrical conductivity of the irrigation water and the tolerable electrical conductivity of the soil saturation extract.

🌠

Distance in Parsec from Magnitude

Calculates distance in parsec and light-years from a stars distance modulus (m - M).

🔤

PT Letter Frequency Zipf

Shows typical letter frequency in Brazilian Portuguese Zipf law top positions.

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.