A magic tesseract is a four-dimensional generalization of the two-dimensional magic square and the three-dimensional magic
cube. A magic tesseract of order with entries 1 through has magic constant
so for , 2, ..., the magic tesseract constants are 1, 17,
123, 514, 1565, 3891, ... (OEIS A021003).
Berlekamp et al. (1982, p. 783) give a magic tesseract. J. Hendricks has constructed magic tesseracts of orders three, four, five (Hendricks 1999a, pp. 128-129),
and six (Heinz). M. Houlton has used Hendricks' techniques to construct magic
tesseracts of orders 5, 7, and 9.
There are 58 distinct magic tesseracts of order three with entries 1 through 81, modulo rotations and reflections (Heinz, Hendricks 1999), one of which is illustrated
above. Each of the 27 rows (e.g., 1-72-50), columns (e.g., 1-80-42), pillars (e.g.,
1-54-68), and files (e.g., 1-78-44) sum to the magic
constant 123.
Hendricks (1968) has constructed a pan-4-agonal magic tesseract of order 4. No pan-4-agonal magic tesseract of order five is known, and Andrews (1960) and Schroeppel (1972) state that no such tesseract can exist.
The smallest perfect magic tesseract is of order 16, having magic constant, and has been constructed by Hendricks (Peterson
1999).
-dimensional magic hypercubes of order
3 are known for , 6, 7, and 8 (Hendricks). Hendricks
has also constructed a perfect 16th order magic tesseract (where perfect means that
all hyperplanes are perfect).
In 2003, Christian Boyer constructed the first bimagic and trimagic tesseracts.
R. C. Angelone (pers. comm., Nov. 24, 2026) constructed a magic tesseract with 81 distinct primes.
Each of its 108 axis-parallellines and eight long diagonals joining opposite vertices
has magic constant 3,367,713.