Skip to content · 跳到主要内容

Common Factor Calculator

List the positive common factors and greatest common factor of several integers

Common factors
--
--
Greatest common factor
--
Input integers

Common factors shared by positive integers

Enter two or more positive integers. A common factor divides every input value without a remainder. The calculator lists the shared positive factors and their greatest common factor.

common factors(a, b, …) = factors(gcd(a, b, …))

Worked example

Take 12 and 18. The factors of 12 are 1, 2, 3, 4, 6 and 12; the factors of 18 are 1, 2, 3, 6, 9 and 18. The shared list is 1, 2, 3 and 6, and the greatest common factor is 6. Adding a third input, say 30, narrows the shared list to 1, 2, 3 and 6 still divides both 12 and 18 but not 30 — the page recomputes the whole shared set as you type.

What the list is good for

Common factors answer "what divides all of these evenly?" In practice that means simplifying fractions (12/18 reduces by 6 to 2/3), cutting a board into equal lengths with nothing left over, and splitting a collection into identical groups. The largest shared factor always gives the fewest groups; a smaller one gives more groups at a smaller size.

Two inputs versus many

With exactly two numbers, the shared factors are just the divisors of their greatest common factor. With three or more, each added number can only shrink the list, never grow it — the result set is the intersection of every individual factor list. Entering 1 alongside anything always yields exactly one shared factor.

Frequently Asked Questions

Can I enter more than two integers?

Yes. The list accepts two to ten positive integers separated by commas, spaces or semicolons.

Are negative common factors listed?

No. The result lists positive factors only.

How large can the integers be?

For a responsive complete divisor list, each value is limited to one trillion.

Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision