Math / Number Systems / Fractions

Least Common Multiple Calculator

Find the least common multiple or greatest common divisor of two whole numbers with step-by-step working.

Calculator

Enter your values and view the result instantly.

Change any field below to update the answer straight away.

36

Least Common Multiple of 12 and 18

6

GCF (Greatest Common Factor)

36

LCM (Least Common Multiple)

2² × 3

Prime factorization of 12

2 × 3²

Prime factorization of 18

Number Theory

Least common multiple and greatest common factor

An LCM calculator helps you compare whole numbers by finding both the least common multiple and the greatest common factor. It is a practical maths calculator for fractions, ratios, schedules, divisibility problems, and step-by-step number work.

What LCM and GCF mean

The least common multiple is the smallest positive whole number that two numbers both divide into exactly. The greatest common factor, also called the greatest common divisor, is the largest whole number that divides both numbers without remainder.

These two values are closely related. The GCF helps simplify fractions and ratios, while the LCM helps combine fractions with different denominators and solve repeating-cycle problems. That is why an LCM calculator is also useful as a common denominator calculator and a problem-solving calculator.

Prime factorization method

One of the clearest ways to find LCM and GCF is prime factorization. Each number is broken into prime factors, and then those factor lists are compared.

GCF uses the shared prime factors with the smallest exponents

Only the prime factors common to both numbers are kept, using the lowest power that appears in either factorization.

LCM uses all prime factors with the largest exponents

Every prime factor needed to cover both numbers is included, using the highest power seen in either factorization.

a x b = GCF(a,b) x LCM(a,b)

For positive integers, the product of the two numbers equals the product of their GCF and LCM.

Why this calculator is useful

A free online calculator for LCM and GCF saves time in arithmetic and algebra because it shows the key structure of the numbers, not just the final answer. That helps with simplifying fractions, matching denominators, comparing repeating intervals, and checking whether one value is a factor or multiple of another.

It is also a strong student calculator tool because prime factorization makes number relationships easier to see. When the factors are visible, the result is easier to check by hand and easier to reuse in the next step of a longer calculation.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.

Decimal to Fraction Calculator

Convert finite decimals into simplified fractions, improper fractions, and mixed numbers with a quick decimal to fraction calculator.

Fraction Calculator

Add, subtract, multiply, divide, and simplify fractions with mixed-number and decimal output.

Fraction to Decimal Calculator

Convert fractions into exact decimal form, repeating-decimal notation, rounded decimals, and percentages with a quick fraction to decimal calculator.

Average Calculator

Find the mean, median, mode, and range of any list of numbers. Enter values separated by commas or spaces.

Privacy choices

Help us improve the site.

If you allow analytics, we may use Google Analytics and Microsoft Clarity to better understand how the site is used. Analytics remain off unless you accept.