Greatest common divisor calculator

The greatest common divisor is non-negative.

Your inputs

Separate numbers with commas or spaces.
Input format

Use this format with your own values:

12,18,30

Use the units shown.

GCD
6

Your calculation
How is this calculated?

The greatest common divisor is non-negative. GCD of all zeros is zero.

Try an example

Worked example

GCD: 6

Inputs
  • Integers: 12,18,30

Compare inputs

GCD: 12

Inputs
  • Integers: 24,36,60
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.