GCF & LCM Calculator
Numbers: 12, 18, 24 (3 numbers)
Greatest Common Factor (GCF)
6
Also called GCD (Greatest Common Divisor)
Least Common Multiple (LCM)
72
Smallest number divisible by all
Prime Factorization
Verification
GCF divides all numbers evenly:
12÷6=2, 18÷6=3, 24÷6=4
LCM is divisible by all numbers:
72÷12=6, 72÷18=4, 72÷24=3
Definitions
GCF (Greatest Common Factor): The largest number that divides evenly into all given numbers. Also called GCD (Greatest Common Divisor) or HCF (Highest Common Factor).
LCM (Least Common Multiple): The smallest positive number that is a multiple of all given numbers.
Common Uses
- GCF: Simplifying fractions, finding common factors
- LCM: Adding fractions with different denominators, finding common multiples
- Both are used in number theory, cryptography, and scheduling problems
About the GCF & LCM Calculator
The GCF & LCM Calculator finds two fundamental quantities for a set of whole numbers: the Greatest Common Factor (also called the greatest common divisor) and the Least Common Multiple. The GCF is the largest number that divides all of your inputs evenly, while the LCM is the smallest number that all of your inputs divide into evenly. Enter two or more integers and the tool returns both values, which are the building blocks for reducing fractions and finding common denominators.
The standard method for the GCF is the Euclidean algorithm, which repeatedly replaces the larger number with the remainder of dividing it by the smaller until the remainder reaches zero; the last nonzero divisor is the GCF. The LCM is then derived from a tidy relationship: for any two numbers, the GCF multiplied by the LCM equals the product of the numbers, so LCM equals the product divided by the GCF. For three or more inputs the tool applies these operations pairwise across the list.
These values appear constantly in everyday math. The GCF is exactly what reduces a fraction to lowest terms, while the LCM gives the least common denominator when you add or subtract fractions — the same step the Fractions Calculator performs internally. The LCM also answers real scheduling puzzles, like when two repeating events next coincide, and the GCF helps split items into the largest equal groups.
A practical tip: if the GCF of two numbers is 1, the numbers are coprime and their LCM is simply their product. Conversely, when one number divides the other, the smaller is the GCF and the larger is the LCM. Prime factorization is an alternative mental method — take the lowest powers of shared primes for the GCF and the highest powers of all primes for the LCM.
Frequently asked questions
- What is the difference between GCF and LCM?
- The GCF is the largest number that divides all inputs evenly; the LCM is the smallest number that all inputs divide into evenly.
- How is the GCF actually computed?
- The Euclidean algorithm repeatedly takes the remainder of dividing the larger value by the smaller until the remainder is zero, and the last nonzero divisor is the GCF.
- What is the relationship between GCF and LCM?
- For two numbers, GCF times LCM equals the product of the numbers, so the LCM can be found by dividing that product by the GCF.
- What does it mean if the GCF is 1?
- The numbers are coprime, sharing no common factor other than 1, and their LCM is simply the two numbers multiplied together.
- Can it handle more than two numbers?
- Yes. It applies the pairwise GCF and LCM operations across the whole list to return a single result for all inputs.
Add, subtract, multiply, divide fractions
Advanced mathematical operations
Calculate percentages easily
Calculate percent increase or decrease
Convert decimals to fractions
Convert between number bases