Factor Calculator
Find all factors and factor pairs of a number
Factor Calculator tool
Results
Factors:
—
Number of Factors
0
Sum of Factors
0
Type
neither
Perfect Number
No
Factor Calculator: key facts
- What it does
- Find all factors and factor pairs of a number
- Category
- Math Calculators
- Cost
- Free, with no account, sign-up, or install.
- Your data
- Runs entirely in your browser — the files and text you enter are never uploaded to a server.
- Last reviewed
- . Report an incorrect result.
What the Factor Calculator does
Every whole number can be broken down into the smaller numbers that divide it evenly — its factors. This calculator lists all of them, pairs them up, counts them, sums them, and tells you whether the number is prime, composite, or even a perfect number.
Students use it across number theory and fraction work; puzzle solvers and programmers use it when divisibility matters. The factor pairs are especially handy for problems like finding rectangle dimensions for a given area, and the perfect-number check adds a touch of mathematical curiosity that pure factor lists miss.
Using the Factor Calculator, step by step
- Enter a positive whole number.
- Read the full list of its factors.
- Review the factor pairs, each multiplying to your number.
- Check the extras: factor count, sum of factors, prime-or-composite type, and whether it is a perfect number.
Trial division to the square root
Factors are found by testing every integer from one up to the square root of the target. Each divisor discovered yields two factors at once — the divisor itself and the quotient — so checking beyond the square root would only rediscover pairs already found in reverse.
That optimisation is what makes the search practical. Finding the factors of a million requires a thousand tests rather than a million, and the saving grows with the size of the number. Perfect squares are the one case where a divisor pairs with itself, so the tool avoids listing it twice.
Factors are presented in pairs as well as in a flat sorted list, since the pairing shows the structure: every factor below the square root has exactly one partner above it, and their product is always the original number.
- The default 24 has eight factors — 1, 2, 3, 4, 6, 8, 12, 24 — pairing as 1×24, 2×12, 3×8, and 4×6.
- 36, a perfect square, pairs 6 with itself, which is why it has an odd number of factors.
- A prime such as 23 has only two factors, 1 and itself.
What makes this one worth using
- It lists factor pairs with multiplication notation, not just a flat list, which suits problems like sizing rectangles for a given area.
- It classifies the number as prime or composite and flags perfect numbers, going beyond a bare factor list.
- It reports the count and sum of factors, useful shortcuts for many number-theory problems.
- All computation stays in your browser with no account.
Factor counts, and why large numbers resist
How many factors a number has follows from its prime decomposition: add one to each prime's exponent and multiply those together. So 24, being 2³ × 3, has (3+1)(1+1) = 8 factors. The rule also explains why only perfect squares have an odd factor count — every exponent must be even for the product of the incremented exponents to be odd.
Numbers with unusually many factors relative to their size are called highly composite, and 12, 24, 60, and 360 are among them. That abundance of divisors is exactly why those numbers were chosen for hours, minutes, degrees, and old currency systems: they divide evenly in many more ways than ten does.
The difficulty of the reverse problem is what modern cryptography rests on. Multiplying two large primes is trivial; recovering them from the product is not, and no efficient classical algorithm is known. Trial division of the kind used here is fine for everyday numbers and hopeless beyond a certain size — which is the whole basis of RSA encryption.
Frequently Asked Questions
What is the difference between factors and prime factors?
Factors are all the numbers that divide evenly into your number, including 1 and the number itself. Prime factors are only the prime numbers among them, which multiply together to make the number. This tool lists all factors; a prime factorization tool isolates the primes.
What makes a number prime or composite?
A prime number has exactly two factors, 1 and itself. A composite number has more than two. The calculator counts the factors and labels the number accordingly — note that 1 is neither prime nor composite by definition.
What is a perfect number?
A perfect number equals the sum of its proper divisors (all its factors except itself). The smallest is 6, since 1 + 2 + 3 = 6. They are rare, and the calculator flags one when you happen to enter it.
How do factor pairs help with real problems?
Each pair multiplies to your number, so they map directly to questions like "what rectangle dimensions give this area?" or "how can I arrange this many items into equal rows?" The calculator lists every pair, saving you from testing divisors one by one.