GCF and LCM Calculator with Steps

Find the greatest common factor and lowest common multiple of two to eight integers, with divisibility checks and clear explanations.

Free learning toolValidated inputs and visible working

How GCF and LCM describe whole numbers

Factors divide a number exactly, while multiples are produced by multiplying it by whole numbers. This calculator reports both the greatest common factor and the lowest common multiple for a list of integers. These values solve different problems: the GCF supports equal grouping and simplification, while the LCM supports repeating cycles, shared schedules and common denominators.

Decide whether the question asks for factors or multiples

Use the GCF when a quantity must be divided into the largest equal groups with nothing left over. Use the LCM when separate repeating patterns must meet or when fractions need a shared denominator. Enter two to eight non-zero whole numbers. Negative inputs are treated by absolute value because divisibility and positive common multiples depend on magnitude, not direction.

YOUR RESULT

Your shared factors and multiples

Enter your values

Choose an example or type the known values, then calculate to see the answer and working.

    Prime structure, grouping and repeating cycles

    Prime factors show the structure

    Expressing each number as a product of primes makes both answers visible. The GCF uses shared primes with the lowest powers. The LCM uses every required prime with the highest power appearing in any input.

    One answer divides; the other is divided

    The GCF must divide every original number. Every original number must divide the LCM. Repeating this sentence is a useful way to keep the two directions distinct.

    Context selects the calculation

    Cutting ribbons into longest equal pieces is a factor problem. Finding when buses with different intervals next arrive together is a multiple problem. Keywords can help, but the grouping or repeating relationship is stronger evidence.

    Common factors sit in the overlapShared prime structure explains the greatest common factor without confusing it with a multiple.

    GCF and LCM errors to catch

    GCF and LCM Calculator error check
    MistakeWhy it failsBetter check
    Listing too few multiplesStopping a list early can miss the first shared multiple.Use prime factors or the relationship LCM(a,b) × GCF(a,b) = |ab| for two inputs.
    Choosing the smallest common factorOne is a common factor of every integer but rarely answers a largest-group problem.Compare all shared prime factors and use their product.
    Including zeroEvery non-zero integer divides zero, which makes the intended positive LCM relationship unsuitable here.Use non-zero integers and interpret zero cases separately.

    Worked example: Find the GCF and LCM of 84 and 126

    Prime factorisation separates the shared structure from the extra factors.

    Prediction first

    Estimate the sign, scale, range or likely form of the answer before calculating. A prediction makes an input error easier to notice.

    1. Step

      Write 84 = 2² × 3 × 7 and 126 = 2 × 3² × 7.

    2. Step

      Use the shared primes with lower powers for the GCF: 2 × 3 × 7 = 42.

    3. Step

      Use all primes with higher powers for the LCM: 2² × 3² × 7 = 252.

    4. Step

      Verify that 42 divides both numbers and that 84 and 126 each divide 252.

    GCF and LCM Calculator questions

    Is HCF the same as GCF?

    Yes. Highest common factor, greatest common factor and greatest common divisor name the same positive value in school mathematics.

    Can I enter more than two numbers?

    Yes. The calculator accepts two to eight integers and updates the running GCF and LCM across the complete list.

    How does this help fractions?

    The LCM of denominators provides a least common denominator, while a GCF can reduce a numerator and denominator to simplest form.

    Use factors and multiples in the next problem

    The result points to related practice, but the best next step depends on what the learner could explain without help.

    Explore OpenSchoolbag

    Choose a page and go there directly.

    Explore learningChoose a learning path
    Quick navigationGo deeper into OpenSchoolbag

    Explore

    Education magazineResource libraryLearning collections

    Plan and practise

    Study plannerMaths practice testSearch the site

    OpenSchoolbag

    Frequently asked questionsAbout the siteEditorial policyContactView the full directory