Home · Everyday · Arithmetic · Common Factor Calculator

Common Factor Calculator

The common factors of two numbers — exactly the divisors of their greatest common divisor.

Your figures

Example result — edit the figures to make it yours

1, 2, 3, 4, 6, 12

Common factors of 48 and 180

The common factors of two numbers are exactly the divisors of their greatest common divisor. The headline figure is how many there are.

Count6
Greatest common factor12

What this calculator does

The common factors of two numbers — exactly the divisors of their greatest common divisor. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Common factors of a and b = divisors of gcd(a, b)

All inputs are whole numbers; the tools use exact integer arithmetic.

Factorisations are found by trial division up to the square root, which is exact for the sizes accepted here.

The Euclidean algorithm replaces the larger number by the remainder until it reaches zero.

Worked example

With the example inputs this page opens with (first integer 48, second integer 180), the result is 1, 2, 3, 4, 6, 12 — common factors of 48 and 180. The common factors of two numbers are exactly the divisors of their greatest common divisor. The headline figure is how many there are.

Quick reference

Quick reference — varying first integer
First integerCommon factors of 48 and 180
241, 2, 3, 4, 6, 12
38.41, 2
481, 2, 3, 4, 6, 12
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60
721, 2, 3, 4, 6, 9, 12, 18, 36
961, 2, 3, 4, 6, 12

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Common Factor Calculator work?

The common factors of two numbers — exactly the divisors of their greatest common divisor. A · b → Common factors. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Common Factor Calculator need?

A · b → Common factors. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Common Factor Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.