Home · Everyday · Sequences & Series · Collatz Conjecture Calculator
Collatz Conjecture Calculator
The Collatz sequence from your starting number — steps to 1 and the peak reached on the way.
What this calculator does
The Collatz sequence from your starting number — steps to 1 and the peak reached on the way. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Terms are counted from the first term a₁ (for Fibonacci, F₀ = 0 and F₁ = 1).
Closed-form formulas are used where they exist, so large indices stay fast and exact.
A geometric ratio of exactly 1 is handled as the constant-sequence special case.
Worked example
With the example inputs this page opens with (starting integer 27), the result is 111 — steps from 27 to 1. The Collatz rule: halve when even, 3n + 1 when odd. Every starting value ever tested reaches 1 — that it always does is the famous unproven Collatz conjecture.
Quick reference
| Starting integer | Steps from 27 to 1 |
|---|---|
| 13.5 | 17 |
| 21.6 | 15 |
| 27 | 111 |
| 33.75 | 13 |
| 40.5 | 109 |
| 54 | 112 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Collatz Conjecture Calculator work?
The Collatz sequence from your starting number — steps to 1 and the peak reached on the way. Starting n → Steps and peak. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Collatz Conjecture Calculator need?
Starting n → Steps and peak. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Collatz Conjecture Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.