Skip to content
Utilities & CalculatorsLocal · Stays on device

GCD and LCM Calculator

Find the greatest common divisor and least common multiple of two or more whole numbers, with prime factors and Euclid’s algorithm steps.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
gcd-and-lcm-calculatorOn this device

About this tool

Enter two or more whole numbers to get their greatest common divisor (also called the HCF or GCF) and least common multiple. Each number’s prime factorisation is shown so you can see why — the GCD takes each shared prime at its lowest power and the LCM every prime at its highest. For two numbers, every step of Euclid’s algorithm is listed.

Numbers of any size are handled exactly using big-integer arithmetic. Everything is calculated in your browser; nothing you enter is sent anywhere.

  1. Input

    Your details

    The values you type in

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Enter two or more whole numbers separated by commas or spaces.

  2. 2

    Read the GCD and LCM.

  3. 3

    Check the prime factors and Euclid steps to follow the working.

Zero-upload architecture

How to use GCD and LCM Calculator for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open GCD and LCM Calculator

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Read the GCD and LCM.

  3. 3

    Get your result

    Check the prime factors and Euclid steps to follow the working.

  • Local

    Prime Factorization Tool

    Find the prime factors of a whole number up to 40 digits, plus all divisors, the divisor count and sum, and Euler’s totient.

    Open tool
  • Local

    Fraction Calculator

    Add, subtract, multiply and divide fractions and mixed numbers exactly, with step-by-step working and repeating-decimal conversion.

    Open tool
  • Local

    Modular Arithmetic Calculator

    Calculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.

    Open tool
  • Local

    Percentage Calculator

    Find X% of Y, what percent one number is of another, percentage change, and reverse percentages.

    Open tool