Free Β· No sign-up Β· Full working shown

LCM and GCF Calculator – With Step by Step Working

Enter two or more numbers and get the least common multiple and the greatest common factor instantly, along with the working your teacher wants to see: prime factorisation with exponents, the ladder (division) method, Euclid’s algorithm, full factor lists and the first common multiples.

LCM & GCF togetherUp to 10 numbersThree methods shownAlso called HCF & LCDWorks offline
Try:
Least common multiple (LCM)

-

Greatest common factor (GCF / HCF)

-

What this LCM and GCF calculator gives you

Getting the answer is easy. Showing the method is what marks are given for, so this calculator writes out the working three different ways and lets you use whichever one your class was taught.

Both answers at once

LCM and GCF come from the same prime factorisation, so there is no reason to run two separate calculators. Enter your numbers once and get both.

Real step-by-step working

Prime factors with exponents, the highest and lowest powers picked out, and a written explanation of why each factor was chosen – not just a number in a box.

The ladder method too

The division ladder that most schools teach is drawn as a proper table, with the divisor column highlighted so you can copy it straight into your book.

Euclid’s algorithm

Every remainder step is listed for the GCF, which is the method you need for large numbers and for exams that ask for the Euclidean approach.

Up to ten numbers

Most calculators stop at two or three. This one handles a whole list, and still shows the factor table for every value you enter.

Instant and private

Everything is calculated in your browser as you type. No adverts in the way, no sign-up, and it keeps working with the connection off.

How to find the LCM and GCF

  1. Enter your numbers

    Type two or more whole numbers separated by commas or spaces. Decimals and negatives are not used for LCM and GCF, so the tool asks you to correct them.

  2. Read the two answers

    The orange card is the least common multiple and the slate card is the greatest common factor, also written as HCF or GCD depending on your syllabus.

  3. Open the prime factors tab

    Each number is broken into primes. Take the highest power of every prime for the LCM, and the lowest power of the primes that all numbers share for the GCF.

  4. Or use the ladder

    Divide the whole row by a prime that goes into every number, write the quotients underneath and repeat. The divisors multiply to the GCF; divisors plus the bottom row multiply to the LCM.

  5. Check with Euclid

    For two numbers, divide the larger by the smaller and keep replacing the pair with the divisor and remainder. The last non-zero remainder is the GCF.

  6. Copy your answer

    Use the copy button to take the result and the key working with you into your homework or notes.

LCM and GCF in plain English

Least common multipleThe smallest number that every one of your numbers divides into exactly. LCM(4, 6) = 12
Greatest common factorThe largest number that divides exactly into all of them. GCF(12, 18) = 6
Other namesGCF is also called HCF (highest common factor) or GCD (greatest common divisor). LCM is called LCD when it is used as a denominator.
The key identityFor any two numbers, GCF x LCM = a x b. It is the fastest way to check your answer.
Coprime numbersIf the GCF is 1 the numbers share no factors, and the LCM is simply their product. LCM(7, 13) = 91
Where they are usedGCF simplifies fractions; LCM finds the common denominator when you add or subtract them.

When you need them

  • Add or subtract fractions by finding the lowest common denominator.
  • Simplify a fraction all the way down in one step using the GCF.
  • Work out when two repeating events line up again, such as buses, shifts or planets.
  • Split items into the largest possible equal groups with nothing left over.
  • Find gear ratios, tiling patterns and packaging sizes that fit exactly.
  • Check homework answers and see exactly where a step went wrong.
  • Reduce ratios and rates to their simplest form.

LCM and GCF FAQ

Get the answer and the working

Two numbers or ten, prime factors, ladder and Euclid, all in one screen. Free, unlimited and calculated on your own device.

Scroll to Top