Maths & numbers

Coprime number check calculator

Check whether the only common positive divisor is 1.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Neither number needs to be prime. For example, 8 and 9 are coprime although both are composite.

THE FORMULATwo numbers are coprime when gcd(a,b) = 1

A worked example

14 and 25 share no prime factors, so they are coprime.

Good to know

Two composite numbers can still be coprime.

Read the result

Check whether the only common positive divisor is 1.

The primary result is labeled “Coprime?”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

Two composite numbers can still be coprime.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

14 and 25 share no prime factors, so they are coprime.

Which rule does this calculator apply?

Two numbers are coprime when gcd(a,b) = 1

Find your calculator

Start typing to explore the library.