Factor Calculator
Find all factors, factor pairs, and prime factorization of any number. Check if a number is prime and count the total number of divisors.
9 Factors
1, 2, 3, 4, 6, 9, 12, 18, 36
Prime Factorization
36 = 2 × 2 × 3 × 3
Factor Pairs
About the Factor Calculator
A factor calculator finds all divisors of a positive integer, organizes them into factor pairs, performs prime factorization, determines whether the number is prime, and counts the total number of factors. Factorization is a foundational operation in number theory with practical applications from fraction simplification to cryptographic security. Every positive integer has a unique prime factorization (the Fundamental Theorem of Arithmetic) — understanding a number's prime factors reveals its divisibility properties, helps find GCF/LCM, and is the basis for RSA encryption (whose security rests on the difficulty of factoring large numbers into primes). Our calculator uses trial division up to √n for efficient factorization, presents all factor pairs neatly, and identifies prime numbers. For numbers with many factors (highly composite numbers like 360 = 2³ × 3² × 5), the factor pairs list shows the complete divisibility structure at a glance. Understanding factors matters for algebraic factoring (factor a²−b² = (a+b)(a−b)), polynomial long division, and number theory proofs. Applicable for mathematics students from middle school through university, and for anyone working with divisibility problems.
Formula
Trial division 1 to √n | # factors = Π(eᵢ+1) for prime factorization n = Πpᵢ^eᵢ | Prime: exactly 2 factors
How It Works
Algorithm: test all integers i from 1 to √n. If n % i = 0, then both i and n/i are factors. Example: factors of 36. √36 = 6. Test 1: 36%1=0 → factors 1, 36. Test 2: 36%2=0 → 2, 18. Test 3: 36%3=0 → 3, 12. Test 4: 36%4=0 → 4, 9. Test 5: 36%5≠0. Test 6: 36%6=0 → 6, 6. Factors: 1, 2, 3, 4, 6, 9, 12, 18, 36 (9 total). Prime factorization: 36 = 4 × 9 = 2² × 3². Number of factors formula: if n = p₁^a₁ × p₂^a₂ × ..., then count = (a₁+1)(a₂+1)... For 36 = 2² × 3²: count = (2+1)(2+1) = 9 factors. Prime check: if the only factors are 1 and n itself (count = 2), the number is prime. 37 has only factors 1 and 37: prime. Perfect numbers have factors that sum to twice the number: 6 = 1+2+3 = 6 (factors sum equals n).
Tips & Best Practices
- ✓Sum of factors formula: for n = p₁^a₁ × p₂^a₂ × ...: sum of factors = Π[(pᵢ^(aᵢ+1) − 1) / (pᵢ − 1)]. For 36 = 2² × 3²: sum = [(2³−1)/(2−1)] × [(3³−1)/(3−1)] = 7 × 13 = 91. Check: 1+2+3+4+6+9+12+18+36 = 91 ✓.
- ✓Highly composite numbers: numbers with more factors than any smaller positive integer. The sequence: 1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360... These are optimal for denominators (maximizing the fractions with integer numerators) and for scheduling (maximizing the number of regular intervals that divide evenly).
- ✓Unique factorization theorem (FTA): every integer > 1 has a unique prime factorization (up to ordering). This uniqueness is why GCD and LCM calculations work — different prime factorizations identify different integers unambiguously.
Who Uses This Calculator
Students working on divisibility, factor trees, and prime factorization problems in school mathematics. Algebra students who need to factor polynomials by finding factors of the constant term. Number theory students exploring properties of highly composite numbers, perfect numbers, and prime gaps. Programmers implementing number theory algorithms that require factorization.
Optimised for: USA · UK · Canada · Australia · Calculations run in your browser · No data stored
Frequently Asked Questions
How do I find all factors of a number?
Test all integers from 1 to √n: if i divides n evenly, both i and n/i are factors. For 36: test 1-6: 1×36, 2×18, 3×12, 4×9, 6×6. Factors: 1, 2, 3, 4, 6, 9, 12, 18, 36 (9 factors total).
How do I find the prime factorization of a number?
Divide repeatedly by the smallest prime: 360 ÷ 2 = 180; ÷ 2 = 90; ÷ 2 = 45; ÷ 3 = 15; ÷ 3 = 5; ÷ 5 = 1. Prime factorization: 360 = 2³ × 3² × 5.
How do I know if a number is prime?
A prime number has exactly 2 factors: 1 and itself. To check: test divisibility by all primes up to √n. If no prime divides evenly, the number is prime. Primes under 50: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47.