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
- number-theoryAverage● ready
Paste a list of numbers to get the mean, with the sum divided by the count written out and the median and spread alongside for comparison.
- number-theoryStandard Deviation● ready
Paste a list of numbers and choose σ or s to get the standard deviation, with the variance it came from and a count of how many values sit within one σ of the mean.
- number-theoryMedian● ready
Paste a list of numbers to get the median, with the sorted list highlighting the middle value — or the two middle values whose average is the answer.
- number-theoryPrime Check● ready
Enter a whole number to find out whether it is prime, with the factor found when it is composite, the prime factorisation, and the nearest primes on either side.
- number-theoryFibonacci● ready
Enter a term index to get that Fibonacci number exactly — to all its digits — with the neighbouring terms, the digit count and the ratio approaching the golden ratio.
Absolute Values & Averages
- number-theoryAbsolute Value● ready
Enter a number or an expression such as |3 − 7| to get its distance from zero, with the sign of the input and the opposite value shown.
- number-theoryAverage● ready
Paste a list of numbers to get the mean, with the sum divided by the count written out and the median and spread alongside for comparison.
- number-theoryWeighted Average● ready
Enter one value and weight per line to get Σ(value × weight) ÷ Σweight, with each row's share and contribution listed and the unweighted mean beside it.
Centre & Position
- number-theoryMedian● ready
Paste a list of numbers to get the median, with the sorted list highlighting the middle value — or the two middle values whose average is the answer.
- number-theoryMode● ready
Paste a list of numbers to find the value or values that appear most often, with the highest frequency reported and the no-mode case stated plainly.
- number-theoryQuartiles● ready
Paste a list of numbers to get the first, second and third quartiles together, with the five-number summary and the split rule used stated on the page.
- number-theoryPercentile● ready
Paste a list of numbers and a percentile from 0 to 100 to get the value at that position, with the two sorted values it interpolates between shown.
- number-theoryPercentile Rank● ready
Paste a list of numbers and a value to get its percentile rank, with the counts of values below and equal to it shown so the percentage is checkable.
Spread & Outliers
- number-theoryRange● ready
Paste a list of numbers to get the range, with the maximum and minimum identified and the interquartile range shown alongside for comparison.
- number-theoryMidrange● ready
Paste a list of numbers to get the midrange, (max + min) ÷ 2, with the two extreme values named and the mean and median beside it.
- number-theoryMAD● ready
Paste a list of numbers to get the mean absolute deviation, with every value's distance from the mean listed so the average can be checked by eye.
- number-theoryVariance● ready
Paste a list of numbers and choose population (σ²) or sample (s²) variance to get the result with the sum of squared deviations and the divisor spelled out.
- number-theoryStandard Deviation● ready
Paste a list of numbers and choose σ or s to get the standard deviation, with the variance it came from and a count of how many values sit within one σ of the mean.
- number-theoryZ-Score● ready
Enter a value with its mean and standard deviation — or paste a whole dataset and score one entry against it — to get the z-score and what it means in words.
- number-theoryIQR● ready
Paste a list of numbers to get the interquartile range with the quartiles it came from, the fences it defines, and how many values sit inside the middle half.
- number-theoryOutliers● ready
Paste a list of numbers to flag every value outside the 1.5 × IQR fences, with the fences, the quartiles and how far each flagged value sits from the mean.
Primes & Divisibility
- number-theoryPrime Check● ready
Enter a whole number to find out whether it is prime, with the factor found when it is composite, the prime factorisation, and the nearest primes on either side.
- number-theoryPrime Generator● ready
Generate primes up to a limit with the sieve of Eratosthenes, or take the first N primes, and get the count, sum and largest value with the full list.
- number-theoryPrime Counting● ready
Enter an upper limit to get π(N), the number of primes at or below it, with the density, the N ÷ ln(N) estimate and the full list of primes counted.
- number-theoryDivisibility● ready
Enter a number and a divisor to get a yes-or-no divisibility answer with the quotient, the remainder and the equation written out, plus the digit rules to check by eye.
Factors & Multiples
- number-theoryFactors● ready
Enter a whole number to get every factor in ascending order, each a × b pair, the divisor count and the prime factorization with the repeats collected as powers.
- number-theoryMultiples● ready
Enter a number and a count to get n, 2n, 3n, … with the nth multiple highlighted as n × k, and the list named as the arithmetic sequence it is.
- number-theoryCommon Multiples● ready
Enter two numbers and a count to get the least common multiple and the first common multiples — the multiples of the LCM, generated rather than tested.
- number-theoryPerfect Numbers● ready
Enter a number to get its classification from the aliquot sum — the sum of its proper divisors — written out, with the known perfect numbers listed alongside.
Number Properties
- number-theoryCollatz● ready
Enter a starting number to get the step count, the peak value and the whole chain — even numbers halve, odd numbers triple and add one, until 1.
- number-theoryHappy Numbers● ready
Enter a number to get the sum-of-digit-squares chain — happy numbers reach 1, and every other number falls into the same eight-value loop.
- number-theoryDigital Root● ready
Enter a number to get its digital root with each pass written out, plus the casting-out-nines congruence 1 + (n − 1) mod 9 that gives the same answer in one step.
Sequences
- number-theorySequence Generator● ready
Pick an arithmetic or geometric sequence, give it a start, a step and a length, and get the listed terms with the nth term and the sum.
- number-theoryArithmetic Sequence● ready
Enter the first term, the common difference and the length to get the nth term and the sum of the first n terms, with both formulas shown with your numbers substituted.
- number-theoryGeometric Sequence● ready
Enter the first term, the common ratio and the length to get the nth term and the sum of the first n terms, with the substituted formula and the behaviour of the ratio described.
- number-theoryFibonacci● ready
Enter a term index to get that Fibonacci number exactly — to all its digits — with the neighbouring terms, the digit count and the ratio approaching the golden ratio.
- number-theoryTriangular Numbers● ready
Enter a number of rows to get the triangular number T(n) = n(n + 1) ÷ 2 drawn as dots, or enter a number to test whether it is triangular and which T(n) it is.
- number-theoryLucas Numbers● ready
Enter a term index to get that Lucas number exactly — to all its digits — with the neighbouring terms, the digit count and the ratio approaching the golden ratio.
All tools
- number-theoryAbsolute Value● ready
Enter a number or an expression such as |3 − 7| to get its distance from zero, with the sign of the input and the opposite value shown.
- number-theoryAverage● ready
Paste a list of numbers to get the mean, with the sum divided by the count written out and the median and spread alongside for comparison.
- number-theoryWeighted Average● ready
Enter one value and weight per line to get Σ(value × weight) ÷ Σweight, with each row's share and contribution listed and the unweighted mean beside it.
- number-theoryMedian● ready
Paste a list of numbers to get the median, with the sorted list highlighting the middle value — or the two middle values whose average is the answer.
- number-theoryMode● ready
Paste a list of numbers to find the value or values that appear most often, with the highest frequency reported and the no-mode case stated plainly.
- number-theoryRange● ready
Paste a list of numbers to get the range, with the maximum and minimum identified and the interquartile range shown alongside for comparison.
- number-theoryMidrange● ready
Paste a list of numbers to get the midrange, (max + min) ÷ 2, with the two extreme values named and the mean and median beside it.
- number-theoryMAD● ready
Paste a list of numbers to get the mean absolute deviation, with every value's distance from the mean listed so the average can be checked by eye.
- number-theoryVariance● ready
Paste a list of numbers and choose population (σ²) or sample (s²) variance to get the result with the sum of squared deviations and the divisor spelled out.
- number-theoryStandard Deviation● ready
Paste a list of numbers and choose σ or s to get the standard deviation, with the variance it came from and a count of how many values sit within one σ of the mean.
- number-theoryZ-Score● ready
Enter a value with its mean and standard deviation — or paste a whole dataset and score one entry against it — to get the z-score and what it means in words.
- number-theoryPercentile● ready
Paste a list of numbers and a percentile from 0 to 100 to get the value at that position, with the two sorted values it interpolates between shown.
- number-theoryPercentile Rank● ready
Paste a list of numbers and a value to get its percentile rank, with the counts of values below and equal to it shown so the percentage is checkable.
- number-theoryQuartiles● ready
Paste a list of numbers to get the first, second and third quartiles together, with the five-number summary and the split rule used stated on the page.
- number-theoryIQR● ready
Paste a list of numbers to get the interquartile range with the quartiles it came from, the fences it defines, and how many values sit inside the middle half.
- number-theoryOutliers● ready
Paste a list of numbers to flag every value outside the 1.5 × IQR fences, with the fences, the quartiles and how far each flagged value sits from the mean.
- number-theoryPrime Check● ready
Enter a whole number to find out whether it is prime, with the factor found when it is composite, the prime factorisation, and the nearest primes on either side.
- number-theoryPrime Generator● ready
Generate primes up to a limit with the sieve of Eratosthenes, or take the first N primes, and get the count, sum and largest value with the full list.
- number-theoryPrime Counting● ready
Enter an upper limit to get π(N), the number of primes at or below it, with the density, the N ÷ ln(N) estimate and the full list of primes counted.
- number-theoryDivisibility● ready
Enter a number and a divisor to get a yes-or-no divisibility answer with the quotient, the remainder and the equation written out, plus the digit rules to check by eye.
- number-theoryFactors● ready
Enter a whole number to get every factor in ascending order, each a × b pair, the divisor count and the prime factorization with the repeats collected as powers.
- number-theoryMultiples● ready
Enter a number and a count to get n, 2n, 3n, … with the nth multiple highlighted as n × k, and the list named as the arithmetic sequence it is.
- number-theoryCommon Multiples● ready
Enter two numbers and a count to get the least common multiple and the first common multiples — the multiples of the LCM, generated rather than tested.
- number-theoryPerfect Numbers● ready
Enter a number to get its classification from the aliquot sum — the sum of its proper divisors — written out, with the known perfect numbers listed alongside.
- number-theoryCollatz● ready
Enter a starting number to get the step count, the peak value and the whole chain — even numbers halve, odd numbers triple and add one, until 1.
- number-theoryHappy Numbers● ready
Enter a number to get the sum-of-digit-squares chain — happy numbers reach 1, and every other number falls into the same eight-value loop.
- number-theoryDigital Root● ready
Enter a number to get its digital root with each pass written out, plus the casting-out-nines congruence 1 + (n − 1) mod 9 that gives the same answer in one step.
- number-theorySequence Generator● ready
Pick an arithmetic or geometric sequence, give it a start, a step and a length, and get the listed terms with the nth term and the sum.
- number-theoryArithmetic Sequence● ready
Enter the first term, the common difference and the length to get the nth term and the sum of the first n terms, with both formulas shown with your numbers substituted.
- number-theoryGeometric Sequence● ready
Enter the first term, the common ratio and the length to get the nth term and the sum of the first n terms, with the substituted formula and the behaviour of the ratio described.
- number-theoryFibonacci● ready
Enter a term index to get that Fibonacci number exactly — to all its digits — with the neighbouring terms, the digit count and the ratio approaching the golden ratio.
- number-theoryTriangular Numbers● ready
Enter a number of rows to get the triangular number T(n) = n(n + 1) ÷ 2 drawn as dots, or enter a number to test whether it is triangular and which T(n) it is.
- number-theoryLucas Numbers● ready
Enter a term index to get that Lucas number exactly — to all its digits — with the neighbouring terms, the digit count and the ratio approaching the golden ratio.
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
- Math & Statistics Tools
Scientific calculator, prime numbers, matrices, statistics, and more.
- Fractions & Math Manipulation Tools
Exact fraction arithmetic, ratios and number theory with every step of the working shown.
- Student & School Tools
Grade, GPA, attendance and study-planning calculators for students and teachers.
- Coordinate Geometry Calculators
Plot points and lines, and find slope, intercepts, distances and equations.
- Algebra Calculators
Solve equations, factor polynomials, work with inequalities, variation and logarithms — with the working shown.
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.