Change language

Learn to calculate by playing with LCM calculator

A short game to see where the result comes from. Pick a language and start; you can stop halfway and come back.

Loading the game…

← Back to LCM calculator

What you will practise

Compute the LCM of several numbers to add fractions or synchronise repeating cycles.

How it works

It is derived from the greatest common divisor: the product of two numbers divided by their GCD gives the LCM. With more than two values the same operation is applied cumulatively.

Formula

lcm(a, b) = |a × b| / gcd(a, b)

lcm(a, b, c) = lcm(lcm(a, b), c)

Worked example

Example 1: LCM of 4, 6 and 10

1. lcm(4, 6) = 24 / 2 = 12
2. lcm(12, 10) = 120 / 2 = 60

Result: 60

Example 2: LCM of 8, 12 and 18 (common denominator to add 1/8 + 5/12 + 7/18)

By prime factorisation:
8 = 2³ · 12 = 2² · 3 · 18 = 2 · 3²

Take each prime with its highest power: 2³ · 3² = 8 · 9 = 72

Result: 72

How to play

First pick your language. Then work through the challenges one by one: each sets out a case with real numbers and, if you get stuck, you can ask for a hint. When you answer, you see whether you got it right and why. Progress is saved only in your browser, so you can stop halfway and carry on another day.