GCF and LCM Calculator - With Prime Factorisation

Greatest common factor and lowest common multiple

Two or more whole numbers, separated by commas or spaces.

Greatest common factor
Lowest common multiple

Prime factorisation

Number Prime factors

Where these two show up

The greatest common factor is the biggest number that divides all of yours; the lowest common multiple is the smallest number they all divide into. One shrinks things down, the other builds them up. Between them they cover simplifying fractions, adding fractions, cutting material without waste, and working out when two repeating events line up again.

Using it in three steps

  1. 1 Type two or more whole numbers, separated however you like.
  2. 2 Read the two answers side by side - the common factor on the left, the common multiple on the right.
  3. 3 Look at the factor table underneath if you need to show your working or check the result by hand.

Reading the prime factors

Every whole number above one is a product of primes in exactly one way, and the table shows that product. Once you have it, both answers follow by inspection: the common factor takes each shared prime to its lowest power, the common multiple takes every prime that appears to its highest. That is why 12 = 2² × 3 and 18 = 2 × 3² give 6 and 36.

A check you can do in your head

For any two numbers, the common factor times the common multiple equals the two numbers multiplied together. With 12 and 18 that is 6 × 36 = 216, and 12 × 18 = 216 as well. If a hand-worked answer fails this test, one of the two is wrong. It only holds for pairs, though - with three or more numbers the identity breaks down.

GCF and LCM - frequently asked questions

Yes, three names for one thing: greatest common factor, highest common factor and greatest common divisor. Which one you meet depends on where you went to school rather than on any difference in the mathematics. The same is true of lowest and least common multiple.
New
Ohm's Law Enter any two of voltage, current, resistance and power, and the other two are worked out for you. Every pairing is supported, not just volts and amps.
Popular Today
Fraction Calculator Add, subtract, multiply or divide two fractions. The answer is simplified and also shown as a mixed number and a decimal, so you can use the form you need.

Other math calculators

Scientific Calculator A scientific calculator with trigonometry, logarithms, powers, roots and factorials. Type an expression or use the keypad; degrees and radians both supported.
Fraction Calculator Add, subtract, multiply or divide two fractions. The answer is simplified and also shown as a mixed number and a decimal, so you can use the form you need.
Standard Deviation Paste a list of numbers and get the standard deviation, variance, mean, median, mode and range at once - both the sample and the population version.
Quadratic Solver Enter a, b and c to solve ax² + bx + c = 0. You get the roots, the discriminant that decides how many there are, and the vertex of the parabola.
Triangle Calculator Solve a right triangle from any two sides, or a general triangle from all three. You get the missing side, all three angles, the area and a drawing to scale.

Other Calculators You May Like

Age Calculator Free age calculator: enter your birth date to see your exact age in years, months, days, hours and minutes, plus the countdown to your next birthday.
Date Difference Calculator Free date difference calculator: find the exact time between two dates in years, months, days and weeks, and see how many working days fall in between.
Day of the Week Calculator Free day of the week calculator: find out which weekday any date falls on - past or future - handy for birthdays, events and historical dates.
Business Days Calculator Free business days calculator: count the working days between two dates, weekends excluded - useful for deadlines, delivery dates and project planning.
Week Number Calculator Free ISO 8601 week number calculator: find which week of the year any date falls in, and see the first and last day of that week at a glance.