Free Factor Calculator - Find All Factors of a Number Online | Lembog
Our Factor Calculator is a free online tool that instantly finds all factors, factor pairs, and the prime factorization of any positive integer. Whether you are working on homework, preparing for exams, or solving real-world math problems, this calculator provides detailed step-by-step solutions with clear visual breakdowns.
What Are Factors?
A factor of a number is an integer that divides that number exactly without leaving a remainder. In other words, if you can divide a number n by another number f and get a whole number result, then f is a factor of n.
For example, the factors of 12 are 1, 2, 3, 4, 6, 12 because:
12 ÷ 1 = 12(remainder 0)12 ÷ 2 = 6(remainder 0)12 ÷ 3 = 4(remainder 0)12 ÷ 4 = 3(remainder 0)12 ÷ 6 = 2(remainder 0)12 ÷ 12 = 1(remainder 0)
Mathematically, f is a factor of n if n mod f = 0.
How to Find All Factors of a Number
The most efficient way to find all factors of a number n is to check divisibility for all integers from 1 to √n. For each divisor d that divides n evenly, you get two factors: d and n / d.
Step-by-Step Method
- Start with
d = 1 - Check if
n ÷ dhas no remainder - If yes, both
dandn / dare factors - Continue until
dexceeds√n - Sort all collected factors in ascending order
Example: Find all factors of 36
d = 1:36 ÷ 1 = 36→ factors 1, 36d = 2:36 ÷ 2 = 18→ factors 2, 18d = 3:36 ÷ 3 = 12→ factors 3, 12d = 4:36 ÷ 4 = 9→ factors 4, 9d = 5:36 ÷ 5 = 7.2→ not a factord = 6:36 ÷ 6 = 6→ factor 6 (only counted once)
Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36 (9 factors)
Factor Pairs
Factor pairs are two numbers that multiply together to give the original number. Every factor f has a corresponding pair n / f.
Example: Factor pairs of 36
| Factor A | × | Factor B | = | Product |
|---|---|---|---|---|
| 1 | × | 36 | = | 36 |
| 2 | × | 18 | = | 36 |
| 3 | × | 12 | = | 36 |
| 4 | × | 9 | = | 36 |
| 6 | × | 6 | = | 36 |
Notice that perfect squares always have an odd number of factors because the square root pairs with itself. This is why 36 has 9 factors — the middle factor is 6 × 6.
Prime vs Composite Numbers
Prime Numbers
A prime number has exactly two factors: 1 and itself. Examples include 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, ...
- The number
2is the only even prime number 1is neither prime nor composite- There are infinitely many prime numbers
Composite Numbers
A composite number has more than two factors. Every composite number can be expressed as a product of prime numbers.
4= 2 × 2 (factors: 1, 2, 4)6= 2 × 3 (factors: 1, 2, 3, 6)12= 2 × 2 × 3 (factors: 1, 2, 3, 4, 6, 12)
Prime Factorization
Prime factorization breaks a number down into a product of prime numbers. Every integer greater than 1 can be uniquely expressed as a product of primes (Fundamental Theorem of Arithmetic).
How to Find Prime Factorization
Start with the smallest prime (2) and keep dividing until you cannot divide evenly, then move to the next prime.
Example: Prime factorization of 360
360 ÷ 2 = 180
180 ÷ 2 = 90
90 ÷ 2 = 45
45 ÷ 3 = 15
15 ÷ 3 = 5
5 ÷ 5 = 1
Result: 360 = 2³ × 3² × 5
Using Prime Factorization to Find All Factors
If n = p₁^a × p₂^b × p₃^c, the total number of factors is:
Total factors = (a + 1) × (b + 1) × (c + 1)
For 360 = 2³ × 3² × 5¹:
Total factors = (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24
Perfect Squares and Perfect Cubes
Perfect Squares
A perfect square is a number that is the square of an integer. Its prime factorization has all even exponents.
36 = 6²(exponents: 2² × 3¹ — not all even, so actually not true... 36 = 2² × 3² — all even)100 = 10² = 2² × 5²- Perfect squares always have an odd number of total factors
Perfect Cubes
A perfect cube is a number that is the cube of an integer. Its prime factorization has all exponents divisible by 3.
8 = 2³27 = 3³216 = 6³ = 2³ × 3³
Factor Properties and Formulas
Sum of Factors
The sum of all factors of n where n = p₁^a × p₂^b × ...:
σ(n) = (1 + p₁ + p₁² + ... + p₁^a) × (1 + p₂ + p₂² + ... + p₂^b) × ...
For n = 12 = 2² × 3¹:
σ(12) = (1 + 2 + 4) × (1 + 3) = 7 × 4 = 28
You can verify: 1 + 2 + 3 + 4 + 6 + 12 = 28
Perfect Numbers
A perfect number equals the sum of its proper factors (all factors except the number itself).
6: proper factors = 1 + 2 + 3 = 6 ✓28: proper factors = 1 + 2 + 4 + 7 + 14 = 28 ✓496: proper factors sum to 496 ✓8128: proper factors sum to 8128 ✓
Product of Factors
The product of all factors of n equals n^(d/2) where d is the total number of factors.
For n = 12 with 6 factors: product = 12^(6/2) = 12³ = 1728
Verify: 1 × 2 × 3 × 4 × 6 × 12 = 1728 ✓
Real-World Uses of Factors
Division and Grouping
Factors tell you all the ways you can divide a group evenly. If you have 24 students, the factors of 24 (1, 2, 3, 4, 6, 8, 12, 24) tell you all possible equal group sizes — you could split them into groups of 2, 3, 4, 6, 8, or 12.
Fractions and Simplification
Finding common factors is essential for simplifying fractions. To reduce 18/24, find the GCF using factors: GCF(18, 24) = 6, so 18/24 = 3/4.
Algebra and Polynomials
Factoring polynomials relies on understanding numerical factors. The Rational Root Theorem states that possible rational roots of a polynomial are ratios of factors of the constant term to factors of the leading coefficient.
Cryptography
Modern encryption (RSA) is built on the difficulty of factoring very large composite numbers into their prime factors. The security of online transactions depends on this mathematical challenge.
Engineering and Construction
Factors help determine compatible dimensions. If a floor is 360 square feet, knowing its factors helps plan tile layouts, board lengths, and material quantities that fit without waste.
Scheduling and Time
Factors of time units help create repeating schedules. Events that repeat every 12 and 18 days align every LCM(12, 18) = 36 days, which relates to their common factors.
How to Use Our Factor Calculator
- Enter any positive integer from 1 to 99,999,999 in the input field
- View all factors displayed as color-coded chips in a grid
- Check the factor pairs table showing every multiplication pair
- See the prime factorization with exponent notation
- Review number classification badges (prime, composite, perfect square, perfect cube, even, odd)
- Expand the step-by-step section to see the trial division process
- Use the quick example buttons to explore common numbers
Frequently Asked Questions
What is the difference between a factor and a multiple?
A factor divides into a number evenly, while a multiple is the result of multiplying a number by an integer. For example, 3 is a factor of 12 because 12 ÷ 3 = 4, and 12 is a multiple of 3 because 3 × 4 = 12. Every factor of n is smaller than or equal to n, while every multiple of n is greater than or equal to n.
How many factors does a prime number have?
A prime number always has exactly 2 factors: 1 and itself. For example, the prime number 17 has only the factors 1 and 17. This is actually the definition of a prime number — it cannot be divided by any number other than 1 and itself.
What is the difference between factors and divisors?
In most contexts, factors and divisors mean the same thing — they are numbers that divide evenly into another number. Technically, some mathematicians use "divisor" to include negative numbers as well, while "factor" usually refers to positive integers. Our calculator shows positive factors only.
Can a number have an odd number of factors?
Yes. Only perfect squares have an odd number of factors. This happens because for perfect squares, the square root pairs with itself, so it is only counted once. For example, 36 = 6² has 9 factors. Non-perfect squares always have an even number of factors because every factor pairs with a distinct partner.
What is the largest number of factors a number can have?
Highly composite numbers have more factors than any smaller number. The number 360 has 24 factors, 2520 has 48 factors, and 997920 has 240 factors. There is no upper limit — as numbers grow, they can have increasingly many factors.
How do factors relate to the GCF and LCM?
The Greatest Common Factor (GCF) of two numbers is the largest factor they share. The Least Common Multiple (LCM) is the smallest number that has both original numbers as factors. They are related by the formula: GCF(a, b) × LCM(a, b) = a × b.
Is 1 a factor of every number?
Yes, 1 is a factor of every positive integer because any number divided by 1 equals itself with no remainder. Similarly, every number is a factor of itself. This is why factors always include both 1 and the number itself.
What is prime factorization used for?
Prime factorization is used to find the GCF and LCM of numbers, simplify fractions, solve Diophantine equations, understand number properties, and in cryptography (particularly RSA encryption). It provides a unique "fingerprint" for every integer through the Fundamental Theorem of Arithmetic.
How do you find factors of very large numbers?
For very large numbers, trial division becomes slow. Advanced algorithms like Pollard's rho algorithm, the quadratic sieve, and the general number field sieve are used. Our calculator efficiently handles numbers up to 99,999,999 using optimized trial division from 1 to the square root.
What are proper factors?
Proper factors (or proper divisors) are all the factors of a number except the number itself. For example, the proper factors of 12 are 1, 2, 3, 4, 6. Perfect numbers are special because the sum of their proper factors equals the number itself.
Why Use Our Factor Calculator
Our Factor Calculator provides instant, comprehensive results for any positive integer up to 99,999,999. It goes beyond simple factor listing by showing factor pairs in a clean table, displaying prime factorization in exponent notation, classifying your number with visual badges, and providing a complete step-by-step trial division breakdown. The color-coded factor chips make it easy to visualize and understand the factor structure at a glance. Whether you are a student learning number theory, a teacher creating examples, or anyone who needs quick factor calculations, our free tool delivers accurate results with no downloads or sign-ups required.