Factor Calculation: How to Find a Number’s Factors
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A factor calculation finds the whole numbers that divide a given integer exactly, leaving no remainder. Enter a positive whole number to get its positive factors, their count, and their sum; these results help explain divisibility, factor pairs, and prime factorization.
Formula
For a positive integer n, a positive factor is an integer d such that n divided by d is an integer. Equivalently, d divides n when the remainder of n ÷ d is zero. The calculator’s input is n, the positive integer being checked. Its output is the set of positive integers d satisfying that condition.
In symbols: d is a factor of n if and only if n = d × k for some positive integer k. The calculator’s formula field represents the entered integer itself; its factor list is generated by testing the positive divisors of that integer. For example, 12 has factors 1, 2, 3, 4, 6, and 12.
Worked Example
Using the default input, n = 12:
- Start with the positive integers from 1 through 12, since a positive factor cannot exceed 12.
- Test whether division by each candidate leaves a remainder of zero. The exact divisions are 12 ÷ 1 = 12, 12 ÷ 2 = 6, 12 ÷ 3 = 4, 12 ÷ 4 = 3, 12 ÷ 6 = 2, and 12 ÷ 12 = 1.
- Collect the divisors in ascending order: 1, 2, 3, 4, 6, 12.
Therefore, 12 has six positive factors. Their sum is 1 + 2 + 3 + 4 + 6 + 12 = 28. The factor list is the main result; the count and sum are useful ways to describe it.
How Factor Calculation Works
A direct method checks every whole number from 1 to n and keeps the values that divide n evenly. A quicker approach uses paired factors. If d divides n, then n ÷ d is also a factor. For 12, testing 1, 2, and 3 finds the pairs (1, 12), (2, 6), and (3, 4); after that, the pairs would repeat in reverse.
This observation means you only need to test candidates up to the square root of n. If a candidate is larger than the square root, its partner is smaller and would already have been found. When n is a perfect square, the square root pairs with itself: 36 has the pair (6, 6), so 6 is included once, not twice.
What Factors Tell You
Factors describe the exact whole-number ways to divide or arrange a quantity into equal groups. For 12 objects, for instance, possible equal groupings include 1 group of 12, 2 groups of 6, 3 groups of 4, and the reversed arrangements. This makes factor lists useful in elementary arithmetic, simplifying fractions, recognizing divisibility, and solving problems involving rectangular arrays.
- Factor pairs: Two factors whose product equals the original number, such as 3 and 4 for 12.
- Prime factors: Prime numbers that multiply to make the number. For 12, the prime factorization is 2 × 2 × 3, or 2² × 3.
- Number of factors: The count of distinct positive divisors. Twelve has six.
- Proper factors: Positive factors smaller than the number itself. For 12, these are 1, 2, 3, 4, and 6.
These terms are related but not interchangeable. A factor list includes composite factors such as 4 and 6; a prime factorization uses only primes, with repetitions shown by exponents.
Prime Factorization and Factor Counts
Prime factorization provides a compact route to the number of positive factors. Write a positive integer as a product of distinct primes raised to powers: n = p₁ᵃ¹ × p₂ᵃ² × … × pₖᵃᵏ. Every divisor chooses an exponent from zero up to the corresponding exponent in the factorization. Thus, the total number of positive factors is (a₁ + 1)(a₂ + 1)…(aₖ + 1).
For 12 = 2² × 3¹, the count is (2 + 1)(1 + 1) = 6, matching its list. This formula counts positive factors only. If a question asks for integer factors including negatives, each positive factor has a negative counterpart: 12 also has −1, −2, −3, −4, −6, and −12 as integer divisors.
Common Mistakes and Limits
- Confusing factors with multiples: Factors divide the chosen number; multiples are produced by multiplying it by integers. For 12, 3 is a factor, while 15 is a multiple.
- Accepting a remainder: A decimal quotient does not make a whole-number factor. For example, 5 is not a factor of 12 because 12 ÷ 5 is not an integer.
- Forgetting 1 and the number: Every positive integer greater than 1 has both 1 and itself as positive factors. The number 1 has just one positive factor: 1.
- Counting a square-root pair twice: A perfect-square root appears once in the factor list.
- Mixing positive and negative divisors: Many basic factor questions mean positive factors. Check the wording if negative integer divisors are requested.
This method is for integers, not arbitrary decimals or fractions. A decimal can be tested for divisibility in broader mathematical settings, but the ordinary whole-number factor list applies to integers. Very large integers can also make trial division slow; prime-factorization algorithms are used for more demanding computations.
Frequently Asked Questions
How do you calculate the factors of a number?
Test positive whole numbers for exact division, keeping each divisor with zero remainder. You can stop at the square root and include the matching factor for every divisor found.
Is 1 a factor of every number?
Yes. Dividing any integer by 1 gives that integer with no remainder, so 1 is a positive factor of every positive integer.
Is every number a factor of itself?
Every positive integer is a factor of itself because dividing it by itself gives 1. The number 0 is an exception to the usual positive-integer factor calculation and is not supported by this calculator.
What is the difference between a factor and a prime factor?
A factor may be prime or composite. A prime factor must itself be prime; for example, 4 is a factor of 12 but not a prime factor.
How many factors does a prime number have?
A prime number has exactly two positive factors: 1 and itself. The number 1 is not prime because it has only one positive factor.
Related
Formula used
in n | Positive integer | - | 12 | 1 out factors | Positive factors | - | sum(1) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.