In basic mathematics and algebra, a factor is any whole number (integer) that divides into another number evenly, leaving absolutely no remainder. For example, because the number 12 can be divided by 3 exactly 4 times, both 3 and 4 are factors of 12. Factors are crucial in grouping physical objects, simplifying fraction equations, solving quadratic trinomials, and understanding basic cryptographical codes.
Factors always appear in pairs. A factor pair consists of two integers that, when multiplied together, produce the target number. For example, the factor pairs of 12 are (1, 12), (2, 6), and (3, 4). If a number is negative, one factor in each pair must be negative (e.g. -2 × 6 = -12).
If a positive integer has exactly two factors—namely, 1 and itself—it is classified as a prime number. If it has more than two factors, it is a composite number. To see only the prime building blocks of a number, use our dividing numbers into prime components. To find the largest shared factor between multiple numbers, check out our greatest common divisor solver.
To find all factors of a number, you start testing division from 1 and move upwards. For example, to factor 20: 20 ÷ 1 = 20 (factors 1, 20); 20 ÷ 2 = 10 (factors 2, 10); 20 ÷ 3 leaves a remainder; 20 ÷ 4 = 5 (factors 4, 5).
Once you reach the square root of the number (which is around 4.47 for 20), you can stop testing because any larger factors will correspond to pairs you have already discovered. Our online tool handles this search instantly and lists the factors in order.
You can also use quick divisibility rules to speed up the process. For example, a number is divisible by 2 if its last digit is even, divisible by 3 if the sum of its digits is divisible by 3, and divisible by 5 if it ends in 0 or 5. These rules make factoring by hand much easier when verifying small datasets.
Suppose a teacher wants to arrange 30 student chairs in a classroom in equal rows.
By inputting 30 into the factor calculator, we find the factors are 1, 2, 3, 5, 6, 10, 15, and 30. The factor pairs are (1, 30), (2, 15), (3, 10), and (5, 6). The teacher can set up 2 rows of 15, 3 rows of 10, or 5 rows of 6 chairs. This simple example shows how factor pairs provide immediate solutions for layout planning.