Skip to tool

GCD and LCM Calculator

GCD and LCM Calculator

Enter two integers and calculate.

About

Classic number theory calculator for greatest common divisor and least common multiple.

Examples

12 and 18

Input
{"a":"12","b":"18"}
Output
{"gcd":6,"lcm":36}

Use Cases

  • Ratio simplification
  • Tile/grid alignment
  • Competitive programming drills

Frequently Asked Questions