Factor Calculator
Enter any positive integer to find all its factors in pairs, its prime factorization, the total number of factors, and whether it is perfect, abundant, or deficient.
Enter a positive integer (up to 1,000,000).
What is a Factor?
A factor of a whole number is any integer that divides into that number exactly, leaving no remainder. For example, the factors of 12 are 1, 2, 3, 4, 6, and 12 — because each of these numbers divides 12 without a remainder. Factors always come in pairs: if 3 is a factor of 12, then 12 ÷ 3 = 4 means 4 is also a factor. These are called factor pairs. The total number of factors a number has is related to its prime factorisation — a number with many small prime factors tends to have many total factors.
Prime factorisation expresses a number as a product of prime numbers raised to their respective powers. By the Fundamental Theorem of Arithmetic, every integer greater than 1 has a unique prime factorisation (up to the order of factors). For example, 360 = 2³ × 3² × 5. The total number of factors can be computed directly from the prime factorisation: add 1 to each exponent and multiply the results — for 360, this gives (3+1)(2+1)(1+1) = 24 factors. This shortcut is far faster than listing factors individually for large numbers.
Factorisation underpins many areas of mathematics and computing. In cryptography, the difficulty of factoring very large semiprimes (products of two large primes) is the security foundation of RSA encryption. In simplifying fractions, finding common factors of the numerator and denominator allows reduction to lowest terms. In number theory, a number's factorisation reveals its classification: perfect numbers (like 6 and 28) have proper divisor sums equal to themselves; abundant numbers have sums that exceed them; deficient numbers have sums below them. This calculator finds all factors, computes the prime factorisation, and classifies the number for complete factorisation analysis.
Classifications Explained
How the Factor Calculator Works
Formula, assumptions, and calculation steps for this math tool.
Methodology
Math calculators apply the relevant arithmetic, algebraic, geometric, or numeric rule to the values entered and simplify the result where possible.
Calculation Steps
- Read the values and operation selected.
- Normalize signs, decimals, fractions, or units if needed.
- Apply the mathematical rule or formula.
- Format the answer and any intermediate values for checking.
Assumptions and Limits
- Inputs must be within the supported domain of the operation.
- Decimal answers may be rounded for readability.
- Symbolic simplification is limited to the calculator scope.
Frequently Asked Questions
A factor (or divisor) of an integer n is any integer that divides n without a remainder. For example, the factors of 12 are 1, 2, 3, 4, 6, and 12.
Prime factorization expresses a number as a product of prime numbers. Every integer greater than 1 has a unique prime factorization. For example, 360 = 2³ × 3² × 5.
If n = p₁^a₁ × p₂^a₂ × … × pₖ^aₖ, then the number of factors is (a₁+1)(a₂+1)…(aₖ+1). For 360 = 2³ × 3² × 5¹, that is (3+1)(2+1)(1+1) = 24 factors.
A perfect number equals the sum of its proper divisors. The first few perfect numbers are 6, 28, 496, and 8128. Only 51 perfect numbers are known, and all known ones are even.
A factor divides evenly into a number. A multiple is the result of multiplying a number by an integer. For 4: factors are 1, 2, 4; multiples are 4, 8, 12, 16…
Real-World Applications
Common Mistakes
Number Classification by Factor Sum
| Classification | Condition | Example |
|---|---|---|
| Perfect | Sum of proper divisors = n | 6 (1+2+3=6), 28 (1+2+4+7+14=28) |
| Abundant | Sum of proper divisors > n | 12 (1+2+3+4+6=16 > 12) |
| Deficient | Sum of proper divisors < n | 9 (1+3=4 < 9) |
| Prime | Only divisors are 1 and itself | 7, 13, 17, 19, 23 |
| Composite | Has at least one factor besides 1 and itself | 4, 6, 8, 9, 10 |
| 1 (special case) | Neither prime nor composite | Divisors: {1} only |
References
- Hardy, G.H. and Wright, E.M. An Introduction to the Theory of Numbers. Oxford University Press, 2008.
- Niven, Ivan et al. An Introduction to the Theory of Numbers. Wiley, 1991.
- Rivest, R., Shamir, A., Adleman, L. "A Method for Obtaining Digital Signatures and Public-Key Cryptosystems." Communications of the ACM, 1978.
- Knuth, Donald. The Art of Computer Programming, Vol. 2: Seminumerical Algorithms. Addison-Wesley, 1997.
- National Institute of Standards and Technology. Digital Signature Standard (FIPS 186-5). NIST, 2023.
Related Calculators
Browse all Math calculators →Prime Number Calculator
Check if a number is prime and find prime numbers up to any limit.
GCF Calculator
Calculate the Greatest Common Factor (GCF/GCD) of two or more numbers.
LCM Calculator
Calculate the Least Common Multiple (LCM) of two or more numbers.