Skip to content
D DocNectar

Free Collatz Conjecture Calculator

Simulate the Collatz (3n+1) sequence for any starting number, showing every step until it reaches 1.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

The Collatz conjecture (also called the 3n+1 problem) asks a deceptively simple question: starting from any positive number, if you repeatedly halve even numbers and triple-plus-one odd numbers, do you always eventually reach 1? Every number ever tested says yes — but no one has ever proven it's true for all numbers.

This calculator simulates the Collatz sequence for any starting number, showing every step.

How it works

Enter a starting number. The calculator repeatedly applies the Collatz rule — divide by 2 if even, multiply by 3 and add 1 if odd — tracking every value until the sequence reaches 1, and reports the step count and maximum value reached along the way.

  1. Enter starting number.
  2. Click Calculate to see your results.

Examples

Starting from 27

The famously long Collatz sequence starting from 27 takes 111 steps to reach 1, climbing as high as 9,232 along the way before finally descending.

Who should use it

  • Exploring Collatz conjecture behavior for a math enrichment project or coursework.
  • Checking the step count and sequence for a specific starting number.

Industry applications

  • Mathematics education
  • Recreational mathematics and computer science

Advantages

  • Tracks and displays the full sequence, not just the final step count.
  • Reports the maximum value reached, which is often surprisingly higher than the starting number.

Limitations

  • Capped at 10,000 steps as a safety limit — no counterexample has ever been found, so this limit is never expected to be reached in practice.

Common mistakes to avoid

  • Assuming the sequence always decreases steadily — it can climb dramatically higher than the starting number before eventually coming back down (as with 27, which climbs to 9,232).
  • Believing the conjecture has been mathematically proven — it hasn't, despite being true for every number ever tested.

Best practices

  • Try a range of starting numbers to see how unpredictably the step count and maximum value can vary, even between very close starting numbers.

Tips

  • The Collatz conjecture is a popular example in computer science courses of a simple-to-state algorithm whose termination (does it always finish?) is unproven — a good illustration of the difference between "true for every case we've tried" and "proven true in general."

Frequently asked questions

Yes, with no signup and no limit on how many starting numbers you simulate.
No — it remains an unproven, unsolved problem in mathematics. Every starting number ever tested (into the trillions) eventually reaches 1, but no general mathematical proof exists that this holds for every positive integer.
27 is a famous example of a relatively small number with a surprisingly long, high-climbing Collatz sequence — it's often used specifically to illustrate how unpredictable the sequence's length and peak value can be, even for modest starting numbers.
If the current number is even, divide it by 2; if it's odd, multiply it by 3 and add 1. Repeat with the new number until you reach 1.

Get new calculators and guides in your inbox

No spam — just new tools like Collatz Conjecture Calculator and practical guides.

Favorites