Search for a tool
Tetration

Tool to compute and write tetration, the hyperoperation consisting in raising a number to an iterated power a certain number of times.

Results

Tetration -

Tag(s) : Arithmetics, Notation System

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Tetration' tool for free! Thank you!

Tetration

Tetration Calculator $ {}^b a $



See also: Exponentiation (Power) — Pentation — Knuth's Arrows

Answers to Questions (FAQ)

What is tetration? (Definition)

Tetration (or iterated exponentiation) is a mathematical hyperoperation corresponding to repeated exponentiation. It represents a power tower and is sometimes written as $ {}^b a $ or $ a \uparrow\uparrow b $, where $ a $ is the base and $ b $ is the height of the tower.

$$ {}^b a = \begin{cases} 1 & b = 0 \\ a & b = 1 \\ a^{({}^{(b-1)}a)} & b > 1 \end{cases} $$

Just as multiplication corresponds to repeated addition ($ 2 \times 3 = 2+2+2 $) and exponentiation to repeated multiplication ($ 2^3 = 2 \times 2 \times 2 $), tetration corresponds to repeated exponentiation.

How to calculate tetration?

Tetration consists of raising a base to a power whose exponent is itself a power, thereby forming a power tower.

$$ {}^b a = \underbrace{a_{}^{a^{{}^{.\,^{.\,^{.\,^a}}}}}}_{b} $$

Example: $$ {}^2 3 = 3^3 = 27 \\ {}^3 3 = 3^{3^3} = 3^{27} = 7625597484987 \\ {}^4 3 = 3^{3^{3^3}} = 3^{3^{27}} = 3^{7625597484987} $$

The tower is evaluated from the top down, starting with the highest exponent, or from right to left in the expression.

Example: $$ {}^3 3 = 3^{(3^3)} \neq (3^3)^3 $$

Tetration produces extremely large numbers, whose decimal representation can quickly exceed available computational and memory capacities. The dCode calculator is self-limited to 1 million digits.

What is the relationship between tetration and exponentiation?

Tetration is repeated exponentiation, just as exponentiation is repeated multiplication.

For $ b = 1 $, tetration reduces to the base itself:

Example: $ {}^1 a = a $

For $ b = 2 $, the base is raised to itself:

Example: $ {}^2 a = a^a $

For $ b = 3 $, the base is raised to a power whose value is itself $ a^a $:

Example: $ {}^3 a = a^{a^a} $

What comes after tetration?

After tetration comes pentation, which corresponds to repeated tetration, just as tetration corresponds to repeated exponentiation.

Tetration belongs to the hierarchy of hyperoperations, whose successive ranks are generally presented as follows: addition (1), multiplication (2), exponentiation (3), tetration (4), pentation (5), hexation (6), and so on.

Can decimal or fractional numbers be used?

The dCode calculator is designed for non-negative integer heights. Decimal or fractional numbers are therefore not supported as tetration heights.

Mathematically, extensions of tetration to non-integer heights have been studied, but there is no single universally accepted definition.

Why use tetration?

Tetration makes it possible to represent extremely large numbers whose decimal expansions quickly become impractical to write, even with conventional numerical notation.

How to implement tetration?

Tetration can be implemented recursively using its mathematical definition:

// pseudo-code

function tetration(a, b) {

if (b == 0) return 1

if (b == 1) return a

return a ** tetration(a, b - 1)

}

The height $ b $ must be a non-negative integer.

Source code

dCode retains ownership of the "Tetration" source code. Any algorithm for the "Tetration" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Tetration" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Tetration" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Tetration" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).

Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).

To cite dCode.fr on another website, use the link: https://www.dcode.fr/tetration-calculator

In a scientific article or book, the recommended bibliographic citation is: Tetration on dCode.fr [online website], retrieved on 2026-11-26, https://www.dcode.fr/tetration-calculator

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Tetration' tool for free! Thank you!


https://www.dcode.fr/tetration-calculator
© 2026 dCode — The ultimate collection of tools for games, math, and puzzles.
â–˛  
Feedback