Free calculatorLive resultsSteps and sourcesEmbed on your site, free

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.

Greatest common factor
6
GCF and LCM Calculator
Least common multiple
36
GCF (exact)
6
LCM (exact)
36
Numbers are coprime
No
GCF x LCM (two numbers only)
216
How many numbers
2
Worked out from Euclid, Elements, Book VII, Propositions 1-3 (the Euclidean algorithm) and 2 other sources.

Your figures

Updates as you type
Whole numbers separated by commas or spaces, e.g. 12, 18, 24. Negative values are treated by magnitude.

How this is worked out

5 steps
  1. 12 = 2^2 x 3
  2. 18 = 2 x 3^2
  3. GCF = the product of every prime raised to its lowest shared power = 6.
  4. LCM = the product of every prime raised to its highest power = 36.
  5. Check: GCF x LCM = 6 x 36 = 216, which equals 12 x 18.
All common factorstable
1, 2, 3, 6
Prime factorizationstable
12 = 2^2 x 3, 18 = 2 x 3^2
numbersUsedtable
12, 18

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.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

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.

Related calculators

View all related calculators10 more