What Is a Hypercube? From Cubes to Tesseracts

A hypercube is the extension of a square and a cube into higher dimensions. Just as a cube is a 3D version of a 2D square, a hypercube (most commonly referring to the 4D version, called a tesseract) is what you get when you push a cube into a fourth spatial dimension. The concept generalizes to any number of dimensions, but the four-dimensional tesseract is the version that captures most people’s curiosity.

Building Up From Lower Dimensions

The easiest way to understand a hypercube is to watch the pattern as you move through dimensions. Start with a point (zero dimensions). Drag that point in one direction and you get a line segment (one dimension). Drag that line segment perpendicular to itself and you get a square (two dimensions). Drag the square perpendicular to its flat surface and you get a cube (three dimensions). Now drag the entire cube in a direction perpendicular to all three of its existing axes, and you get a tesseract, the four-dimensional hypercube.

Each step doubles the number of corners. A point has 1 vertex, a line segment has 2, a square has 4, a cube has 8, and a tesseract has 16. The pattern continues: a 5D hypercube (called a penteract) has 32 vertices, and a 6D hypercube (called a hexeract) has 64.

What a Tesseract Actually Contains

A 4D tesseract is made up of familiar 3D parts, the same way a cube is made up of flat squares. Its full inventory:

  • 16 vertices (corners)
  • 32 edges (line segments connecting corners)
  • 24 faces (all perfect squares)
  • 8 cells (all perfect cubes)

That last number is the most striking. A cube has 6 square faces; a tesseract has 8 cubic “faces,” called cells. Each cell is a full three-dimensional cube, and all eight fit together in 4D space without overlapping, just as the six squares of a cube fit together in 3D without overlapping. Our brains struggle with this because we can’t see all eight cubes simultaneously from inside three-dimensional space, but mathematically, the structure is perfectly consistent.

The General Formula for Any Dimension

Mathematicians describe hypercubes in any number of dimensions using a general formula. For an n-dimensional hypercube, the number of k-dimensional components (corners, edges, faces, and so on) is calculated as:

Q(k, n) = 2^(n−k) × C(n, k)

Here, C(n, k) is the standard “n choose k” combination formula. So for a tesseract (n = 4), the number of edges (k = 1) is 2^(4−1) × C(4,1) = 8 × 4 = 32, which checks out. The formula works for any dimension, which is why mathematicians can calculate the structure of a 10D or 100D hypercube without breaking a sweat. A 6D hexeract, for example, has 64 vertices, 192 edges, 240 square faces, 160 cubic cells, 60 tesseract cells, and 12 penteract cells.

Where the Name Comes From

The word “tesseract” was coined in 1888 by Charles Howard Hinton, a British mathematician fascinated by the fourth dimension. He introduced it in his book A New Era of Thought. Hinton also invented the directional terms “ana” and “kata” (from Greek words meaning “up toward” and “down from”) to describe the two opposing directions along the fourth spatial axis, analogous to left-right, up-down, and forward-backward in our familiar three dimensions.

Hinton’s interest in higher dimensions went beyond pure geometry. In an 1880 article called “What is the Fourth Dimension?”, he suggested that three-dimensional motion could be understood as cross-sections of a static four-dimensional arrangement. This idea anticipated what physicists later called world lines in relativity. He also believed that training yourself to visualize higher-dimensional space required shedding the biases built into our perspective as three-dimensional observers.

How to Picture a 4D Object in 3D

You can’t truly see a tesseract any more than a flat drawing on paper can truly show a cube. But just as you can draw a convincing picture of a cube on a 2D page, you can project a tesseract into 3D (or onto a 2D screen) in useful ways.

The most popular method is the perspective projection, which produces the iconic “cube within a cube” image. Viewed head-on, the nearest part of the tesseract appears as a large outer cube, and the farthest part appears as a smaller cube nested inside it. Eight edges connect the vertices of the outer cube to the corresponding vertices of the inner cube, forming six incomplete pyramid shapes between them. This is the same principle that makes a cube, drawn head-on in 2D, look like a small square inside a large square with four trapezoids connecting their edges.

Another approach is unfolding. You can unfold a cardboard cube into a flat cross made of six squares (its “net”), then fold it back up into 3D. Similarly, you can unfold a tesseract into a 3D cross made of eight cubes. There are 261 distinct ways to unfold a tesseract into 3D, compared to the 11 distinct nets of a regular cube. The most famous of these unfoldings appears in Salvador Dalí’s 1954 painting Crucifixion (Corpus Hypercubus), where a figure is suspended on a cross-shaped arrangement of eight cubes representing an unfolded tesseract.

Beyond Four Dimensions

The tesseract gets the most attention, but hypercubes extend to any number of dimensions. Each step up follows the same construction rule: take the previous hypercube and sweep it in a new perpendicular direction. The naming convention uses Greek-derived prefixes. The 5D version is the penteract. The 6D version is the hexeract. In principle, you can define a hypercube in 50 or 500 dimensions, and the formulas for vertices, edges, and higher-dimensional components still work perfectly.

Higher-dimensional hypercubes are not just mathematical curiosities. They appear in computer science (binary codes map naturally onto hypercube vertices, since each vertex of an n-cube can be labeled with a unique string of n zeros and ones), in optimization problems, and in the design of parallel computing networks. Every time you add a dimension, you double the number of vertices, and each vertex connects to exactly n neighbors, which makes hypercube structures efficient for routing information between processors.

The unit hypercube in any dimension, one unit on each side, always has a volume of exactly 1. That simplicity is part of what makes hypercubes useful as building blocks in higher-dimensional geometry. While spheres in higher dimensions behave in counterintuitive ways (their volume actually shrinks toward zero as dimensions increase), hypercubes remain predictable and well-behaved at any scale.