GCD & LCM calculator
Enter numbers separated by commas or spaces to get their GCD, LCM and prime factors.
GCD
LCM
Prime factors
How to use
- Enter two or more numbers (e.g. 12, 18, 30).
- The GCD and LCM appear at once.
- The table shows each number's prime factorisation.
Questions
How is it calculated?
The GCD with Euclid's algorithm; the LCM as the product divided by the GCD, pair by pair.
Zero or negative numbers?
The GCD uses absolute values; with a 0 in the list the LCM is 0.
How large can factorisation go?
Up to about 10¹⁴ instantly; larger numbers are not factored. GCD and LCM are exact at any size.
Is my input saved or sent?
No. It is processed in your browser only.
Related tools
- Number to words converterNumbers to English words, plus Korean and Japanese numerals, including the forms used on receipts and contracts.
- Square meter to pyeong / tsubo converterSquare meters, Korean pyeong / Japanese tsubo, tatami mats, square feet, hectares and acres, converted at once.
- Percentage calculatorWhat is X% of Y, X is what percent of Y, percent change, and adding or taking off a percentage.
- VAT calculatorAdd or remove VAT or Japanese consumption tax (10% / 8%, or any rate), with the rounding you need.
- Fraction ↔ repeating decimal converterFractions to decimals with the repeating part marked (1/7 = 0.(142857)), and repeating decimals back to fractions.
- BMI calculatorBody mass index from height and weight, classed by WHO, Korean or Japanese cut-offs.