School Pets Food Code & PLC Professionals 💡 Suggest
EN

GCD and LCM: greatest common divisor and least common multiple

Calculate the greatest common divisor and least common multiple of two, three or four whole numbers with Euclid's algorithm. The calculator is free and shows the formula, the working and a numerical example, with no sign-up.

📐 Formula and steps shown. Sources and limits: How we calculate

Results

Indicative results: always verify with a qualified technician and the applicable standards. Legal notice

Step-by-step calculation with your values

    Formulas

    MCD = MCD(a, b, c, d)
    mcm = mcm(a, b, c, d)

    How it is calculated

    The GCD is the largest number that divides all the values without remainder; Euclid's algorithm finds it by repeatedly replacing the pair (a, b) with (b, remainder of a/b) until the remainder is zero. The LCM is the smallest number that is a multiple of all of them: for two numbers LCM(a, b) = a·b / GCD(a, b), and with more numbers you go pair by pair. The GCD simplifies fractions; the LCM gives a common denominator or the moment two cycles line up again. Decimals are rounded to whole numbers.

    Results are indicative: for real projects and installations always check applicable standards and a qualified professional.

    Example

    With the values: First number = 84; Second number = 126; Third number (0 = not used) = 0; Fourth number (0 = not used) = 0 — you get:

    • Greatest common divisor (GCD): 42
    • Least common multiple (LCM): 252

    ✏️ Try it yourself: exercises

    Solve them with the formulas above, then open the solution to check.

    1. Exercise 1

      Given:

      • First number: 130
      • Second number: 100
      • Third number (0 = not used): 0
      • Fourth number (0 = not used): 0

      Find: Greatest common divisor (GCD), Least common multiple (LCM)

      Show the solution
      • Greatest common divisor (GCD): 10
      • Least common multiple (LCM): 1,300

      🧮 Check it in the calculator with these values

    2. Exercise 2

      Given:

      • First number: 50
      • Second number: 160
      • Third number (0 = not used): 0
      • Fourth number (0 = not used): 0

      Find: Greatest common divisor (GCD), Least common multiple (LCM)

      Show the solution
      • Greatest common divisor (GCD): 10
      • Least common multiple (LCM): 800

      🧮 Check it in the calculator with these values

    3. Exercise 3

      Given:

      • First number: 170
      • Second number: 150
      • Third number (0 = not used): 0
      • Fourth number (0 = not used): 0

      Find: Greatest common divisor (GCD), Least common multiple (LCM)

      Show the solution
      • Greatest common divisor (GCD): 10
      • Least common multiple (LCM): 2,550

      🧮 Check it in the calculator with these values

    Frequently asked questions

    Which formula does the “GCD and LCM: greatest common divisor and least common multiple” calculator use?

    The formulas used are: MCD = MCD(a, b, c, d); mcm = mcm(a, b, c, d). The full explanation, with units and typical values, is in the “How it is calculated” section.

    Is FunConvert free?

    Yes. Every converter and calculator is free, with no sign-up and nothing to install. Calculations run in your browser.

    What do you think?

    Your rating