Factor Calculator

Enter any whole number and get every factor at once, the full prime factorization, and the classifications that matter: prime or composite, perfect square, and perfect, abundant or deficient.

What you get
  • Every factor, sortedThe complete divisor list, found by pairing up to the square root.
  • Prime factorizationThe number broken all the way down to primes, line by line.
  • ClassificationsPrime, perfect square, and perfect, abundant or deficient.

Your number

Results update as you type

Factors only make sense for whole numbers of 1 or more. The trial division runs up to the square root, so even 12-digit numbers finish instantly.

Runs entirely in your browser. Nothing you type is sent or saved

Factor guide

What factors are

A factor of a whole number is any whole number that divides it exactly, with nothing left over. The factors of 12 are 1, 2, 3, 4, 6 and 12, because each one divides 12 evenly: 12 ÷ 3 = 4 with no remainder, so both 3 and 4 belong. Factors always come in pairs that multiply to the number, and 1 and the number itself are always members of the list, which is why every number has at least two factors except 1, which has exactly one.

Factors describe what a number is built from. Two numbers with the same factors behave alike in fractions and sharing problems, which is why the factor list is the first thing an analyst reaches for when a division or simplification question appears.

How to find every factor: pairing up to the square root

Checking every number up to n would waste half the work, because factors pair up: once you know 5 divides 360, you know 72 does too, since 5 × 72 = 360. So the search only needs to run up to the square root. For 360, the square root is about 18.97, so the last candidate worth checking is 18: every composite number has a factor no larger than its square root. The full list:

  • 1 × 360 · 2 × 180 · 3 × 120 · 4 × 90 · 5 × 72 · 6 × 60
  • 8 × 45 · 9 × 40 · 10 × 36 · 12 × 30 · 15 × 24 · 18 × 20

That is twelve pairs, so 360 has 24 factors. Notice that 19 is skipped: 360 ÷ 19 leaves a remainder, and no candidate beyond the square root can produce an unpaired factor. This square-root shortcut is exactly why the calculator can factor a 12-digit number in a blink while checking a million candidates would take noticeably longer.

Prime factorization: a number's fingerprint

Every whole number greater than 1 is either a prime (its only factors are 1 and itself) or can be written as a product of primes in exactly one way. That unique product is the prime factorization, and it works like a fingerprint:

360 = 23 × 32 × 5

three 2s, two 3s and one 5, and no other list of primes multiplies to 360

The breakdown card above shows the whole reduction line by line: 360 = 2 × 180 = 2 × 2 × 90 = 2 × 2 × 2 × 45 = ... = 2 × 2 × 2 × 3 × 3 × 5. The prime factorization answers questions the factor list cannot: how many factors does a number have without listing them? Multiply one plus each exponent: (3 + 1) × (2 + 1) × (1 + 1) = 24. It also proves primality on the spot. The number 17 resists every division attempt below its square root, so its factorization is just 17, and it is prime.

Perfect, abundant and deficient numbers

Add up a number's proper divisors, the factors below the number itself, and three personalities emerge:

  • Perfect: the proper divisors sum to the number itself. For 28: 1 + 2 + 4 + 7 + 14 = 28. Only a handful of perfect numbers are known (6, 28, 496, 8128, then enormous ones), and finding more is an open problem in mathematics.
  • Abundant: the proper divisors overshoot the number. 12 is abundant, since 1 + 2 + 3 + 4 + 6 = 16.
  • Deficient: the proper divisors fall short, which is true of most numbers, including every prime (a prime's proper divisors sum to exactly 1).

The classification card also flags perfect squares, numbers whose square root is a whole number. They are the one case where the factor pairs contain an unpaired middle member, which is why a perfect square always has an odd number of factors: 1,000,000 has 49 of them, with 1,000 sitting alone in the middle of the list.

Where factors matter

  • Simplifying fractions: a common factor cancels. 48/18 becomes 8/3 once you divide top and bottom by their greatest common factor, 6. The factor lists of both numbers reveal it.
  • LCM and GCF: the least common multiple and greatest common factor are read straight off the prime factorizations, taking the highest powers for LCM and the shared ones for GCF. The LCM calculator and GCF calculator on this site both run on factoring.
  • Cryptography: modern encryption rests on a one-way street. Multiplying two large primes is instant; recovering them from the product is so slow that a laptop would need longer than the age of the universe for the key sizes in daily use. Factoring is easy here and hard there, and that asymmetry protects online traffic.
  • Everyday dividing: arranging 360 chairs into equal rows, splitting a bill, or tiling a floor all ask the same question: which whole numbers divide this evenly?

Using the calculator well

  • Whole numbers only: factors are defined for 1, 2, 3, ... The calculator rejects decimals, negatives and zero, each with an explanation rather than a wrong answer.
  • Read the factorization first: for big inputs the chip list gets long, but the prime factorization line is compact and answers most questions (how many factors, is it divisible by 3, is it a square) in one glance.
  • Use the classification: the prime flag settles "is this number prime?" faster than any manual check, and the perfect-square flag explains odd factor counts.
  • Pair with the GCF tool: to simplify a fraction or find shared structure between two numbers, factor both and compare, or let the GCF calculator do the comparison.
  • Mind the ceiling: inputs run up to 1012, which covers every practical factoring question. Beyond that the trial-division method would still work, just more slowly than a waiting web page should.

Common questions

Just 1 itself, since the only whole number that divides 1 evenly is 1. That single-member list is why 1 sits in its own category: it is neither prime (primes need exactly two factors) nor composite (composites need three or more). Every other whole number has at least two factors, 1 and itself.

The definitions exclude them by design. A prime must have exactly two distinct factors, and 1 has only one; a composite must be a product of at least two primes, and 1 cannot be built that way. Zero is excluded because every number divides 0, giving it infinitely many divisors. Keeping 0 and 1 out of both classes preserves the rule that every number factors into primes in exactly one way.

Take the prime factorization, add one to each exponent, and multiply the results. For 360 = 2^3 × 3^2 × 5, that is (3 + 1) × (2 + 1) × (1 + 1) = 24 factors, matching the full list. Primes always have exactly 2, and perfect squares always have an odd count because their square root pairs with itself.

Test divisors in order from 1 up to the square root, and each hit writes two factors: the divisor and the quotient. For 360 the square root is about 18.97, so you stop after checking candidates up to 18 and still collect all 24 factors. Checking divisibility gets quicker with the small rules: even numbers divide by 2, digit sums divisible by 3 mean the number is, and so on.

Factors divide the number and are never larger than it; multiples are the number times whole numbers and never smaller. The factors of 12 are 1, 2, 3, 4, 6 and 12, while the multiples of 12 are 12, 24, 36, 48 and onward without end. Factors form a finite list; multiples form an infinite one, and the two meet in problems about shared divisors and shared multiples.

Because multiplying is fast but un-multiplying is not. A computer multiplies two 300-digit primes in an instant, yet recovering those primes from their 600-digit product would take classical computers longer than the age of the universe with the best known methods. Public-key encryption publishes such a product and keeps the factors secret, making the difficulty of factoring the lock that guards internet traffic.

Yes. Any whole number divided by 1 is itself, with no remainder, so 1 appears in every factor list, always as the smallest member paired with the number itself. That is also why 1 is called the universal factor, and why GCF questions never have an answer smaller than 1.

No. Every calculation runs in your browser. Nothing is stored or transmitted.

Every divisor, one glance.

Browse all math calculators