GCD & LCM calculator

Client

Enter two whole numbers to get their greatest common divisor and least common multiple—useful for fraction reduction and scheduling problems.

GCD and LCM together

The greatest common divisor (GCD) uses the Euclidean algorithm on BigInt values; the least common multiple (LCM) is (a / GCD) × b. Both accept non-negative integers—use Math evaluator for general expressions or Percentage calculator for ratio word problems.

GCD
6
LCM
144

Nearby workflows on Toolcore

Common use cases

  • Reduce ratio pairs before coding a gear or pulley problem.
  • Find a common cycle length for two repeating events.
  • Check homework GCD/LCM steps quickly.

Common mistakes to avoid

  • Negative numbers

    Only non-negative integers are accepted—use absolute values first.

FAQ

How large can inputs be?

Arbitrary-precision BigInt is used—very large integers are supported until the browser runs out of memory.

Common search terms

Phrases people search for that match this tool. See the full long-tail keyword index.

  • gcd lcm calculator online
  • greatest common divisor least common multiple
  • euclidean gcd lcm tool browser
  • find gcd and lcm of two numbers

Related utilities you can open in another tab—mostly client-side.