Home Math Common Factor Calculator

Common Factor Calculator

The greatest common factor and least common multiple of any list, with the factor list to check.

Advertisement

How it works

Enter whole numbers separated by commas. The greatest common factor is the largest number dividing them all, found by the Euclidean algorithm; the least common multiple is the smallest number they all divide. The factors of the first number are listed in full, so you can see the answer instead of trusting it.

Advertisement

Formula

GCD by the Euclidean algorithm: GCD(a, b) = GCD(b, a mod b) until the remainder is 0.
LCM(a, b) = a x b / GCD(a, b), extended across the list.

Example

Example in plain words. 48 and 180.

Greatest common factor: 12. Least common multiple: 720.

Factors of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48, and 12 is indeed the largest that 180 shares.

Frequently asked questions

What are these for?

Fractions: reducing them needs the GCD, adding them needs the LCM. Both also appear in gear ratios, tiling patterns and scheduling cycles.

Why does the factor list sometimes disappear?

For numbers above one million the page shows only the GCD and LCM, because printing every factor would bury the answer.

Advertisement

Related calculators

Percentage Calculator

Find a percent of a number, what percent one number is of another, and percent change, all at once.

Fraction Calculator

Add, subtract, multiply and divide fractions, with the answer simplified.

Scientific Calculator

Online scientific calculator with trig, logs, powers, roots, factorial and degree or radian mode.

Quadratic Formula Calculator

Solve ax² + bx + c = 0, with the discriminant and the vertex.