Skip to main content

GCF & LCM Calculator

Free · No sign-up · Works in your browser

GCF & LCM Calculator

Find the Greatest Common Factor (GCF) and Least Common Multiple (LCM) of two or more numbers. Essential for simplifying fractions, solving equations, and number theory problems.

The greatest common factor of two numbers is the largest number that divides both without a remainder. It is the tool you reach for when simplifying a fraction, splitting a quantity into equal groups, or reducing a ratio to its simplest form. Its counterpart, the least common multiple, answers the opposite question: the smallest number both divide into.

The two are linked by a neat identity — GCF(a, b) × LCM(a, b) = a × b — so finding one immediately gives you the other.

Three ways to find it

  • Listing factors: write out every factor of each number and take the largest shared one. Fine for small numbers, impractical beyond about a hundred.
  • Prime factorisation: break both into primes and multiply the shared ones. 48 = 2⁴×3 and 60 = 2²×3×5, so the GCF is 2²×3 = 12.
  • Euclidean algorithm: divide the larger by the smaller, replace the pair with the divisor and remainder, repeat until the remainder is zero. Fast enough for numbers of any size, which is why computers use it.

The Euclidean algorithm worked through

Take 1,071 and 462. 1,071 ÷ 462 leaves 147. Now take 462 and 147: that leaves 21. Now 147 and 21: the remainder is zero, so the GCF is 21. Three steps, no factorisation, and the method dates to Euclid around 300 BC — it is among the oldest algorithms still in everyday use.

Where it is genuinely useful

  • Simplifying fractions: divide numerator and denominator by their GCF to reach lowest terms in one step. 18/24 with a GCF of 6 becomes 3/4.
  • Dividing into equal groups: 24 pens and 36 pencils split into at most 12 identical packs.
  • Reducing ratios: 45:60 simplifies to 3:4.
  • Tiling and layout: the largest square tile that fits a room exactly is the GCF of its dimensions.
  • Cryptography: the Euclidean algorithm underpins the key generation used in RSA.

Edge cases

The GCF of any number and zero is that number, since everything divides zero. Two numbers whose only common factor is 1 are called coprime — 8 and 15, for instance — and coprimality, not primality, is what matters in most number-theory applications. Prime numbers are automatically coprime with everything they do not divide.

Related tools

Quick answer

GCF & LCM Calculator is a free browser tool from SimpleCounter. Free GCF and LCM calculator. Find greatest common factor (GCD/HCF) and least common multiple of numbers. Fast and easy. Enter your values and the result updates as you type — there is nothing to install and no account to create.

Definition: GCF & LCM Calculator
A GCF & LCM calculator takes the numbers you enter and returns the result using the standard formula for that calculation, so you do not have to work it out by hand.

Key facts

Key facts about GCF & LCM Calculator
CostFree, with no account and no usage limit.
Where the maths happensIn your browser. The values you type are not sent to a server.
DevicesAny modern browser on phone, tablet, laptop or desktop.
AccuracyStandard published formulas, shown with the units you selected.
Intended useEstimates for everyday and educational use, not professional advice.

How to use the GCF & LCM calculator

  1. Type your value into the first field.
  2. Choose the unit or option that matches your figures, if the tool offers a choice.
  3. Read the result — it recalculates immediately, with no submit button.
  4. Change any input to compare a second scenario side by side.

How this page relates to the rest of the site

Explained in
Guides and how-tos
Published by
SimpleCounter

Disclaimer: This tool is provided for educational and informational purposes only. Results are estimates based on standard formulas and the inputs you provide. For financial, medical, legal, or tax decisions, consult a qualified professional. See our full disclaimer.

Frequently Asked Questions

What is GCF?

GCF (Greatest Common Factor) is the largest number that divides evenly into all given numbers. Also called GCD (Greatest Common Divisor) or HCF (Highest Common Factor).

What is LCM?

LCM (Least Common Multiple) is the smallest number that is a multiple of all given numbers. Used for adding fractions with different denominators.

How to find GCF?

Use the Euclidean algorithm: repeatedly divide the larger number by the smaller and take the remainder, until the remainder is 0. The last non-zero remainder is the GCF.

Benefits of using the GCF & LCM Calculator

What you actually get compared with a mechanical clicker, a notes app, or trying to hold the number in your head.

Nothing to install, nothing to sign up for

Open the gcf & lcm calculator and start counting in the same second. No account, no email, no trial.

Your count survives real life

Totals are saved on your device as you go, so a locked screen, a closed tab, or a lost signal does not reset anything.

Works offline once loaded

Install it to your home screen and it keeps working in a warehouse, a pool hall, a field, or a plane — no connection needed.

Private by default

Counts stay in your browser. There is no cloud sync, no profile, and nothing about what you count is sent to us.

Free, with no sign-up
Works offline once loaded
Counts stay on your device
Installable as an app
Runs in your browser — nothing to download
72+ counter types available

Share your setup

We publish only real, attributed feedback here — so this space is intentionally empty until we have your words to put in it. Tell us what you use the gcf & lcm calculator for and we will add your story, with your name, to this page.

Share your experience