Syntax
| Parameter | Description |
|---|---|
| number1 | Parameter of the GCD function. |
| [number2 | (Optional.) Parameter of the GCD function. |
| ...] | Parameter of the GCD function. |
Examples
Simplify a fraction
=GCD(48, 36)
Three numbers
=GCD(24, 60, 84)
Tile sizing
=GCD(180, 240)
Common Errors
Negative numbers return #NUM!. GCD only works with non-negative integers.
Non-numeric arguments return #VALUE!.
Tips
Numerator/GCD and Denominator/GCD gives the simplified fraction. =A1/GCD(A1,B1) & "/" & B1/GCD(A1,B1) shows it as text.
If GCD(a,b) = 1, the numbers are coprime (share no common factors). This matters in cryptography and gear ratios.
GCD can take up to 255 arguments or a range. =GCD(A1:A10) finds the GCD of all 10 values at once.
Try GCD in Viztab
Import your data and use GCD with 370+ other formulas. No signup required.
Open Viztab