ADVERTISEMENT Top Leaderboard Banner Slot (728x90 / Mobile 300x250)

GCD Calculator (Greatest Common Divisor)

Formula

Euclidean Algorithm: GCD(a, b) = GCD(b, a mod b) until b = 0, then GCD is a.

LCM: LCM(a, b) = |a × b| / GCD(a, b)

Examples

FAQ

What is GCD?

The largest positive integer that divides each of the integers without a remainder.

Is GCD the same as HCF?

Yes, Greatest Common Divisor is the same as Highest Common Factor.

What is LCM?

Lowest Common Multiple.

Can GCD be negative?

By convention, GCD is always positive.

ADVERTISEMENT Bottom Banner Slot (728x90 / Large Rectangle)
Advertisement Placeholder