Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

Statistics Calculator

Summarize a dataset with averages, quartiles and measures of spread. Enter individual values or frequencies and see the formulas behind each result.

Formula reference

x̄=Σfᵢxᵢ/n; n=Σfᵢ

All formulas
  • x̄=Σfᵢxᵢ/n; n=Σfᵢ
  • SS=Σfᵢ(xᵢ−x̄)²; σ²=SS/n; σ=√(σ²)
  • s²=SS/(n−1); s=√(s²); n≥2
  • Q(p)=(1−g)x[j]+g x[j+1]; h=(n−1)p; j=⌊h⌋; g=h−j; j≥0
  • Q₁=Q(0.25); Q₂=Q(0.5); Q₃=Q(0.75); IQR=Q₃−Q₁
  • R=max(x)−min(x); M=(max(x)+min(x))/2
  • G=exp(Σfᵢ ln(xᵢ)/n); xᵢ>0
  • xᵢ≥0 and ∃i:xᵢ=0 ⇒ G=0
  • H=n/Σ(fᵢ/xᵢ); xᵢ>0
  • RMS=√(Σfᵢxᵢ²/n)
  • xᵢ>0 ⇒ H≤G≤x̄≤RMS
  • mode={xᵢ:fᵢ=max(f)}; max(f)=1 ⇒ ∄
xᵢ =
→ x̄

Values xᵢ: one per line. Frequency rows: value;count.

Your result

Your answer and calculation steps appear here.

Inputs and calculations stay in this browser tab. Copy or export your report before closing.

Descriptive statistics: formulas, examples and conventions

Use numbers or integer fractions. In decimal-point languages, commas, semicolons, spaces or new lines separate raw values; in decimal-comma languages, use semicolons or new lines. For frequencies, enter one exact value and positive integer count per line, separated by a semicolon or tab. Grouped intervals are not accepted.

Choose raw observations or exact frequencies

Raw mode treats each entered value as one observation. For example,2;4;4;4;5;5;7;9 contains eight observations. Frequency mode expresses the same dataset as 2;1,4;3,5;2,7;1 and 9;1 on separate lines. Counts are replication frequencies, not arbitrary weights or class intervals. Duplicate value rows are merged exactly. Use the decimal punctuation of the chosen interface, and use semicolons or line breaks when commas are decimal marks. Fractions such as 1/3 retain their exact value rather than first becoming rounded decimals.

Read sums, averages and modes together

For the example dataset, n=8, the sum is 40 and the sum of squares is 232. The arithmetic mean is 40/8=5. The median is the average of the fourth and fifth ordered values,4 and 5, giving 4.5. The mode is 4 because it occurs three times. All tied values at the highest frequency are reported; when every distinct value occurs once, this tool reports no repeated mode. The minimum is 2, the maximum is 9, the range is 7 and the midrange is 5.5. These summaries answer different questions and should not be used interchangeably.

Distinguish population and sample spread

Centered squared deviations are added exactly to obtain SS=Σfᵢ(xᵢ−x̄)². Population variance divides SS by n; sample variance divides it by n−1. For the example, SS=32, population variance is 4 and population SD is 2. Sample variance is 32/7 and sample SD is approximately 2.13809. A single observation has zero population variance but cannot provide a sample variance or sample SD. This page describes the supplied values; a sample calculation by itself does not establish random sampling, normality or a confidence interval.

Know which quartile convention you are using

There is more than one accepted rule for sample quantiles. This calculator uses linear interpolation with zero-based position h=(n−1)p, also called Hyndman–Fan type 7. If j=floor(h) and g=h−j, the quantile is (1−g)x[j]+g x[j+1] in the ordered data. It uses p=0.25,0.5 and 0.75 for Q₁, median and Q₃. In the example, Q₁=4, Q₃=5.5 and IQR=1.5. Frequency counts are treated as repeated observations without allocating a million-value list. Quartiles can legitimately differ from median-of-halves or other interpolation methods.

Use geometric, harmonic and quadratic means in their domains

The geometric mean is exp(Σfᵢ ln xᵢ/n) for positive values. This calculator extends it to nonnegative values by returning zero when at least one value is zero; any negative value makes this reported geometric mean undefined. Growth rates must first become comparable positive growth factors, not raw percent numbers. The harmonic mean n/Σ(fᵢ/xᵢ) is reported only for strictly positive observations; it suits some equal-distance rate comparisons when the weighting matches the situation. Root mean square is √(Σfᵢxᵢ²/n) and accepts negative values. For positive inputs, H≤G≤arithmetic mean≤RMS provides a useful check.

Check limits, interpretation and reusable output

The tool accepts up to 5,000 entered values or frequency rows and at most 1,000,000 represented observations. Each number supports up to 50 entered coefficient digits or 50 digits in each integer fraction component, and scientific exponents from −40 to 40. Exact intermediate numerator and denominator components are limited to 4,096 digits; unsupported work returns an explicit error. Variance has squared input units, while SD, quartiles and averages retain the input units. A descriptive summary cannot establish causation or remove outlier concerns. Expand long values for inspection, or copy, download CSV or print the full report before closing the tab.

Use Standard Deviation Calculator for a focused comparison of sample and population variability. Fraction Calculator helps interpret exact ratios; Root Calculator explains square roots and power means. Probability Calculator uses a separately specified probability model, while Sample Size Calculator plans precision under explicit sampling assumptions.

ISO 3534-1:2006 provides terminology and symbol context; it does not certify this calculator. NIST/SEMATECH — Measures of Location explains center and frequency counts, and NIST/SEMATECH — Measures of Scale explains measures of scale. R Core — Sample Quantiles documents quantile interpolation conventions: this calculator explicitly uses type 7, so results can differ from tools using another rule.

Common questions

Which standard deviation should I use?

Use population SD to describe the full supplied population. Use sample SD when these values are a sample used to estimate population spread, subject to the sampling assumptions. Both formulas are shown; sample SD requires at least two observations.

Why are my quartiles different from another calculator?

This page uses Hyndman–Fan type 7 linear interpolation. Other tools may use a median-of-halves rule or another quantile definition. Compare the convention and frequency interpretation before treating a difference as an error.

Can I enter frequency counts or weighted averages?

Positive integer counts represent exact replication frequencies. Arbitrary fractional, reliability or probability weights require different definitions and are not accepted here. Values must be exact observations, not interval labels.

What happens when several values share the highest frequency?

Every tied value at the highest frequency is listed. If all distinct values occur once, the output states that there is no repeated mode under this calculator’s convention.

Why is a geometric or harmonic mean undefined?

The reported geometric mean requires nonnegative observations and returns zero if any are zero. The harmonic mean requires strictly positive observations. A negative or zero input can leave the arithmetic summary valid while one of those means is unavailable.

Are the calculations exact and is my dataset uploaded?

Rational sums, centered variances and interpolated quantiles are exact within the supported bounds; roots and logarithmic means may be approximate. Calculations run in your browser. The report retains exact fractions and full lists for export; it does not upload your dataset for computation.

Explore related tools