Factoring Calculator

Find every factor of a number — all divisors and factor pairs — with step-by-step trial division up to the square root. Negatives and primes handled.

Loading calculator…

How to use this calculator

Type any whole number — positive or negative — into the box. The calculator lists every factor (divisor) in ascending order, groups them into the factor pairs that multiply back to your number, and shows the trial-division working underneath. Prime numbers are flagged, and negative inputs also get their sign-flipped pairs.

Tip: Factoring a number is the first step behind greatest common factor, lowest common multiple, and simplifying fractions — the same divisor lists power all of them.

What is a factor?

A factor (or divisor) of a whole number nn is an integer that divides nn evenly — with no remainder. Because 48=6×848 = 6 \times 8, both 6 and 8 are factors of 48. Every number has at least two factors, 1 and itself; a number whose only factors are 1 and itself is prime.

Why trial division stops at the square root

Factors always appear in pairs a×b=na \times b = n. If both members of a pair were bigger than n\sqrt{n}, their product would be bigger than nn — impossible. So at least one factor of every pair is less than or equal to n\sqrt{n}.

That is why the calculator only tests 1,2,3,,n1, 2, 3, \dots, \lfloor\sqrt{n}\rfloor. Each divisor aa it finds is paired with its quotient n/an / a, which recovers the larger factor for free. For 48, 486.93\sqrt{48} \approx 6.93, so testing 1 through 6 is enough to discover all ten factors.

Factoring negative numbers

The divisors of a negative number are the same as those of its absolute value. What changes is the sign of the pairs: since a negative times a positive is negative, each pair (a,b)(a, b) has a sign-flipped twin. For 6-6:

(1)(6)=(1)(6)=(2)(3)=(2)(3)=6(1)(-6) = (-1)(6) = (2)(-3) = (-2)(3) = -6

Factors vs. multiples

These are easy to mix up:

Factors of 12Multiples of 12
Definitiondivide into 1212 times an integer
Values1, 2, 3, 4, 6, 1212, 24, 36, 48, …
Sizenever larger than 12never smaller than 12
How manyfiniteinfinite

Worked example — the factors of 48

  1. 486.93\sqrt{48} \approx 6.93, so test the integers 1 through 6.
  2. 48÷1=4848 \div 1 = 48 → pair (1, 48).
  3. 48÷2=2448 \div 2 = 24 → pair (2, 24).
  4. 48÷3=1648 \div 3 = 16 → pair (3, 16).
  5. 48÷4=1248 \div 4 = 12 → pair (4, 12).
  6. 5 does not divide 48 evenly — skip it.
  7. 48÷6=848 \div 6 = 8 → pair (6, 8).

Collecting both members of every pair gives the ten factors: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48.

Frequently asked questions

What are the factors of 48?
48 has ten factors: 1, 2, 3, 4, 6, 8, 12, 16, 24, and 48. They come in pairs that multiply to 48: (1, 48), (2, 24), (3, 16), (4, 12), and (6, 8).
What is a factor of a number?
A factor (or divisor) of a whole number nn is an integer that divides nn with no remainder. For example 6 is a factor of 48 because 48÷6=848 \div 6 = 8 exactly, while 5 is not because 48÷548 \div 5 leaves a remainder.
Why does the calculator only test numbers up to the square root?
Factors always come in pairs a×b=na \times b = n. If both were larger than n\sqrt{n} their product would exceed nn, so one factor of every pair is at or below n\sqrt{n}. Testing up to n\sqrt{n} and pairing each hit with its quotient finds them all.
Can a negative number be factored?
Yes. The divisors of a negative number are the same as those of its absolute value, but each factor pair can also be written with opposite signs, since a negative times a positive is negative. For −6 the pairs are (1, −6), (−1, 6), (2, −3), and (−2, 3).
Why is 0 not allowed?
Every integer divides 0 (because 0÷n=00 \div n = 0 for any nn), so 0 has infinitely many factors and no finite list to show. The calculator asks for a non-zero number instead.
What is the difference between a factor and a multiple?
A factor divides into the number (factors of 12 are 1, 2, 3, 4, 6, 12). A multiple is the number times an integer (multiples of 12 are 12, 24, 36, …). Factors are never larger than the number; multiples are never smaller.
How can I tell if a number is prime from its factors?
A prime number has exactly two factors: 1 and itself. If the factor list has only two entries, the number is prime. 17 → {1, 17} is prime; 18 → {1, 2, 3, 6, 9, 18} is not.

Related calculators