Primary formula
Sort x(1)...x(n). Q2 is the median; Q1 and Q3 locate the centers or interpolated positions of the lower and upper data regions.
Statistics calculator
Calculate Q1, Q2 and Q3 from sorted data and keep the quartile convention visible beside the result.
Calculate Q1, Q2 and Q3 from sorted data and keep the quartile convention visible beside the result.
Sort x(1)...x(n). Q2 is the median; Q1 and Q3 locate the centers or interpolated positions of the lower and upper data regions.
Values belong to one comparable numeric dataset. Tukey mode excludes an odd-count median from both halves. Inclusive and exclusive modes use the interpolation rule shown.
Statistics calculations use Decimal.js for deterministic arithmetic; displayed values are rounded only after the selected method is evaluated.
Finite numeric observations and method-specific inputs are validated locally.
The selected Statistics method runs in a pure TypeScript engine.
The result includes substitutions, ordered data, supporting measures and method warnings.
A tool-specific dataset visual appears only after a valid calculation.
Use this Statistics page to divide ordered numeric data into four parts and preview its five-number summary.
Quartile Calculator processes the entered values locally and exposes the selected convention, calculation steps and related values.
Use quartiles when ordered position and the middle half of a dataset matter more than a single average.
State the convention when results must be reproduced across software or coursework.
Sort x(1)...x(n). Q2 is the median; Q1 and Q3 locate the centers or interpolated positions of the lower and upper data regions.
The calculation is deterministic, but interpretation depends on whether the selected model and entered data fit the real situation.
Use the default example inputs to reproduce the primary worked example. The result breakdown is produced by the same pure TypeScript engine used by the page.
The following examples show how data, event structure, count or method changes the result.
Quartiles divide ordered observations into four data regions. They are positional summaries, so the gaps between values may differ even when each region contains a similar share of observations.
The five-number summary combines minimum, Q1, median, Q3 and maximum for a compact view of center and spread.
The dynamic visual is a sorted number line with Q1, median Q2 and Q3 markers. It appears only after a valid calculation and uses the current result.
Visual proportions are normalized for readability and are explanatory rather than a substitute for a full statistical plot.
Check dataset parsing, method choice and denominator before using a result.
No single quartile convention is universal. NexaCalc exposes Tukey, inclusive and exclusive choices instead of silently selecting one.
This calculator provides educational statistics calculations and does not replace statistical consulting, instructor guidance or professional analysis.
Input values are processed in the browser calculator session and are not sent to an external statistics service.
It returns Q1, median Q2, Q3 and the five-number summary.
a numeric dataset and a quartile method
ordered-data quartile positions under the selected Tukey, inclusive or exclusive convention
It returns Q1, median Q2, Q3 and the five-number summary. Interpret it only under the assumptions stated on the page.
Quartile conventions differ, especially for small datasets, and quartiles alone do not describe distribution shape.
Select the mode that matches the question, keep units or probabilities consistent and do not treat a model output as stronger evidence than the inputs support.
The tools answer related but different questions. The Quartile Calculator follows ordered-data quartile positions under the selected Tukey, inclusive or exclusive convention, while the IQR Calculator reports its own named quantity or model.
Yes where the selected model permits them. Whole-number count fields reject decimals, while measurements, probabilities and dataset values accept finite decimals.
No. It performs a deterministic calculation; study design, data quality and subject-matter interpretation remain separate.
The visual uses the current inputs and result to show the model structure, selected region or interval. It appears only after a valid calculation.
Different conventions, critical values, rounding rules or event assumptions can change results. NexaCalc labels the selected method and rounds only for display.
Quartile conventions differ, especially for small datasets, and quartiles alone do not describe distribution shape.
Statistics methods and references reviewed on August 6, 2026.
This calculator provides mathematical results from the values, conventions and methods you enter. Verify important academic, engineering or professional work independently.