GCD/LCM Calculator

Last updated: October 16, 2026  •  Published by: NOFYI Editorial Team  •  Category: Math Tools

Workspace

What is the GCD/LCM Calculator?

The GCD/LCM Calculator finds the greatest common divisor and the least common multiple of two numbers. Enter two numbers in the workspace, click Process, and it reports both values together.

How to Use the GCD/LCM Calculator

  1. Enter the first number in the Number 1 field and the second number in the Number 2 field.
  2. Click Process.
  3. Read the result panel, which shows the two numbers, the GCD, and the LCM.
  4. Use Copy to copy the result, Download to save it, or Clear to start over.

Worked Example

Input: Number 1 = 48, Number 2 = 180

Observed result: Numbers: 48, 180, GCD: 12, LCM: 720.

Check: 48 = 2^4 x 3 and 180 = 2^2 x 3^2 x 5, so the greatest common divisor is 2^2 x 3 = 12 and the least common multiple is 2^4 x 3^2 x 5 = 720. A further check is GCD x LCM = 12 x 720 = 8640, which equals 48 x 180.

Limitations

  • Exactly two numbers only. There is no way to enter three or more numbers in one calculation.
  • The workspace provides two integer number fields. It does not show factor trees, prime factorization steps, or any working.
  • The result lists the GCD and LCM only, with no explanation of the method used.

Frequently Asked Questions

What is the GCD?

The largest number that divides both inputs exactly. For 48 and 180, it is 12.

What is the LCM?

The smallest number that both inputs divide exactly. For 48 and 180, it is 720.

Can I enter three numbers?

No. The workspace has two number fields only, so calculate pairs one at a time.

How are GCD and LCM related?

For two numbers, GCD x LCM equals the product of the two numbers. Here 12 x 720 = 48 x 180 = 8640.