Collatz Sequence Calculator
Enter a positive integer to see its full Collatz sequence, step count, and peak value.
Use the Collatz Sequence Calculator
Starting Number
Quick examples
Steps
—
Peak Value
—
Peak at Step
—
Enter a number and click Generate
The full Collatz sequence will appear here
Sequence
Copied!
Summary
The Collatz Sequence Calculator applies the 3n+1 rule to any positive integer and traces every step until the value reaches 1. It displays the complete sequence, the total step count, and the highest value (peak) encountered along the way. The tool runs entirely in your browser with no server calls.
How it works
- Enter any positive integer in the input field.
- The tool applies the Collatz rule: if the number is even, divide by 2; if odd, multiply by 3 and add 1.
- Each result becomes the next input until the value reaches 1.
- The full sequence is displayed step-by-step with the total number of steps and the peak (maximum) value reached.
Use cases
- Explore the unsolved Collatz conjecture for specific numbers.
- Compare how many steps different numbers take to reach 1.
- Find the peak value a sequence hits before descending to 1.
- Visualize the hailstone behavior of integers for math class or research.
- Test whether large numbers eventually reach 1 (they all do, so far).
Frequently Asked Questions
Last updated: 2026-06-11 · Reviewed by Nham Vu