Skip to content
CalculatorBuddy

Factor Calculator

Find all factors, factor pairs, and the prime factorization of a positive integer, with a factor tree.

Maintained by CalculatorBuddy TeamEditorial methodology

Add as a preferred source on Google (opens in a new tab)

ExampleSample values — edit any field to see your result.

Enter a positive integer up to 10,000,000,000,000.

Results update as you type.

Result

Composite

1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120

Estimated result

Factors
1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120
Factor pairs
(1, 120) (2, 60) (3, 40) (4, 30) (5, 24) (6, 20) (8, 15) (10, 12)
Prime factorization
120 = 2 × 2 × 2 × 3 × 5

Saved calculations stay only in this browser. Share copies a link containing your entered values.

Compare scenarios

Keep a baseline, then change an assumption to see its effect side by side.

Factor tree

Factor tree
120
| \
60 2
| \
30 2
| \
15 2
| \
5 3

Enter a positive integer to list its factors and factor pairs, see the prime factorization, and walk a factor tree. For a prime, the result simply says so and shows the pair (1, n).

Factor-pairs rectangle activity

This original check-and-explain activity turns each factor pair into the side lengths of a whole-number rectangle. It is designed for learners to reason on paper or grid paper first and use the calculator afterward to check whether a pair was missed.

  1. For each number below, predict whether it is prime, composite, or a perfect square.
  2. Draw or list every different rectangle with whole-number side lengths and the stated area. Treat a 3-by-16 rectangle and a 16-by-3 rectangle as the same rectangle.
  3. Explain how you know the list is complete. A useful checkpoint is √n.
  4. Enter the number in the calculator and compare its factor-pair and prime factorization results with your work.
AreaFactor-pair answer keyClassificationPrime factorization
241 × 24, 2 × 12, 3 × 8, 4 × 6Composite2 × 2 × 2 × 3
321 × 32, 2 × 16, 4 × 8Composite2 × 2 × 2 × 2 × 2
361 × 36, 2 × 18, 3 × 12, 4 × 9, 6 × 6Composite; perfect square2 × 2 × 3 × 3
371 × 37Prime37
481 × 48, 2 × 24, 3 × 16, 4 × 12, 6 × 8Composite2 × 2 × 2 × 2 × 3

The Common Core 4.OA.B.4 standard includes finding all factor pairs for whole numbers from 1 through 100 and deciding whether a number is prime or composite. Illustrative Mathematics' factor-pairs materials also connect factor pairs with rectangles built from whole-number side lengths. These references support the mathematical context; this worksheet and answer key are CalculatorBuddy's own examples and have not been classroom tested.

Teacher or study prompts

  • Which number has the most different rectangles? Does that necessarily mean it has the largest value?
  • Why does 36 include 6 × 6 only once?
  • Which result proves immediately that 37 is prime?
  • Compare the factor pairs with the prime factorization. What different question does each representation answer?
  • Extension: choose a number from 1 to 100 that has exactly three different factor pairs, then verify it with the calculator.

Examples

Default 120

Factors are 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120. Pairs run (1, 120) through (10, 12). Prime factorization is 2 × 2 × 2 × 3 × 5.

Page example 20

Factors 1, 2, 4, 5, 10, 20, pairs (1, 20) (2, 10) (4, 5), and 20 = 2 × 2 × 5.

Prime 7

7 is a prime number. Its only factor pair is (1, 7).

Formula

An integer a is a factor of n when n ÷ a has remainder 0. The positive factors come in pairs (a, n/a) found by testing a = 1, 2, … up to √n.

Prime factorization. Divide out the smallest prime repeatedly:

120 = 2 × 2 × 2 × 3 × 5

Factor tree (same splits, quotient on the left, prime on the right):

120
| \
60    2
| \
30    2
| \
15    2
| \
5     3

1 is neither prime nor composite; its only pair is (1, 1). A prime has exactly two positive factors, 1 and itself.

For a systematic search, stop after the divisor passes √n. For example, √48 is about 6.93, so testing 1 through 6 finds every pair: 1 × 48, 2 × 24, 3 × 16, 4 × 12, and 6 × 8. The next whole number, 7, is already beyond √48; continuing would only find the same pairs in reverse.

Simplifying a fraction a/b uses GCF(a, b), not the full factor list. Open the GCF calculator when you want the greatest common factor of several numbers, or the LCM calculator for the least common multiple.

One number, or several numbers?

This calculator lists factors of one integer. To find a divisor shared by several numbers, use the GCF Calculator. To find the first positive multiple they share, use the LCM Calculator. The distinction is useful when moving from factor pairs to grouping or repeating-schedule problems.

Frequently asked questions

What is a factor?
A factor of an integer n is an integer that divides n with no remainder. For 30, the positive factors are 1, 2, 3, 5, 6, 10, 15, and 30, because each of those multiplies with another integer to make 30 (for example 6 × 5 = 30).
What is prime factorization?
Prime factorization writes a number as a product of primes. 120 is 2 × 2 × 2 × 3 × 5. Every integer greater than 1 has a unique prime factorization (the fundamental theorem of arithmetic), aside from the order of the primes.
How do you build a factor tree?
Split the number into a prime factor and the remaining quotient, then repeat on the quotient until both sides are prime. For 120 the tree peels off 2, 2, 2, then 3, leaving 5: 120 → 60 × 2 → 30 × 2 → 15 × 2 → 5 × 3.
What is the difference between factors and the GCF?
This calculator lists every factor of one integer. The GCF (greatest common factor) calculator finds the largest factor shared by two or more integers. Use LCM when you want the smallest shared multiple instead.
How large a number can I enter?
Positive integers up to 10,000,000,000,000 (10 trillion). Zero, negatives, and non-whole numbers are rejected. There is no known fast algorithm for prime-factorizing arbitrarily large integers, which is why the tool caps the input.
How can I find every factor pair without missing one?
Test whole-number divisors from 1 through the square root of the number. Each exact division gives one pair: the divisor and its quotient. Once the divisor is greater than the square root, every later pair repeats a pair already found in reverse order.
Why does a square number have a repeated factor pair?
A perfect square has one pair whose two factors are equal. For 36, that pair is 6 × 6. Count it once, just as a 6-by-6 rectangle is the same rectangle after turning it.

Related calculators