Factor Calculation Steps for Any Number
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.
Factor calculation means finding the numbers that divide a given number exactly, with no remainder. Enter a whole number to get its positive factors, their count, and their sum; the steps below explain how to check the result and how prime factorization helps.
Formula
This calculator’s factor list is based on divisibility: a positive integer d is a factor of a positive integer n when n ÷ d is a whole number. Equivalently, n = d × q for some whole-number quotient q. The input n has no unit; the output is the set of positive integers satisfying that test. The calculator specification uses a numeric output field, so the formula shown in the block returns the sum of the factors rather than displaying the list itself. The individual factors can be found by the procedure below.
For the example input, the factors are 1, 2, 3, 4, 6, 9, 12, 18, and 36. Their sum is 91. The factor count is 9. In general, if prime factorization gives n = p₁a₁ × p₂a₂ × … × pₖaₖ, the number of positive factors is (a₁ + 1)(a₂ + 1)…(aₖ + 1). For 36 = 2² × 3², the count is (2 + 1)(2 + 1) = 9.
Worked Example
The block’s default input is 36. To calculate its factors, test positive whole numbers up to the square root of 36, which is 6. Whenever a trial number divides evenly, record it and its matching quotient:
- 1 divides 36; record the pair 1 and 36.
- 2 divides 36; record 2 and 18.
- 3 divides 36; record 3 and 12.
- 4 divides 36; record 4 and 9.
- 5 does not divide 36 evenly.
- 6 divides 36; its matching quotient is also 6, so record it only once.
Put the recorded values in ascending order: 1, 2, 3, 4, 6, 9, 12, 18, 36. The calculator formula is sum(1), meaning the sum of the positive factors represented by the result. Adding them gives 1 + 2 + 3 + 4 + 6 + 9 + 12 + 18 + 36 = 91. This is the output for the default value.
How to Calculate Factors by Hand
A direct method is to test divisors from 1 through the square root of the number. Each successful division gives a pair: the trial divisor and its quotient. This reduces the work because factors occur in pairs. For example, with 24, testing 1, 2, 3, and 4 finds the pairs (1, 24), (2, 12), (3, 8), and (4, 6). Together they produce all eight positive factors.
Use these steps:
- Start with a positive whole number.
- Find its square root, then test whole numbers from 1 up to that point.
- Divide the number by each candidate. If the remainder is zero, keep both the candidate and quotient.
- Combine the pairs and arrange the values in ascending order.
- If the number is a perfect square, include its square root just once because it pairs with itself.
Prime Factorization and Factor Counts
Prime factorization expresses a whole number as a product of primes. For 60, the prime factorization is 2² × 3 × 5. Any positive factor of 60 can be made by choosing an exponent for each prime: 0, 1, or 2 for 2, and 0 or 1 for both 3 and 5. Thus there are 3 × 2 × 2 = 12 positive factors.
This approach is especially useful for large numbers or questions about how many factors a number has. It also provides a systematic way to generate them: choose each allowed prime exponent, multiply the selected prime powers, and collect the distinct products. The factor-count formula counts the result without listing every factor.
What the Result Means
“Factors” usually means positive integer factors in elementary arithmetic. For 12, that list is 1, 2, 3, 4, 6, and 12. Negative integers also divide 12 exactly, so a broader definition includes −1, −2, −3, −4, −6, and −12. Many calculators and school exercises omit negative factors unless they are specifically requested.
A factor is not the same as a multiple. A factor divides the original number; a multiple is the original number multiplied by an integer. For instance, 3 is a factor of 12, while 24 is a multiple of 12. Also distinguish the factor list from the sum of factors: the list for 12 contains six values, and their sum is 28.
Common Errors and Limits
- Stopping too early: Test through the square root, not just through half the number. Every factor above the square root has a paired factor below it.
- Repeating a square root: If the input is a perfect square, its square root appears once, not twice.
- Using non-integers: Factors in this context are whole-number divisors. Decimal quotients do not establish that a number is a factor.
- Confusing factors with prime factors: A prime factorization contains prime building blocks; the complete factor list also includes 1, the number itself, and products of those primes.
This method applies to positive integers. Zero is a special case: every nonzero integer divides zero, so it has no finite list of factors. Negative inputs can be handled by taking the factors of their absolute value and deciding whether to include negative divisors. Fractions and decimals do not have a standard finite factor list under the usual whole-number definition.
Frequently Asked Questions
How do I find the factors of a number?
Test whole numbers from 1 through the square root. For each exact divisor, record it and the quotient. Sort all recorded values to get the positive factors.
Why do I only need to check up to the square root?
Factors come in pairs whose product is the original number. If both members of a pair were greater than the square root, their product would be greater than the number. Therefore at least one member is at or below the square root.
How many factors does 36 have?
36 = 2² × 3², so its positive factor count is (2 + 1)(2 + 1) = 9. The factors are 1, 2, 3, 4, 6, 9, 12, 18, and 36.
Is 1 a factor of every whole number?
Yes. Dividing any whole number by 1 gives that number as a whole-number quotient. For positive integers, 1 is also the only positive factor of 1.
Are prime factors and factors the same?
No. Prime factors are the prime numbers in a number’s prime factorization. The full factor list includes all positive divisors, including composite divisors and 1.
Related
Formula used
in n | Whole number | - | 36 | 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.