Maths & numbers

Collatz stopping time calculator

Trace the Collatz iteration and count steps to 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

Trace the Collatz iteration and count steps to 1.

THE FORMULAEven n→n/2, odd n→3n+1

A worked example

13 goes to 40, 20, 10, 5, 16, 8, 4, 2 and 1.

Good to know

The search stops at 10,000 steps.

Read the result

Trace the Collatz iteration and count steps to 1.

The primary result is labeled “Steps to reach 1”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

The search stops at 10,000 steps.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

13 goes to 40, 20, 10, 5, 16, 8, 4, 2 and 1.

Which rule does this calculator apply?

Even n→n/2, odd n→3n+1

Find your calculator

Start typing to explore the library.