Home › Calculators › Number Properties Calculator

Number Properties Calculator

Type any whole number up to one quadrillion and see everything about it at once: prime or composite, even or odd, its prime factorization and divisors, and whether it is a perfect number, a perfect square or cube, triangular, Fibonacci, a palindrome and more.

Last updated:

Any whole number from 0 to 1,000,000,000,000,000 (10^15). Commas and spaces are ignored.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Number Properties Calculator

  1. Type a whole number, for example 28 or 1729 (commas are fine).
  2. Press Check number, or just keep typing: results update as you go.
  3. Read the summary: prime or composite, even or odd and the property tags.
  4. Scroll the properties table for every yes/no test with the reason.
  5. Copy or download the results for homework or notes.

What the number properties mean

PropertyDefinitionExamples
PrimeExactly two divisors: 1 and itself2, 3, 5, 7, 11, 97
CompositeMore than two divisors4, 6, 9, 12, 100
PerfectEquals the sum of its proper divisors6, 28, 496, 8128
AbundantProper divisors add up to more than the number12, 18, 20, 24
Perfect square / cubek² or k³ for a whole number k49 = 7², 125 = 5³
Triangular1 + 2 + … + k = k(k + 1)/21, 3, 6, 10, 15, 21
FibonacciEach term is the sum of the previous two1, 2, 3, 5, 8, 13, 21
PalindromeReads the same backwards121, 1331, 12321
Armstrong (narcissistic)Sum of each digit raised to the number of digits equals the number153 = 1³ + 5³ + 3³, 9474
Harshad (Niven)Divisible by its digit sum18, 21, 111, 1729
HappyRepeatedly summing the squares of the digits reaches 17, 10, 13, 19, 23
Square-freeNo prime factor appears twice10, 30, 105
SemiprimeProduct of exactly two primes (possibly equal)4, 6, 15, 77

How the checks work

The calculator first finds the prime factorization, because most other properties follow from it. If n = p₁a × p₂b × …, then the number of divisors is (a + 1)(b + 1)…, the sum of divisors σ(n) is the product of (1 + p + … + pa) for each prime, and Euler’s totient is φ(n) = n × (1 − 1/p₁)(1 − 1/p₂)…. A number is perfect when σ(n) = 2n, a perfect square when every exponent is even, and square-free when every exponent is 1.

Shape tests use exact integer square roots: n is triangular when 8n + 1 is a perfect square, and a Fibonacci number when 5n² + 4 or 5n² − 4 is a perfect square. Primality of large values and the next/previous prime use the Miller–Rabin test with the first twelve primes as bases, which is proven exact far beyond 1015.

Fun examples to try: 1729 is the smallest number that is a sum of two cubes in two different ways (1³ + 12³ = 9³ + 10³). 8128 is the fourth perfect number. 600,851,475,143 factors into four primes, the largest being 6857.

Frequently asked questions

How do I know if a number is prime?

A prime has exactly two divisors, 1 and itself. To check n, try dividing by every prime up to √n; if none divides evenly, n is prime. 97 is prime because 2, 3, 5 and 7 (the primes up to √97 ≈ 9.8) all leave remainders. For large numbers this tool uses the deterministic Miller–Rabin test.

Is 0 or 1 a prime number?

Neither. 1 has only one divisor and 0 is divisible by every positive whole number, so both are classed as neither prime nor composite. 2 is the smallest prime and the only even prime.

What is a perfect number?

A number equal to the sum of its proper divisors (all divisors except itself). 28 is perfect because 1 + 2 + 4 + 7 + 14 = 28. If the sum is larger the number is abundant (12: 1+2+3+4+6 = 16); if smaller it is deficient. Known perfect numbers are rare: 6, 28, 496, 8128, 33,550,336…

How do you find the number of divisors?

Write the prime factorization, add 1 to each exponent and multiply. 360 = 2³ × 3² × 5, so it has (3+1)(2+1)(1+1) = 24 divisors.

How can I tell if a number is triangular or Fibonacci?

n is triangular (1, 3, 6, 10, 15…) exactly when 8n + 1 is a perfect square. n is a Fibonacci number exactly when 5n² + 4 or 5n² − 4 is a perfect square. Both tests are exact, so the tool does not need to list the sequences.

What are the digit sum and digital root?

The digit sum adds the digits (1729 → 1+7+2+9 = 19). Repeating until one digit remains gives the digital root (19 → 10 → 1). A number is divisible by 3 or 9 exactly when its digit sum is.

How big a number can I check?

Any whole number from 0 up to 10^15 (one quadrillion). All tests are exact; factoring a number up to 10^15 takes well under a second in your browser.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Percentage CalculatorWork out percentages, increases and decreases.Percentage Change CalculatorPercent increase or decrease between two values, and reverse.Percentage Difference CalculatorFind the percent difference between two values, with the formula.Ratio CalculatorSimplify, solve and scale ratios with step-by-step working.Proportion CalculatorSolve A/B = C/D for x with cross multiplication steps.Scientific CalculatorTrig, logs, powers and more in your browser.Fraction CalculatorAdd, subtract, multiply and divide fractions with steps.Multiplication Table GeneratorPrintable multiplication charts up to 30 × 30, single tables and practice sheets.Times Tables PracticeTimed times tables drills with a number pad, streaks and an accuracy heatmap.Fraction VisualizerInteractive fraction circles and bars: equivalents, comparing, adding and simplifying.Number Line GeneratorDraw number lines with any range, fractions or decimals, points, jumps and inequalities.Significant Figures CalculatorCount sig figs, round to any number of significant figures and do arithmetic with sig fig rules.Scientific Notation ConverterConvert numbers to and from scientific, engineering and E-notation, with exact digits and SI prefixes.Caffeine CalculatorAdd up daily caffeine, compare it with 400 mg and see how much is left at bedtime.Percent Error CalculatorPercent error between experimental and theoretical values, for one result or several trials.Rounding CalculatorRound to decimal places, significant figures or the nearest 10, 100 or 0.5, any rule.Long Division CalculatorDivide with quotient, remainder, decimals and a step-by-step long division layout.Cube Root CalculatorFind cube roots and nth roots, check perfect cubes and simplify radicals.2-Stroke Oil Mix CalculatorHow much 2-stroke oil to add to gas for 50:1, 40:1, 32:1 and more, in fl oz or ml.Math Worksheet GeneratorCreate printable addition, subtraction, multiplication and division worksheets with answer keys.Simplify Fractions CalculatorReduce any fraction to lowest terms with GCD steps, mixed number, decimal and equivalents.Complex Number CalculatorAdd, subtract, multiply, divide complex numbers; polar form, modulus, argument, powers and roots.Big Number CalculatorExact + − × ÷ mod and powers for huge integers with hundreds of digits, plus digit count.Three-Phase Power CalculatorkW, kVA and kVAR from volts, amps and power factor, or three-phase current from kW or kVA.Compression Ratio CalculatorStatic engine compression ratio from bore, stroke, chamber, gasket, deck and piston volume.Expanded Form CalculatorWrite any number or decimal in expanded form, word form and a place value chart.Mixed Number CalculatorAdd, subtract, multiply and divide mixed numbers, or convert improper fractions, with steps.Nth Root CalculatorAny root of any number: real nth root, simplified radical and all complex roots.Long Multiplication CalculatorMultiply whole numbers or decimals with the column method shown digit by digit.Matrix Multiplication CalculatorMultiply matrices up to 8×8 with every dot product shown, exact fractions and a size check.Order of Operations Calculator (PEMDAS)Solve arithmetic expressions step by step with PEMDAS/BODMAS, brackets, powers and fractions.Virtual Base Ten BlocksDrag ones, rods, flats and cubes onto a place value mat to model regrouping, addition and subtraction.Compare Fractions CalculatorCompare two or more fractions with <, > or = and put them in order, with steps.Equivalent Fractions CalculatorList equivalent fractions, check if two are equal, or find a missing number, with bars.Rationalize the Denominator CalculatorRemove square roots and cube roots from a denominator, with conjugates and full steps.Reverse Percentage CalculatorFind the original value before a percentage increase or decrease, or the whole from a part.Riemann Sum CalculatorLeft, right, midpoint and trapezoid sums of f(x) on [a, b] with a table and rectangle graph.Sum CalculatorPaste any list or column of numbers to get the total, count, average, min and max instantly.Unit Rate CalculatorFind the unit rate (per 1) from two quantities, compare rates and see the steps.Map Scale CalculatorConvert map distance to real distance and back for scales like 1:24,000 or 1 in = 1 mi.Math Formulas Cheat SheetSearchable algebra, geometry, trig, calculus and statistics formulas with a printable sheet.Paper Tape CalculatorAdding machine calculator with a running paper tape: edit entries, subtotals, notes, print or export.Pi Digits CalculatorCalculate π to up to 100,000 digits, find any number or your birthday in pi, and download it.PSAT Score CalculatorEstimate your PSAT/NMSQT section scores, total score and National Merit Selection Index.Rational Expressions CalculatorSimplify, add, subtract, multiply and divide rational expressions with excluded values.
See all 46 Arithmetic & Number Calculators →