Factor Calculator

The Factor Calculator lists all positive integer divisors of a number — the complete factor list — plus the prime factorization in compact exponent form. Used in number-theory homework, simplification of fractions, finding the greatest common factor of related numbers, and curiosity ("what are the factors of 360?"). Trial-divides up to √N (the only divisors past that are pairs with the ones below); fast enough for inputs up to about 10^12.

Built by Bob Article by Lace QA by Ben Shipped

Positive integers up to 1012.

24 factors
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
Prime factorization: 23 × 32 × 5
Properties: even

How to use

  1. 1

    Enter a positive integer. The calculator accepts up to 10^12 (one trillion) — beyond that, trial division becomes slow.

  2. 2

    Read the complete factor list — everything that divides evenly into N, sorted smallest to largest. A prime number has exactly 2 factors (1 and itself); a perfect square has an odd number of factors.

  3. 3

    Read the prime factorization below — the unique decomposition into prime powers. Every positive integer has exactly one prime factorization (the Fundamental Theorem of Arithmetic).

  4. 4

    The properties line shows whether N is prime, a perfect square, even, or odd.

Frequently asked questions

Ratings & Reviews

Rate this tool

Sign in to rate and review this tool.

Loading reviews…

What are factors?

A factor of a number N is any positive integer that divides N with no remainder. 12 has six factors: 1, 2, 3, 4, 6, and 12. Each one divides 12 cleanly — 12 ÷ 3 = 4 with nothing left over. Factors are sometimes called divisors; the words mean the same thing.

Every positive integer has at least two factors — 1 and itself. Prime numbers have exactly those two, no others. Composite numbers have more. The number of factors a number has tells you something about its structure: prime numbers have 2, the squares of primes have 3 (1, p, p²), and highly composite numbers like 360 or 5040 can have dozens.

Factors come in pairs that multiply to N. For 36: (1, 36), (2, 18), (3, 12), (4, 9), (6, 6). Notice the last pair is the same number twice — that happens when N is a perfect square. The pairing is why you only have to test divisors up to √N when finding factors by hand. Anything past the square root is just the larger half of a pair you've already discovered.

How to use the Factor Calculator

The Factor Calculator takes a positive integer and returns three pieces of information: every factor in order, the prime factorization in compact exponent form, and a properties line (prime, perfect square, even, odd). The result updates live as you type — no button to press, nothing sent to a server.

  1. Enter a positive integer. The tool accepts inputs up to about 1012 (one trillion).
  2. Read the complete factor list, smallest to largest.
  3. Read the prime factorization beneath it (for example, 360 = 2³ × 3² × 5).
  4. Check the properties line — flags for prime, perfect square, even, and odd.

If you're doing fraction arithmetic, the prime factorization is the quickest path to a common denominator. If you're working through number-theory exercises, the factor count itself is often the answer. If you're just curious — "how many ways can I arrange 60 chairs in equal rows?" — the factor list is the answer to that, too.

Trial division — how the calculator finds factors

The Factor Calculator uses trial division, the same method you'd use by hand but faster. Walk through every integer from 1 to √N. If it divides N exactly, you've found a factor — and its pair (N divided by it) is also a factor. Collect both, move on.

You only need to check divisors up to √N. Every factor above √N is automatically paired with one below.

For N = 100, √N = 10. Test 1 through 10. The divisors found are 1, 2, 4, 5, 10. Their pairs (100, 50, 25, 20, 10) fill in the rest. Sort and deduplicate: 1, 2, 4, 5, 10, 20, 25, 50, 100. Nine factors total — 100 is a perfect square, so the count is odd.

For a 12-digit input, √N is around a million. Testing a million candidates with a tight loop takes well under a second in JavaScript. Beyond 1012, trial division starts to feel slow in the browser, which is why that's the cap.

Worked example: factors of 36

36 is the kind of number that shows up in homework constantly because it has nine factors — a generous variety without being unwieldy. Walk through it:

  1. √36 = 6. Test divisors 1 through 6.
  2. 1 divides 36 → factor pair (1, 36).
  3. 2 divides 36 (36 ÷ 2 = 18) → factor pair (2, 18).
  4. 3 divides 36 (36 ÷ 3 = 12) → factor pair (3, 12).
  5. 4 divides 36 (36 ÷ 4 = 9) → factor pair (4, 9).
  6. 5 does not divide 36 (36 ÷ 5 = 7.2) → skip.
  7. 6 divides 36 (36 ÷ 6 = 6) → factor pair (6, 6). Same number both sides — 36 is a perfect square.

Collected and sorted: 1, 2, 3, 4, 6, 9, 12, 18, 36. Nine factors. The factor count is odd because of the (6, 6) self-pair — perfect squares always have an odd factor count for the same reason.

The prime factorization of 36 is 2² × 3². Two 2s and two 3s, no other primes. Notice the factor count (9) equals (2 + 1) × (2 + 1) — that's the number-of-divisors formula τ(N) = ∏(eᵢ + 1), where the eᵢ are the exponents in the prime factorization. It works for every positive integer. For 360 = 2³ × 3² × 5, the factor count is (3+1)(2+1)(1+1) = 24.

Factors of common numbers

Some numbers come up so often in fractions, geometry, and time arithmetic that knowing their factor lists by heart pays off. 60 shows up in time (60 seconds, 60 minutes) precisely because the Babylonians picked it for its factor richness — 12 factors total. 360 shows up in degrees for the same reason — 24 factors.

NFactorsCountPrime factorization
121, 2, 3, 4, 6, 1262² × 3
241, 2, 3, 4, 6, 8, 12, 2482³ × 3
361, 2, 3, 4, 6, 9, 12, 18, 3692² × 3²
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60122² × 3 × 5
1001, 2, 4, 5, 10, 20, 25, 50, 10092² × 5²
1441, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 36, 48, 72, 144152⁴ × 3²
3601, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360242³ × 3² × 5

Notice that 36, 100, and 144 all have odd factor counts. They're the perfect squares in the table (6², 10², 12²). Every perfect square has this property, and only perfect squares do.

Prime factorization — the unique decomposition

Every positive integer above 1 can be written as a product of prime numbers raised to powers, and that decomposition is unique up to ordering. This is the Fundamental Theorem of Arithmetic, proved by Euclid around 300 BC. Saying it formally: for any N > 1, there are unique primes p₁ < p₂ < … < p_k and positive exponents e₁, e₂, … e_k such that N = p₁e₁ × p₂e₂ × … × p_ke_k.

To find the prime factorization by hand, divide by the smallest prime that fits, count how many times it fits, move on to the next prime. For 360:

  • 360 ÷ 2 = 180. 180 ÷ 2 = 90. 90 ÷ 2 = 45. Three divisions by 2. So 2³.
  • 45 ÷ 3 = 15. 15 ÷ 3 = 5. Two divisions by 3. So 3².
  • 5 is prime. Done. So 5¹.
  • 360 = 2³ × 3² × 5

The Factor Calculator does this automatically and displays the result in standard exponent notation. The relationship between the prime factorization and the full factor list is direct: every factor of N is a product 2a × 3b × 5c where 0 ≤ a ≤ 3, 0 ≤ b ≤ 2, 0 ≤ c ≤ 1 — every combination of the exponents, giving 4 × 3 × 2 = 24 factors total.

Why factorization matters

If you're stuck on a factorization problem, it's usually because the practical use feels abstract. Here's why it shows up:

  • Simplifying fractions. 48/36 simplifies to 4/3 by dividing both sides by their GCF (12). The GCF comes from comparing prime factorizations: 48 = 2⁴ × 3, 36 = 2² × 3², so GCF = 2² × 3 = 12. The Greatest Common Factor Calculator does this directly.
  • Finding a common denominator. Adding 1/12 + 1/18 needs LCM(12, 18) = 36. LCM comes from taking the maximum exponent of each prime — 12 = 2² × 3, 18 = 2 × 3², so LCM = 2² × 3² = 36.
  • Cryptography. RSA security relies on the fact that factoring large numbers is hard. For 200-digit inputs, even the fastest known algorithms take years on dedicated hardware.
  • Music and rhythm. The richness of 60 and 360 as factor sets is why time and angle measurement use them. Easy to divide into halves, thirds, quarters, fifths, sixths, tenths, twelfths.
  • Scheduling. If event A repeats every 12 days and event B every 18 days, the next time they coincide is in LCM(12, 18) = 36 days. Factor analysis answers this.

Related tools

The Factor Calculator is the workhorse for the rest of the number-theory family:

Frequently asked questions

What's the difference between a factor and a prime factor?

A factor is any positive integer that divides N. A prime factor is a factor that's also prime. 12 has factors 1, 2, 3, 4, 6, 12; its prime factors are 2 and 3. The prime factorization (12 = 2² × 3) lists the prime factors along with how many times each one divides N.

Why does the calculator say 1 is a factor of every number?

Because it is. 1 divides every positive integer with no remainder (N ÷ 1 = N). By the standard definition of factor, 1 is always included. So is N itself. The factor list is bracketed by these two — everything else is between them.

Is 1 a prime factor?

No. 1 is a factor of every number, but 1 is not prime. Prime factors must be prime numbers (2 or larger, with no divisors other than 1 and itself). The prime factorization of 12 is 2² × 3, not 1 × 2² × 3 — including 1 would let you write the same number infinitely many ways and break the uniqueness of the factorization.

Why do some numbers have so many more factors than others?

Because of how their prime factorizations look. A number with several small primes raised to moderate powers (like 360 = 2³ × 3² × 5) has many factors. A number that's a large prime (like 997) has only 2. The number-of-divisors formula τ(N) = ∏(eᵢ + 1) lets you compute the factor count from the prime factorization without listing the factors. Highly composite numbers (1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, …) are numbers with more factors than any smaller positive integer.

How does the calculator handle very large numbers?

It caps at about 1012 (one trillion). Below that, trial division up to √N takes under a second in the browser. Above that, you'd notice the lag, and JavaScript's 53-bit integer precision starts to matter. For genuinely huge inputs (say, the 600-digit numbers used in RSA), no browser-side approach works — specialized algorithms (Pollard rho, quadratic sieve, GNFS) handle those, but they're heavy enough to require dedicated hardware.

What's a perfect square and why does the calculator flag it?

A perfect square is a number that equals some integer multiplied by itself — 1, 4, 9, 16, 25, 36, 49, 64, … Perfect squares always have an odd number of factors, because one factor pair is the square root with itself. The flag is useful in fraction simplification (perfect squares always reduce to integers under a square root) and number-theory exercises.

Can negative numbers have factors?

Yes, but conventionally factor lists are written using positive integers only. -12 has the same factor list as 12 (1, 2, 3, 4, 6, 12), with the understanding that each factor could be paired with either +N/factor or -N/factor. The Factor Calculator takes the absolute value of negative inputs to keep the output clean.

Why is prime factorization unique?

This is the Fundamental Theorem of Arithmetic, proved by Euclid around 300 BC. The short version: suppose a number N had two different prime factorizations. Cancel any primes they share. What's left would be two different products of distinct primes that equal each other — and you can prove via Euclid's Lemma (if a prime divides a product, it divides one of the factors) that this is impossible. The uniqueness is what makes factorization useful as a tool. If 12 could be written as 2² × 3 or as something else entirely, fraction arithmetic would be a mess.