Skip to content

GCD and LCM Calculator

Calculate the greatest common divisor and the least common multiple of several numbers.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · GCD and LCM Calculator

Runs in your browser · 100% local

Separa los números con comas, espacios o saltos de línea.

MCD6
MCM360
Números válidos3
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Enter the figures into the fields on the calculator.

02

The result is updated as you type; check the breakdown or the formula.

03

Copy the result using the copy button if you need it in another document.

Examples

Examples

Two numbers

GCD(18, 24) = 6 and LCM(18, 24) = 72.

Three numbers

GCD(12, 18, 30) = 6 and LCM(12, 18, 30) = 180.

Reference guide

What you need to know

The GCD is the greatest integer that divides all the numbers without leaving a remainder; the LCM is the smallest positive integer that is a multiple of all of them. For any two numbers, GCD(a, b) × LCM(a, b) = a × b.

You can separate the numbers with commas, spaces or line breaks. Both positive and negative integers are allowed; the result is expressed as an absolute value.

Frequently asked questions

Frequently Asked Questions

To simplify fractions, divide quantities into equal groups or solve problems involving divisibility.

Related tools

Other tools that can help with similar tasks.

More at Mathematics→
GCD and LCM Calculator · Free online tool · ByTooly