Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

Factor Calculator

Find all positive and negative divisors, factor pairs and prime factors of a nonzero integer.

Formula reference

|n| = ∏ pᵢ^eᵢ

All formulas
  • |n| = ∏ pᵢ^eᵢ
  • d(|n|) = ∏(eᵢ + 1); d_signed(n) = 2d(|n|)
  • d ∣ n ⇔ n = d × k, k ∈ ℤ; n ≠ 0
n =

Your result

Your answer and calculation steps appear here.

Inputs and calculations stay in this browser tab. Copy or export your report before closing.

Factor Calculator — Divisors and factor pairs

Enter one nonzero integer, positive or negative, with absolute value at most 999999999999.

Divisors and factor pairs

An integer d is a divisor of n when n = d×k for some integer k. For 12, the positive divisors are 1,2,3,4,6,12, and the positive factor pairs are 1×12,2×6,3×4. The tool separately lists positive divisors, negative divisors and signed divisor counts, avoiding an ambiguous total.

Prime factorization example

120 = 2³×3×5. Every positive divisor chooses a power of 2 from 0 to 3, a power of 3 from 0 to 1 and a power of 5 from 0 to 1. There are (3+1)(1+1)(1+1) = 16 positive divisors, and 32 nonzero signed divisors. The prime factorization is checked by multiplying its factors back to the absolute input.

Negative factors and signs

Both d and −d divide any nonzero integer when d does. For positive inputs the displayed factor pairs use positive factors; their double-negative equivalents are omitted. For −12, the signed pairs include −1×12 and 1×−12, −2×6 and 2×−6, and −3×4 and 3×−4. Swapping the order of a pair is not counted again.

One, primes, composites and zero

1 and −1 are units, neither prime nor composite. A prime is a positive integer greater than 1 with exactly two positive divisors. A negative integer is not classified as prime; its positive magnitude can have a prime factorization. Zero has infinitely many nonzero integer divisors, so this finite-list tool rejects it rather than returning a misleading list.

How every divisor is generated

The engine uses exact trial division, testing 2 and then odd candidates while the candidate’s square is no greater than the remaining cofactor. A leftover value greater than 1 is prime. It constructs all divisors from the proven prime powers, sorts them exactly, and matches each divisor with its complementary factor. A square’s central pair appears once. It does not use a probable-prime label.

Input limits, uses and reports

The supported absolute value is 1 through 999999999999. Only ungrouped integers are accepted; no decimals, fractions, expressions or scientific notation. This bound keeps exact local trial division practical. Use factors for divisibility, grouping and fraction simplification; match any physical units before interpretation. Copy, CSV and PDF include both divisor lists, counts, factor pairs and prime factors.

Use Greatest Common Factor Calculator to find shared divisors of several numbers, Least Common Multiple Calculator for common multiples, and Fraction Calculator for fraction simplification.

OpenStax explains factors, multiples and prime numbers. ISO 80000-2:2019 provides mathematical-notation context; neither reference certifies this calculator.

Common questions

Is 1 a prime?

No. 1 and −1 are units and are neither prime nor composite.

Why is zero rejected?

Zero has infinitely many nonzero integer divisors, so there is no finite complete list to display.

Are negative divisors included?

Yes. Positive and negative divisor lists are separate, with separate counts; factor-pair sign conventions are explained above.

Does this factor algebraic expressions?

No. It factors a single integer. Use the Quadratic Formula Calculator for a second-degree equation.

Explore related tools