Factor Calculator
Find all factors, factor pairs, and prime factorization with a visual factor tree.
Input Number
Supports integers from 1 up to 999,999,999,999,999
What You Get
All Factors
The complete list of every integer that divides your number evenly.
Factor Pairs
Every pair of numbers that multiply to give your original number.
Prime Factors
The number expressed as a product of its prime factors.
Factor Tree
A visual tree diagram showing the prime factorization step by step.
Related Math Tools
Factor Calculator: The Complete Guide to Finding All Factors of a Number
The Factor Calculator on lcmcalculator.info is a free online tool that instantly finds all factors of any positive integer, along with factor pairs, prime factors, and a visual factor tree. Whether you are a student learning divisibility, a teacher preparing lesson materials, or a developer working with number-theoretic algorithms, this tool delivers fast, accurate results with full step-by-step solutions.
What Is a Factor?
A factor (also called a divisor) of a number is an integer that divides that number evenly, leaving no remainder. For example, the factors of 20 are:
Each of these divides 20 exactly: 20 ÷ 1 = 20, 20 ÷ 2 = 10, 20 ÷ 4 = 5, and so on. The number 3 is not a factor of 20 because 20 ÷ 3 leaves a remainder of 2.
Why Are Factors Important?
- Simplifying Fractions: Finding the GCF of the numerator and denominator relies on factors.
- Finding LCM and GCF: Factors and prime factorization are the backbone of LCM and GCF calculations.
- Factoring Polynomials: In algebra, factoring expressions depends on understanding factors of numbers.
- Cryptography: RSA encryption relies on the difficulty of finding factors of very large semiprimes.
- Number Theory: Divisibility, prime testing, and modular arithmetic all involve factors.
The Three Outputs You Get
1. All Factors
The complete list of every integer that divides your number evenly. For 20: 1, 2, 4, 5, 10, 20.
2. Factor Pairs
Every pair of numbers that multiply together to give your original number. For 20:
- (1, 20) because 1 × 20 = 20
- (2, 10) because 2 × 10 = 20
- (4, 5) because 4 × 5 = 20
3. Prime Factorization
The number written as a product of its prime factors. For 20:
4. Factor Tree
A visual diagram that shows how the number is broken down into primes. For 20:
Reading the leaves of the tree (the primes at the ends) gives the prime factorization: 20 = 2 × 2 × 5.
How to Find All Factors of a Number
The fastest manual method is the square root method:
- Compute √n.
- Test each integer from 1 up to √n.
- If the integer divides n evenly, record both it and its partner (n ÷ integer).
- Collect all pairs and list the unique factors.
Example: Find factors of 20.
- √20 ≈ 4.47, so test 1, 2, 3, 4.
- Test 1 → 20 = 1 × 20 → pair (1, 20)
- Test 2 → 20 = 2 × 10 → pair (2, 10)
- Test 3 → 20 ÷ 3 = 6.67 → not a factor
- Test 4 → 20 = 4 × 5 → pair (4, 5)
Factors of 20: 1, 2, 4, 5, 10, 20
Factors vs Multiples: What's the Difference?
- Factors divide a number evenly. They are always ≤ the number (e.g., factors of 12: 1, 2, 3, 4, 6, 12).
- Multiples are the result of multiplying a number by an integer. They are always ≥ the number (e.g., multiples of 12: 12, 24, 36, 48, …).
Prime, Composite, and the Number of Factors
- 1 has exactly one factor: 1.
- Prime numbers have exactly two factors: 1 and themselves (e.g., 2, 3, 5, 7, 11, 13).
- Composite numbers have more than two factors (e.g., 4, 6, 8, 9, 10, 12, 20).
- Perfect squares have an odd number of factors (e.g., 36 has 9 factors).
- Non-perfect-squares have an even number of factors (e.g., 20 has 6 factors).
The Divisor Count Formula
Given the prime factorization n = p₁a₁ × p₂a₂ × … × pₖaₖ, the number of positive factors is:
Example: 20 = 2² × 5, so d(20) = (2+1)(1+1) = 3 × 2 = 6 factors.
Factors in Programming
Here is how to find factors programmatically in several languages:
Python
JavaScript
Common Mistakes to Avoid
- Forgetting 1 and n: 1 and the number itself are always factors.
- Confusing factors with multiples: Factors are ≤ n; multiples are ≥ n.
- Testing only up to n/2: You can stop at √n with the factor-pairs method.
- Missing the square root pair: For perfect squares, √n is a factor and pairs with itself — count it once.
- Assuming odd numbers are prime: 9, 15, 21, 25, 27 have multiple factors and are not prime.
Conclusion
The Factor Calculator on lcmcalculator.info is a complete, free, and easy-to-use tool for finding all factors of any positive integer. With a full factor list, factor pairs, prime factorization, and a visual factor tree, it is suitable for students, teachers, and professionals alike. Bookmark this page and use it whenever you need to find the factors of any number.
Frequently Asked Questions About Factors
Answers to the most common questions about factors and divisibility.
What is a factor? ↓
A factor of a number is an integer that divides that number evenly without leaving a remainder. For example, the factors of 20 are 1, 2, 4, 5, 10, and 20.
How do you find all factors of a number? ↓
Test every integer from 1 up to √n. If the integer divides evenly, both it and its partner quotient are factors. For example, for 20: 1×20, 2×10, 4×5.
What is a factor pair? ↓
A factor pair is a set of two factors that multiply together to give the original number. For example, factor pairs of 20 are (1, 20), (2, 10), and (4, 5).
What is a factor tree? ↓
A factor tree is a visual diagram used to find the prime factorization of a number. You split the number into two factors, then split each composite factor further until all leaves are prime numbers.
What are the factors of 20? ↓
The factors of 20 are 1, 2, 4, 5, 10, and 20. The factor pairs are (1, 20), (2, 10), and (4, 5). The prime factorization is 20 = 2² × 5.
What is the difference between factors and multiples? ↓
Factors divide a number evenly (smaller than or equal to the number). Multiples are the result of multiplying a number by an integer (greater than or equal to the number).
How many factors does a number have? ↓
If n = p₁^a₁ × p₂^a₂ × … × pₖ^aₖ, then the number of positive factors is (a₁ + 1)(a₂ + 1)...(aₖ + 1). For 20 = 2² × 5, it has (2+1)(1+1) = 6 factors.
Is 1 a factor of every number? ↓
Yes, 1 is a factor of every positive integer because 1 divides every number evenly (n ÷ 1 = n).
Is this factor calculator free? ↓
Yes, this factor calculator is completely free with no registration required and no usage limits.
What are the factors of a prime number? ↓
A prime number has exactly two factors: 1 and itself. For example, the factors of 13 are 1 and 13.