Factor Calculator

Factors of 126

The factors of 126 are 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 63, and 126. In total, 126 has 12 factors. Its prime factorization is 2 × 3² × 7, and the sum of all its factors is 312.

All factors of 126

Here are all 12 factors of 126, listed from smallest to largest.

1236791418214263126

Factor pairs of 126

These 6 pairs of whole numbers each multiply to give 126.

1 × 126 = 126
2 × 63 = 126
3 × 42 = 126
6 × 21 = 126
7 × 18 = 126
9 × 14 = 126

Prime factorization of 126

Dividing 126 by the smallest prime at each step gives its prime factorization:

126 ÷ 2 = 63
63 ÷ 3 = 21
21 ÷ 3 = 7
7 ÷ 7 = 1
Result: 126 = 2 × 3 × 3 × 7 = 2 × 3² × 7

The distinct prime factors of 126 are 2, 3, 7. To factorize any other number, use the prime factorization calculator.

Factor tree of 126

A factor tree shows the same prime factorization visually. Each composite branch splits until every endpoint is a prime number.

Factor tree of 12612626332137
Prime factors are shown in solid indigo. Composite numbers split into their smallest prime and the quotient.

Properties of 126

Number of factors12
Sum of factors312
Sum of proper factors186
Prime factorization2 × 3² × 7
Prime or composite?Composite
Even or odd?Even
Perfect square?No
Perfect cube?No
ClassificationAbundant

What makes 126 interesting

  • 126 is a composite number, meaning it has more than two factors. It can be written as a product of smaller whole numbers in 6 different ways.
  • 126 is an abundant number: its proper factors sum to 186, which is 60 more than 126 itself.
  • 126 has 3 distinct prime factors (2, 3, 7), which is why it has so many divisors.

How to find the factors of 126 yourself

Divide 126 by each whole number starting from 1. Whenever the division leaves no remainder, both the divisor and the quotient are factors. You only need to test up to √12611.22, because every factor above that pairs with one below it.

126 ÷ 1 = 126
126 ÷ 2 = 63
126 ÷ 3 = 42
126 ÷ 6 = 21
126 ÷ 7 = 18
126 ÷ 9 = 14

Reading both columns gives every factor: 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 63, 126. The factor calculator does this automatically for any number.

Frequently asked questions about 126

What are the factors of 126?

The factors of 126 are 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 63, and 126. That is 12 factors in total, counting both 1 and 126.

Is 126 a prime number?

No, 126 is not prime — it is a composite number with 12 factors. A prime number has exactly two factors, but 126 is also divisible by 2.

What is the prime factorization of 126?

The prime factorization of 126 is 2 × 3² × 7. Written out in full: 2 × 3 × 3 × 7 = 126. Its distinct prime factors are 2, 3, 7.

What two numbers multiply to give 126?

There are 6 pairs of whole numbers that multiply to 126: 1 × 126, 2 × 63, 3 × 42, 6 × 21, 7 × 18, 9 × 14.

What is the sum of the factors of 126?

Adding all the factors of 126 together gives 312. Excluding 126 itself, the proper factors sum to 186.

Is 126 a perfect square?

No, 126 is not a perfect square. There is no whole number that multiplies by itself to give 126. The nearest perfect squares are 121 and 144.

What is the largest factor of 126 other than itself?

The largest factor of 126 apart from 126 itself is 63, since 126 ÷ 63 = 2.

How many factors does 126 have?

126 has 12 factors: 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 63, and 126. You can verify this from the prime factorization 2 × 3² × 7: add 1 to each exponent and multiply, giving 2 × 3 × 2 = 12.

Explore more

Try another number in the factor calculator, break 126 down further with the prime factorization calculator, or compare 126 with another number using the GCF calculator and LCM calculator. For divisor counts and sums, see the divisor calculator.