Skip to content

Arithmetic on the numbers you type

Find the greatest common divisor and least common multiple

Both results use integer arithmetic, so a very long integer stays exact.

The sign is ignored for the divisor. The multiple is non-negative.

The work stays in this tab.

This tool runs in your browser. Turn on JavaScript to use it.

GCD and LCM

The sample is fixed. It uses the same rule as the form.

Left
12
Right
18
GCD
6
LCM
36

How to use it

  1. 1Fill in the fields.
  2. 2Read the result.
  3. 3Copy the line you need.

Good to know

  • Decimals are rejected.
  • This page does not upload the text.
  • Text longer than one hundred thousand characters is rejected.

Questions

Does the result leave this browser?

No. The calculation finishes in the current tab.

What does this page leave out?

Decimals are rejected.

What if the input is huge?

Past one hundred thousand characters, the page stops and asks you to shorten it.

Related tools