12, 18, 30
Common case with clear GCD and LCM.
12, 18, 30
Math
Enter two or more integers and get the greatest common divisor, least common multiple, verification and step-by-step work.
Separate with commas, spaces or line breaks. Only integers.
Calculation
Examples
By prime factors
GCD: -
LCM: -
Common cases for practicing GCD, LCM, zeros and coprime numbers.
Common case with clear GCD and LCM.
12, 18, 30
Common denominators when finding a common denominator.
8, 12, 15
Two numbers with a common divisor.
42, 56
Coprime numbers.
7, 13
Case with zero.
0, 12
Use of absolute values with negative numbers.
-24, 36
Both concepts compare numbers but answer different questions.
Use it to split quantities, simplify fractions or find the largest common divisor. If the GCD is 1, the numbers are coprime.
Use it for common denominators, repeating cycles or synchronizing multiples. It is the smallest number divisible by every value.
The greatest common divisor is the largest number that divides every number in a list exactly.
The least common multiple is the smallest positive number that is a multiple of every number in a list.
The Euclidean algorithm divides one number by another and repeats with the divisor and remainder until the remainder is 0. The last divisor is the GCD.
Factor each number and take only common prime factors with the lowest exponent. Their product is the GCD.
Factor each number and take every prime factor with its highest exponent. Their product is the LCM.
Yes. The calculator accepts negative numbers but uses their absolute values to calculate the GCD and LCM.
The GCD of a number and 0 is that number's absolute value. The LCM is shown as 0 when the list contains at least one 0.
Their GCD is 1. They share no common divisor greater than 1.