Tools
Runs locally

GCD & LCM

Greatest common divisor and least common multiple.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Accepts two or more integers, including negatives. Zero is handled explicitly.

About this tool

Enter two or more integers, for example 24, 36 and 60, and get their greatest common divisor and least common multiple. Negative numbers and zero are handled explicitly.

How to use it

  1. 01

    Type the integers separated by spaces or commas.

  2. 02

    Add as many numbers as you need.

  3. 03

    Read the GCD and LCM below the field.

FAQ

Frequently asked questions

Can I use more than two numbers?

Yes. The tool accepts any number of integers and computes the GCD and LCM of all of them.

What happens with zero?

The GCD of a number and zero is the number itself; the LCM involving zero is zero. The tool shows this explicitly.