JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

GCF Calculator

Calculate the greatest common factor (greatest common divisor) of two integers.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for GCF. The example starts with First integer = 48, Second integer = 18.

GCF Calculator formula

Uses the Euclidean algorithm.

Inputs and units

Inputs and example values for GCF Calculator
InputFormat / rangeExample
First integerWhole number48
Second integerWhole number18

Worked example

The values listed in Inputs and units give 6 for GCF.

GCF
6

Results and assumptions

Change First integer from 48 to 53 and keep the other example inputs fixed. The updated answer is 1 (GCF).

Fix an input or unexpected result

First integer is required. Enter first integer using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.