# LCM and GCD Calculator

Find the least common multiple (LCM) and greatest common divisor (GCD / HCF) of a list of whole numbers.

URL: https://raava.in/calculators/lcm-gcd-calculator/
Section: Calculators › Maths
Updated: 2026-11-25

## How to use

Enter numbers. The result updates as you type, so you can try different figures and compare them straight away.

## Formula

GCD by the Euclidean algorithm; LCM(a, b) = a × b ÷ GCD(a, b)

## Example

With numbers (comma separated) = 12, 18, 30:
LCM | 180 | 
GCD / HCF | 6 |

## Frequently asked questions

### What does the LCM and GCD Calculator do?

Find the least common multiple (LCM) and greatest common divisor (GCD / HCF) of a list of whole numbers.

### What formula does the LCM and GCD Calculator use?

GCD by the Euclidean algorithm; LCM(a, b) = a × b ÷ GCD(a, b)

### Is the LCM and GCD Calculator free to use?

Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.

## Related

- [Linear Interpolation Calculator](https://raava.in/calculators/linear-interpolation-calculator/)
- [Sin Cos Tan Calculator](https://raava.in/calculators/trigonometry-calculator/)
- [Percentage Calculator](https://raava.in/calculators/percentage-calculator/)
- [What Percent Is X of Y Calculator](https://raava.in/calculators/what-percent-calculator/)
- [Percentage Change Calculator](https://raava.in/calculators/percentage-change-calculator/)
- [Percentage Difference Calculator](https://raava.in/calculators/percentage-difference-calculator/)
- [Percent Error Calculator](https://raava.in/calculators/percent-error-calculator/)
- [Fraction Simplifier](https://raava.in/calculators/fraction-simplifier/)
- [Fraction Calculator](https://raava.in/calculators/fraction-calculator/)
