Skip to content
ToolUlkaa Tool
All tools

Mathematics

Percentage CalculatorFraction CalculatorEquation SolverTensorMatrix CalculatorUnit ConverterNumber Base ConverterDerivative CalculatorIntegral CalculatorLimit CalculatorAlgebra CalculatorQuadratic Formula CalculatorFactoring CalculatorLogarithm CalculatorSquare Root CalculatorLong Division CalculatorSignificant Figures CalculatorLCM and GCF CalculatorPrime Factorization CalculatorTriangle CalculatorPythagorean Theorem CalculatorSlope CalculatorArea CalculatorVolume CalculatorScientific CalculatorGraphing Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Mathematics

GCD Calculator

Enter numbers to get the greatest common divisor, with every Euclidean step.

Find
Positive whole numbers separated by commas or spaces.
Try:

Greatest common factor

gcd⁡(1071, 462)=21\gcd(1071,\ 462) = 21gcd(1071, 462)=21

Prime factorization table

Number222333777111111171717
1,07102101
46211110
GCF (smallest)01100
LCM (largest)12111

The cells are exponents. The GCF takes the smallest exponent in each column, the LCM the largest.

Step by step

  1. 1Prime factorization
    1071, 4621071,\ 4621071, 462
    ↓
    1071=32×7×17462=2×3×7×11\begin{aligned}1071 &= 3^{2} \times 7 \times 17\\462 &= 2 \times 3 \times 7 \times 11\end{aligned}1071462​=32×7×17=2×3×7×11​

    Write every number as a product of primes.

  2. 2GCF: smallest power of each prime
    20×31×71×110×1702^{0} \times 3^{1} \times 7^{1} \times 11^{0} \times 17^{0}20×31×71×110×170
    ↓
    3×7=213 \times 7 = 213×7=21

    Take only the primes that all the numbers share, each to its lowest power.

  3. 3LCM: largest power of each prime
    21×32×71×111×1712^{1} \times 3^{2} \times 7^{1} \times 11^{1} \times 17^{1}21×32×71×111×171
    ↓
    2×32×7×11×17=235622 \times 3^{2} \times 7 \times 11 \times 17 = 235622×32×7×11×17=23562

    Take every prime that appears anywhere, each to its highest power.

  4. 4Euclidean algorithm for 1071 and 462
    1071=2×462+147462=3×147+21147=7×21+0\begin{aligned}1071 &= 2 \times 462 + 147\\462 &= 3 \times 147 + 21\\147 &= 7 \times 21 + 0\end{aligned}1071462147​=2×462+147=3×147+21=7×21+0​
    ↓
    gcd⁡(1071, 462)=21\gcd(1071,\ 462) = 21gcd(1071, 462)=21

    Divide the larger by the smaller, then repeat with the divisor and the remainder. The last non-zero remainder is the GCF.

  5. 5LCM from the GCF
    lcm⁡(a,b)=a×bgcd⁡(a,b)\operatorname{lcm}(a,b) = \frac{a \times b}{\gcd(a,b)}lcm(a,b)=gcd(a,b)a×b​
    ↓
    1071×46221=23562\frac{1071 \times 462}{21} = 23562211071×462​=23562
  1. Tools
  2. Mathematics
  3. LCM and GCF Calculator
  4. GCD Calculator

About GCD Calculator

This GCD calculator finds the greatest common divisor using the Euclidean algorithm, and writes each division line so you can follow or check it. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

The page opens on 1071 and 462, the textbook example. Divide 1071 by 462 to get 2 remainder 147; divide 462 by 147 to get 3 remainder 21; divide 147 by 21 to get 7 remainder 0. The last non-zero remainder, 21, is the GCD. Their LCM is 23562.

The algorithm works because gcd(a, b) = gcd(b, a mod b). It is far faster than factoring for large numbers: 252 and 105 take two divisions to give 21.

How to use GCD Calculator

  1. 1Choose LCM and GCF, LCM only or GCF only.
  2. 2Type two to ten positive whole numbers separated by commas or spaces.
  3. 3Read the answer at the top. It updates as you type.
  4. 4Check the prime exponent table: the GCF uses the smallest exponents and the LCM the largest.
  5. 5Open the steps for the Euclidean algorithm and, for two numbers, the link lcm = a × b ÷ gcd.

Features

  • LCM and GCF (GCD, HCF) of 2 to 10 numbers at once.
  • Prime factorization method with an exponent table.
  • Euclidean algorithm shown division by division.
  • Coprime detection.
  • Numbers of up to 24 digits, computed exactly with big integers.
  • Separate LCM-only and GCF-only views.
  • Step list in KaTeX with a copy button for the LaTeX.

Euclidean algorithm

Replace the pair (a, b) by (b, a mod b) until b is 0.

gcd(1071, 462) = gcd(462, 147) = gcd(147, 21) = gcd(21, 0) = 21

Worked examples

  • GCD of 1071 and 462 → gives 21

    Three divisions.

  • GCD of 252 and 105 → gives 21

    252 = 2 × 105 + 42, 105 = 2 × 42 + 21, 42 = 2 × 21.

Privacy: how it works

  • Everything is calculated by code running in your browser tab. The numbers you enter are not sent to Ulkaa or to any other server, and there is nothing to sign in to.

Tips

  • To add fractions, use the LCM of the denominators as the common denominator, which keeps the numbers small.
  • To simplify a fraction, divide top and bottom by their GCF in one step.
  • If the GCF of two numbers is 1, their LCM is just their product.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Numbers are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Numbers are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

What is the Euclidean algorithm?

A method for the GCD: divide, keep the remainder, and repeat with the divisor and remainder until the remainder is zero.

Why is the Euclidean algorithm fast?

Each division at least halves the remainder every two steps, so the number of steps grows with the number of digits, not with the size of the numbers.

More LCM and GCF Calculator pages

  • LCM and GCF CalculatorEnter two to ten whole numbers to get their least common multiple and greatest common factor, with the working.
  • LCM CalculatorEnter two to ten numbers to get their least common multiple.
  • GCF CalculatorEnter two to ten numbers to get their greatest common factor.
  • HCF CalculatorEnter numbers to get their highest common factor, with the working.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account