Greatest Common Factor Calculator

Greatest Common Factor Calculator

Find the largest whole number that divides both of two numbers exactly — the greatest common factor (GCD/HCF).

Formula: the GCF is found with the Euclidean algorithm — repeatedly replace (a, b) with (b, a mod b) until the remainder is zero.

About the Greatest Common Factor Calculator

Find the largest whole number that divides both of two numbers exactly — the greatest common factor (GCD/HCF). It is handy for homework, exams and everyday number problems, and because the standard formula is shown below, you can also use it to check your own working.

How to use this calculator

  1. Enter your first number and second number in the form above.
  2. Press the Calculate button.
  3. Your result appears instantly under the form — no sign-up, no waiting, and nothing is sent to a server.

Formula used

Formula: the GCF is found with the Euclidean algorithm — repeatedly replace (a, b) with (b, a mod b) until the remainder is zero.

This calculator is completely free and runs in your browser on phone, tablet and computer. Bookmark the page if you use it often, and explore the related calculators on this page for more free tools from Percent Off Calculator.

Related Calculators

More free tools in the same category.