DataToolsLab

Number Theory & Statistics Calculators

Free number theory and statistics calculators: the mean, median, mode and every measure of spread; percentiles, quartiles, z-scores and outliers; primality, prime lists, prime counting, divisibility, factors and multiples; the number-property questions — Collatz chains, happy numbers and digital roots; and arithmetic, geometric, Fibonacci, Lucas and triangular sequences. Four engines back all thirty-three pages, so the median here and the median in the quartile summary can never disagree. Everything runs in your browser.

Most popular

Absolute Values & Averages

Centre & Position

Spread & Outliers

Primes & Divisibility

Factors & Multiples

Number Properties

Sequences

All tools

About Number Theory & Statistics Calculators

Statistics and number theory questions arrive one at a time, and the answer is usually a single number: the median of this list, whether 97 is prime, what the next prime after 100 is, F(100), the interquartile range, whether 55 is triangular. Each page here answers one of those questions and then shows the working — the substituted formula, the sorted list with the middle highlighted, the divisor that was found, the fences a value had to cross to be flagged. The measurement pages all share one engine, so the statistics are consistent across the category rather than thirteen chances to disagree about the median, and the cases that break naive implementations are handled as answers rather than errors: a data set with no mode or two modes, sampling variance against population variance, an outlier just past the fence, F(100) past the point JavaScript numbers stay exact, a 1.5 × IQR rule that disagrees with the range. Nothing is uploaded, there is no sign-up, and the pages keep working offline once loaded.

Related categories

Frequently asked questions

What is the difference between the mean, the median and the mode?

All three describe the centre of a data set and they are not interchangeable. The mean adds every value and divides by the count, so one extreme value drags it. The median is the middle value once the data is sorted, so it ignores how far the extremes are. The mode is the value that appears most often, and it is the only one of the three that works when the data is not numeric. When the three disagree the data is skewed, which is usually the interesting part.

Should I use population or sample variance?

Use the population form (dividing by n) when your list is the entire group you care about, and the sample form (dividing by n − 1) when the list is a sample used to estimate a wider population. The n − 1 divisor is Bessel's correction: a sample naturally spreads out less than the population it came from, and dividing by one less than the count corrects for that. Both are computed on every page, so you can switch without retyping anything.

Why does the median of an even-sized list not appear in the data?

Because there is no single middle entry. With an even count the two central values straddle the middle, and the median is their average — which can be a value that was never in the list, like 23.5 from a list of whole numbers. The median page highlights both positions so you can see which two values were averaged.

Why is F(100) reported with more precision than a normal calculator gives?

Because it is computed with exact integers rather than floating-point numbers. F(79) = 14,472,334,024,676,221 is already past the 9,007,199,254,740,991 that a JavaScript number holds exactly, so from term 79 a float calculation is wrong in its final digits. The Fibonacci page uses BigInt and a fast-doubling recurrence, which is why it reports all 21 digits of F(100) and tells you which side of that boundary each answer fell on.

Do these tools upload my data?

No. Every calculation is plain TypeScript running in the page — there is no API call, no account and no telemetry on what you entered. That is deliberate for data sets, which are often the sensitive kind. The pages keep working offline once they have loaded.

Online