Two numbers, two useful answers
The greatest common factor is the biggest number that divides both of your numbers with nothing left over. The least common multiple is the smallest number that both of them divide into. They sound alike and do opposite jobs.
Type in two whole numbers and the calculator shows both, along with the working. You see the prime factors and the steps of the Euclidean method, so you can follow the logic and not just copy an answer.
Finding the GCF by prime factors
Break each number into primes. For 36 that's 2 x 2 x 3 x 3. For 48 it's 2 x 2 x 2 x 2 x 3. Take the primes they share, with the lower count of each: two 2s and one 3. Multiply and you get 12.
The LCM goes the other way. Take every prime that shows up, with the higher count of each. That's four 2s and two 3s, which is 144.
The Euclidean algorithm
Prime factoring gets slow for big numbers. Euclid's method is far faster. Divide the larger number by the smaller, keep the remainder, and repeat with the smaller number and that remainder. When the remainder hits zero, the last divisor is the GCF.
For 48 and 36: 48 divided by 36 leaves 12. Then 36 divided by 12 leaves 0. So the GCF is 12. It's over in two lines, and it has been in use for more than two thousand years.
How GCF and LCM connect
Multiply the two numbers together and you get the same result as multiplying their GCF and LCM. In symbols, a x b = GCF x LCM. It's a handy check, and it's also a quick way to get the LCM once you have the GCF: divide a x b by the GCF.
If the GCF is 1, the numbers are called coprime. They share no factors, and their LCM is just their product. 8 and 15 are a good example.
Where you'd use them
GCF simplifies fractions. To reduce 36/48, divide top and bottom by 12 and get 3/4. LCM finds a common denominator when you add fractions with different bottoms, like 1/6 plus 1/8, where 24 works.
It also shows up in scheduling. If one bus comes every 12 minutes and another every 18, they meet together every 36 minutes. That's the LCM.
The tool works on two numbers at once. For three or more, find the GCF of the first two, then take the GCF of that result and the next number. Same idea for LCM. Everything runs in your browser.