Skip to content

Factor Calculator

Every factor and factor pair of a whole number.

Inputs

Example: Factors of 36
9 factors

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Factor input means

Whole number
A whole number from 1 to one trillion. The page lists every factor and factor pair, the prime factorization, whether the number is prime or composite, the sum of its factors and whether it is a perfect square.

Factor formula

Divide n by 1, 2, 3 … up to √n; every divisor that leaves no remainder gives a pair (d, n ÷ d)

A factor of n divides it exactly. Factors come in pairs that multiply to n, and one of each pair is never larger than √n — so testing divisors up to the square root finds them all. A number with exactly two factors, 1 and itself, is prime; more than two makes it composite.

Formula last checked against OpenStax Prealgebra 2e, §2.4 'Find Multiples and Factors' (find all the factors of a counting number; prime and composite numbers) on 2 October 2026. Built and maintained by Suman Kumar · How we check

Factor worked example

Testing 1 through 6 (the square root of 36) finds the pairs 1 × 36, 2 × 18, 3 × 12, 4 × 9 and 6 × 6. That is nine factors — 1, 2, 3, 4, 6, 9, 12, 18, 36 — adding to 91. An odd count of factors always means a perfect square.

More Factor examples

360, the degrees in a circle, has 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 and 360. Only the whole numbers up to √360 ≈ 18 needed testing. All those divisors are why a circle splits so neatly into halves, thirds, quarters, fifths, sixths, eighths, ninths, tenths and twelfths.

97 has 2 factors, 1 and 97, so it is prime. The test only had to try 2 to 9, because √97 is under 10, and none of them divides 97 evenly.

1,000,000 = 2⁶ × 5⁶, so it has (6 + 1) × (6 + 1) = 49 factors. The count is odd because a million is a perfect square, 1,000 × 1,000, and 1,000 pairs with itself.

Where the Factor calculator can give the wrong answer

  • This finds the factors of a whole number. Factoring an algebraic expression such as x² + 5x + 6 is a different problem — the quadratic calculator gives the roots that factoring would.
  • 1 has a single factor and is neither prime nor composite, by definition.
  • Negative factors are left out. Every pair also works with both signs flipped (−4 × −9 = 36), but listing them doubles the table without adding information.
  • Numbers up to one trillion are supported; beyond that, whole numbers stop being exactly representable in the browser.

Spotted a mistake? Tell us

Factor reference table

Highly composite numbers below 1,000: each has more factors than any smaller number
NumberNumber of factorsPrime factorization
1262² × 3
2482³ × 3
3692² × 3²
48102⁴ × 3
60122² × 3 × 5
120162³ × 3 × 5
180182² × 3² × 5
240202⁴ × 3 × 5
360242³ × 3² × 5
720302⁴ × 3² × 5
840322³ × 3 × 5 × 7
Source: OEIS A002182 (highly composite numbers); factor counts from the exponents, (e₁ + 1)(e₂ + 1)…

Factor FAQ

Factors are every whole number that divides n: for 36 there are nine. Prime factors are the primes that multiply to make it: 36 = 2 × 2 × 3 × 3. The prime factorization calculator gives that breakdown.