Lcd Calculator
GCF and LCM Calculator works out Greatest common factor and Least common multiple from Numbers and Maximum factors to list. The default figures on this page give greatest common factor of 6; change any entry and the result, the working and the sources update together.
Your figures
Updates as you typeHow this is worked out
5 steps
- 12 = 2^2 x 3
- 18 = 2 x 3^2
- GCF = the product of every prime raised to its lowest shared power = 6.
- LCM = the product of every prime raised to its highest power = 36.
- Check: GCF x LCM = 6 x 36 = 216, which equals 12 x 18.
All common factorstable
Prime factorizationstable
numbersUsedtable
Its 5 worked examples are re-run on every release, last on 15 September 2026. What changed
Sources and references
3 sources
What the GCF and LCM Calculator calculates
Finds the greatest common factor (GCD/HCF) and least common multiple of two or more whole numbers, with the Euclidean, prime-factorization or factor-listing working shown.
How to use this GCF and LCM Calculator
Enter Numbers and Maximum factors to list. Greatest common factor updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.
How the result is worked out
Open “How this is worked out” beside the result for the step-by-step calculation behind Greatest common factor, Least common multiple and GCF (exact).
The method follows Euclid, Elements, Book VII, Propositions 1-3 (the Euclidean algorithm), NIST Digital Library of Mathematical Functions, §27.1-27.2 (divisibility, fundamental theorem of arithmetic) and Common Core State Standards for Mathematics, 6.NS.B.4 (greatest common factor and least common multiple).
GCF and LCM of 12 and 18 example
With Numbers: 12,18, the calculator returns Greatest common factor: 6, Least common multiple: 36, GCF x LCM (two numbers only): 216. This example is checked against an independent source in the test suite.
What you can compare
Change one input at a time to see how it affects Greatest common factor, Least common multiple and GCF (exact). The inputs you can vary are Numbers and Maximum factors to list.
Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.
See something wrong? Report a problem with this calculator
Frequently asked questions
What is LCD and how to find it?
Finds the greatest common factor (GCD/HCF) and least common multiple of two or more whole numbers, with the Euclidean, prime-factorization or factor-listing working shown. On this page it is computed from Numbers and Maximum factors to list and shown as Greatest common factor, Least common multiple and GCF (exact).
What is the LCD of 4 and 8?
On the figures this page opens with, the greatest common factor is 6. No single number fits everyone: it follows Numbers and Maximum factors to list, so enter your own above and the answer updates as you type.
What is the LCD of 5 and 7?
It needs Numbers and Maximum factors to list. Nothing else is required, and the figures stay in your browser.
What's an easy way to remember LCD?
The result gives Greatest common factor, Least common multiple, GCF (exact), LCM (exact), All common factors and Prime factorizations, each labelled with its unit so the figure can be read on its own.
What information do I need for the GCF and LCM Calculator?
You need Numbers and Maximum factors to list. The page opens with default figures that give greatest common factor of 6, so you can see the scale before entering your own.
What does this GCF and LCM Calculator show?
It shows Greatest common factor, Least common multiple, GCF (exact), LCM (exact), All common factors, Prime factorizations, Numbers are coprime and GCF x LCM (two numbers only), with the working and any warnings for your entries.
