GCD and LCM Calculator
Calculate the greatest common divisor and the least common multiple of several numbers.
Workspace · GCD and LCM Calculator
Separa los números con comas, espacios o saltos de línea.
How to use it
Enter the figures into the fields on the calculator.
The result is updated as you type; check the breakdown or the formula.
Copy the result using the copy button if you need it in another document.
Examples
Two numbers
GCD(18, 24) = 6 and LCM(18, 24) = 72.
Three numbers
GCD(12, 18, 30) = 6 and LCM(12, 18, 30) = 180.
What you need to know
The GCD is the greatest integer that divides all the numbers without leaving a remainder; the LCM is the smallest positive integer that is a multiple of all of them. For any two numbers, GCD(a, b) × LCM(a, b) = a × b.
You can separate the numbers with commas, spaces or line breaks. Both positive and negative integers are allowed; the result is expressed as an absolute value.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
Fraction simplifier
Simplify the fraction to its irreducible form and state the GCD used.
Fractions calculator
Add, subtract, multiply and divide fractions, simplifying the answer.
Roots and Powers Calculator
Solve for powers, square roots, cube roots and roots of any order.
