← All calculators / Math

Least common multiple

Whole numbers only.

01 / Your inputsBrowser-only calculation
Least common multiple
—
How it works

The formula

|a × b| / GCD(a,b)

Example inputs

First integer: 12 · Second integer: 18

Result: 36

What the Least common multiple works out

The Least common multiple turns the figures below into least common multiple, using the formula |a × b| / GCD(a,b). Whole numbers only.

What each field means

First integer
A number; the example uses 12.
Second integer
A number; the example uses 18.

A worked example

With the values this page opens on — First integer 12, Second integer 18 — the answer is 36. Reset restores exactly these numbers.

Reading the result

The headline number is least common multiple. Change any field and the figure, along with the graph beside it, is recomputed from the values you typed — nothing is rounded before the arithmetic runs.

Assumptions and limits

Whole numbers only. Result is nonnegative.

Your privacy

Nothing you type leaves your browser.

Related calculators

Common factors ↗ · Greatest common factor ↗ · Slope ↗ · Binary ↗