Small tools. Useful answers.

GCD and LCM calculator

Find the greatest common divisor and least common multiple of two positive integers.

Runs on your device. Your tool inputs are not sent to BOMJ.net or saved.

Result


    

How it works

Uses the Euclidean algorithm for two positive integers up to one billion. The least common multiple is a ÷ GCD × b; results beyond JavaScript’s safe integer limit are rejected.

Uses browser floating-point arithmetic; displayed decimals may be rounded. Input magnitude is limited to one trillion unless a field shows a smaller limit.

Try another tool