⌘ Number & Reference · Tool

GCD & LCM Calculator

Calculate both the greatest common divisor and least common multiple for two integers.

Enter your figures

Enter the values below to calculate your result.

Calculation Results

Based on the figures you entered.

GCD / HCF
42
LCM
252
Check
For non-zero a and b, |a × b| = GCD(a,b) × LCM(a,b).

How to use this calculator

What to enter

Enter or select the following as requested: First integer; Second integer. Follow the units, valid ranges, examples, and options displayed beside each field.

What the result means

The mathematical result follows the operation or function named by the calculator using the values or expression entered. Check the domain, sign conventions, integer requirements, and any restrictions shown by the tool.

When to use it

Use this to solve or verify an algebra, number-theory, sequence, or complex-number problem. Confirm the input format and check exact versus rounded output when precision matters.