Skip to content
Contania

LCM and GCF Calculator

The GCF is the largest number that divides all your values; the LCM is the smallest number they all divide into. Enter two or more whole numbers to get both at once.

Your numbers

Two or more whole numbers, separated by commas.

Result

GCF (greatest common factor)
6
LCM (least common multiple)
36
Count
2
Result
ItemValue
Numbers12, 18
GCF (greatest common factor)6
LCM (least common multiple)36
Advertisement

GCF and LCM explained

The greatest common factor (GCF, also GCD) of 12 and 18 is 6 — the biggest number dividing both. The least common multiple (LCM) is 36 — the smallest number both divide into. A handy check: for two numbers, GCF x LCM = a x b (6 x 36 = 12 x 18).

Where they are used

The GCF simplifies fractions (divide top and bottom by it) and splits things into equal groups. The LCM finds a common denominator when adding fractions and lines up repeating cycles — like when two events on different schedules coincide.

Frequently asked questions

Sources

  • Number theory — LCM and GCF (Euclidean algorithm)

Embed this calculator

Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.

<iframe src="https://contania.app/embed/math/lcm-gcd" title="LCM and GCF Calculator" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/math/lcm-gcd"]');if(f){f.style.height=e.data.height+"px"}}});</script>

Related calculators