Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Tools › Maths

LCM and HCF calculator

Lowest common multiple and highest common factor by prime factorisation.

HCF 6, LCM 180

  1. 12 = 2 × 2 × 3
  2. 18 = 2 × 3 × 3
  3. 30 = 2 × 3 × 5
  4. HCF = 6
  5. LCM = 180

How it works

Break each number into primes. The HCF takes each common prime with its smallest power; the LCM takes every prime with its largest power.

For two numbers, HCF × LCM = the product of the numbers, a quick way to check.

Worked example

With Numbers = 12, 18, 30:

  1. 12 = 2 × 2 × 3
  2. 18 = 2 × 3 × 3
  3. 30 = 2 × 3 × 5
  4. HCF = 6
  5. LCM = 180

Answer: HCF 6, LCM 180

Questions

What is the difference between HCF and LCM?
HCF is the biggest number that divides all of them; LCM is the smallest number all of them divide into.

Learn the method properly

The chapter behind this tool, with animations, an experiment and an AI tutor who checks each step you write.

Open the chapter

More maths tools

  • Quadratic equation solver
  • Fraction simplifier
  • Percentage calculator
  • Simple interest calculator
  • Compound interest calculator
  • Mean, median and mode calculator