Factor Calculator
Find all factors of any integer.
By Jeff Beem
Updated
Factor calculator
Enter a positive integer (up to 12 digits). We find all factors and the prime factorization.
1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60
60 = 2^2 × 3 × 5
Factor tree
Step-by-step
First, we divide 60 by the smallest prime, 2. 60 ÷ 2 = 30 (2 times). Next, we divide 15 by 3 (once). Next, we divide 5 by 5 (once). So the prime factorization is: 60 = 2^2 × 3 × 5.
When and How to Use the Factor Calculator
Enter one positive integer (up to 12 digits). Definitions, method, and RSA context are in the article below.
Workflow Tips
Prime Factorization
Factor Tree
Step-by-Step
Factor Calculator: All Factors & Prime Factorization
Free factor calculator: find all factors of any integer, prime factorization, and factor tree. How to find all factors of a number, list factors of 60, prime factorization calculator. n mod a = 0 up to √n. Teaching and RSA context.
How the Math Works
- n (Input):Positive integer up to 12 digits
- a (Trial divisor):Tested from 1 to √n; paired with n/a
- n mod a:Remainder after dividing n by a; zero means a is a factor
Worked example: Find all factors of 60.
- √60 ≈ 7.75, so test a = 1–7
- a = 1 → 60/1 = 60 → pair (1, 60)
- a = 2 → 60/2 = 30 → pair (2, 30)
- a = 3 → 60/3 = 20 → pair (3, 20)
- a = 4 → 60/4 = 15 → pair (4, 15)
- a = 5 → 60/5 = 12 → pair (5, 12)
- a = 6 → 60/6 = 10 → pair (6, 10)
- a = 7 → 60 mod 7 ≠ 0, skip
All factors: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 (12 factors total). Prime factorization: 2² × 3 × 5.
How to Use This Calculator
What This Calculator Does & Who It's For
Calculator Purpose & Ideal Users
- What You'll Get:All factors: Every integer a such that n mod a = 0, listed in order (e.g. list factors of 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60). Prime factorization: The number as a product of primes (e.g. 2³ × 3 × 5). Factor tree: An SVG diagram showing how the number splits into factors until primes. Step-by-step: A short explanation of the division steps.
- Ideal Users:Students & teachers: Number theory, what are factors in math, primes, factor trees. Homework: "Find all factors of 60" or "Write the prime factorization." Curious readers: RSA and why factoring large numbers is hard. Use as a prime factorization calculator or to find all factors of a number.
- Scope & Limits:Positive integers only, up to 12 digits. Trial division up to √n; no imaginary or decimal inputs.
What Is a Factor? Definition and n mod a = 0
Prime Numbers and Prime Factorization
The RSA Challenge: Why Factoring Is Hard
Factor Calculator FAQ
What is a factor of a number?
What is prime factorization?
How do you find all factors of a number?
Why is prime factorization important? (RSA and cryptography)
What is the maximum number I can enter?
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.