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.

Your figures

Example result — edit the figures to make it yours

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.

Peak value reached9,232
Sequence shown27 → 82 → 41 → 124 → 62 → 31 → 94 → 47 → 142 → 71 → 214 → 107 → 322 → 161 → 484 → 242 → 121 → 364 → 182 → 91 → 274 → 137 → 412 → 206 → 103 → 310 → 155 → 466 → 233 → 700 → 350 → 175 → 526 → 263 → 790 → 395 → 1186 → 593 → 1780 → 890 → …

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

Even: n ÷ 2 · Odd: 3n + 1 · Repeat until 1

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

Quick reference — varying starting integer
Starting integerSteps from 27 to 1
13.517
21.615
27111
33.7513
40.5109
54112

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.