How to use it
- Type the numbers separated by spaces or commas, for example 12, 18, 30. You can enter from 2 to 20 numbers up to one trillion.
- Read the GCD and the LCM at the top.
- Check the prime factorizations: the GCD uses the primes all numbers share (lowest powers), the LCM uses every prime (highest powers).
- Follow Euclid's algorithm for the first two numbers to see another way to reach the GCD.
Common uses
- Simplifying fractions: divide by the GCD of the numerator and denominator.
- Finding a common denominator: use the LCM of the denominators.
- Solving word problems such as “when will two buses arrive together again?”
- Splitting items into equal groups with nothing left over.
- Checking homework on prime factorization.
Examples
| Numbers | Result |
|---|---|
| 12, 18 | GCD 6 · LCM 3612 = 2² × 3, 18 = 2 × 3². |
| 8, 12, 20 | GCD 4 · LCM 120LCM = 2³ × 3 × 5. |
| 48, 180 | GCD 12 · LCM 720Euclid: 180 = 3 × 48 + 36, 48 = 1 × 36 + 12, 36 = 3 × 12 + 0. |
| 17, 31 | GCD 1 · LCM 527Coprime numbers: their LCM is simply their product. |
Frequently asked questions
What is the difference between GCD and LCM?
How do you find the GCD with prime factorization?
How does Euclid's algorithm work?
Is there a quick formula linking GCD and LCM?
Related tools
Fraction Calculator
Add, subtract, multiply and divide fractions and mixed numbers with every step shown, and get the result simplified, as a mixed number and as a decimal.
Multiplication Table
A printable multiplication table up to 10, 12 or 20, plus a times-table trainer that checks every answer and repeats your mistakes.
Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Very large integers are converted exactly.
Calculator
General purpose and scientific calculator. Supports trigonometry, logarithms, and advanced math.