CalculatorForEver
MATH / GUIDE

How are GCF and LCM connected?

Calculator ForEver 3 min read

For two positive integers, their GCF multiplied by their LCM equals the product of the original integers. The shared prime factors explain this relationship.

Use the relationship as an arithmetic check

For each prime, GCF uses the smaller exponent and LCM uses the larger exponent. Adding those two exponents gives the sum from the two inputs. Multiplying the GCF and LCM therefore reconstructs the same prime powers as multiplying the original pair.

Worked example

For 16 and 24, GCF is 8 and LCM is 48. The products agree: 8 × 48 = 384 and 16 × 24 = 384. If a proposed LCM were 96, it would still be a common multiple, but it would fail this least-multiple product check.

Apply the identity to the stated domain

The formula here concerns two positive integers. Extending it mechanically to zero or to an arbitrary list needs additional definitions and care. Intermediate multiplication can also exceed a program’s exact integer range even when individual inputs look ordinary; retain the calculator’s numerical-limit checks.

See the identity through prime exponents

For each prime in two positive integers, the GCF uses the smaller exponent and the LCM uses the larger exponent. Adding those selected exponents gives the sum of the exponents in the two original numbers. Because multiplication adds exponents, multiplying the GCF by the LCM reconstructs the product of the inputs. This explains the identity GCF(a,b) × LCM(a,b) = a × b. It also shows why the statement concerns a pair of positive integers rather than an arbitrary list of numbers.

Check the identity using a nontrivial pair

Take 48 and 180. Their prime forms are 2⁴ × 3 and 2² × 3² × 5. The GCF uses 2² × 3 = 12. The LCM uses 2⁴ × 3² × 5 = 720. Multiplying 12 × 720 gives 8,640, which matches 48 × 180. This check uses both the factor-selection rules and the original product. If either the GCF or LCM was copied incorrectly, the equality can help identify a problem before the result is used elsewhere.

Solve for one quantity when the other is known

Knowing GCF(48,180) = 12 lets you calculate the LCM as 48 ÷ 12 × 180 = 720. Dividing before multiplying reduces the intermediate number without changing the exact answer. Conversely, knowing the LCM gives GCF = product ÷ LCM. The derived quantity should still be checked against its definition: the GCF must divide each input, and the LCM must be divisible by each. Product equality alone is not enough if both claimed results have been chosen incorrectly in a coordinated way.

Avoid extending the pairwise rule unchanged to three inputs

For 2, 4 and 8, the joint GCF is 2 and the joint LCM is 8. Their product is 16, while the product of the three inputs is 64. The two-number identity therefore cannot be copied directly to a longer list. To process additional inputs, combine them pairwise using the appropriate algorithm. Calculator ForEver’s GCF form takes two numbers, making its displayed GCF/LCM relationship a pairwise check. Keep the input domain visible when explaining the formula so that a correct identity does not become an incorrect shortcut.

Questions about this calculation

Can I recover LCM from GCF?

Yes: for positive inputs, divide their product by the GCF. Likewise, dividing their product by the LCM recovers the GCF.

Try these values in the calculator

Find the largest factor shared by two positive integers.

Use the greatest common factor calculator

References

More greatest common factor questions

Related tools