Cube Calculator

The cube is the most economical solid in geometry: one number — the edge — determines everything it has. Enter the edge length and this cube calculator returns the volume, the total surface area, the face diagonal and the space diagonal, with the formula for each.



Four Formulas, One Edge

Everything about a cube is a power or a root of its edge s. Volume V = s³ — the edge cubed, the operation that gave the power its name — counts the unit cubes the solid contains. Surface area = 6s² — six faces, each a square of s² — prices its skin: paint, wrapping, sheet material. Face diagonal = s√2 — the hypotenuse of a face's 45-45-90 triangle, the family's signature from the triangle pages of this hub. Space diagonal = s√3 — the longest straight line inside the solid, corner to opposite corner, found by a second Pythagoras: the face diagonal (s√2) and the rising edge (s) are legs of a right triangle whose hypotenuse is √((s√2)² + s²) = √(3s²) = s√3. The progression s, s√2, s√3 for edge, face diagonal, space diagonal is one of geometry's tidy ladders, and the calculator climbs it in one input. Wolfram MathWorld's cube article catalogues the solid's deeper properties — its symmetry group, its dual (the octahedron), its place among the five Platonic solids.

Worked Example: The Edge-4 Cube

The defaults: s = 4. Volume = 4³ = 64 cubic units. Surface area = 6 × 16 = 96 square units. Face diagonal = 4√2 ≈ 5.6569. Space diagonal = 4√3 ≈ 6.9282. Two checks worth performing until they are reflexes: the space diagonal must be the longest of the lengths (6.9282 > 5.6569 > 4 — it is, since √3 > √2 > 1), and the volume of the edge-4 cube is exactly 64 unit cubes by direct counting — 4 layers of 16 — which is what s³ means before it is a formula. Scale the example once to feel the powers: double the edge to 8 and volume octuples (512 = 8 × 64) while surface merely quadruples (384) — the square-cube law in miniature, the reason small animals lose heat faster than large ones, small boxes are mostly skin, and doubling a storage cube's edge buys eight times the room for only four times the cardboard.

Running It Backwards: From Volume or Area to Edge

Half of real cube problems arrive inverted — a volume to house, a sheet to cut — and the inversions are as clean as the forwards. From volume: the edge is the cube root, s = ∛V (a 125-litre tank's cubical form has edge 5 units, since 5³ = 125; a 1,000 cm³ cube — one litre — has edge exactly 10 cm, the metric system's favourite coincidence). From surface area: s = √(SA/6) — divide by the six faces, root the face. From either diagonal: divide by its root — s = (face diagonal)/√2, s = (space diagonal)/√3; a crate whose space diagonal measures 6.9282 has edge 4, as the defaults verify. Each inversion is one operation because the cube has one degree of freedom, and the calculator's single input box is honest about it: if you know any measurement of a true cube, convert it to the edge by the matching inversion and every other measurement follows. Boxes that are not cubes — the cuboid world — need three edges and their own tools; the cube is the special, perfect case where one number is the whole biography.

Where Cubes Earn Their Keep

The cube is the unit of the volumetric world. Packaging and freight price by volume — the cube's s³ is the shipping container's arithmetic and the "dimensional weight" trick's foundation. Construction orders concrete by the cubic yard and gravel by the same; a cubical excavation 4 yards on an edge is 64 cubic yards before the truck math begins. Science builds on the litre-cube identity (10 cm edge = 1 litre) and on the square-cube law the worked example demonstrated — Galileo's observation that bones, beams and bridges cannot scale naively, because weight (volume, s³) outruns strength (cross-section, s²). Computing thinks in cubes of data (the Rubik's arrangement, voxel grids, cubic arrays) — and the puzzle on the desk is this solid with s = 3 small cubes per edge, 27 of them, its space diagonal the axis of every algorithm written to solve it. Even the language testifies: we say "cubed" for the third power of anything, centuries after the solid lent the operation its name.

Unfolding the Cube: Nets and the Eleven Patterns

Slice a cube's edges and flatten it and you get a net — six squares joined edge to edge — and the combinatorics are a small jewel: there are exactly eleven distinct nets of the cube, no more, a fact children discover by exhausting paper and mathematicians prove by cases. The nets are the surface area made visible (every net of the edge-s cube has area 6s², this page's skin figure in cardboard form), and they run the packaging industry: every carton is a net with flaps, chosen among the eleven families for how it tessellates the sheet and where its glue tabs land. The inverse problem — which arrangements of six squares fold to a cube and which collapse or overlap — is a standard spatial-reasoning exercise with two famous impostors (the 1-5 row and the full 2-4-2's crooked cousin) that look plausible and fail. Hold the eleven in mind the next time a box is broken down for recycling: you are looking at one of eleven patterns that exhausted a mathematical question centuries ago, printed in corrugated board.

Related Tools

More from the Math Calculators hub: the Cylinder Volume Calculator and the Sphere Volume Calculator for the round solids, and the Distance Between Two Points Calculator — the space diagonal's flat ancestor.

Frequently Asked Questions

What is the difference between the face diagonal and the space diagonal?

The face diagonal lies on one square face, corner to corner across the surface — s√2. The space diagonal passes through the solid's interior, corner to the one corner that shares no face with it — s√3, and the longest segment the cube contains. The practical distinction: the face diagonal is the longest object that fits on a face; the space diagonal is the longest object that fits in the box — a fishing rod in a cubical crate is limited by s√3, a fact that has surprised movers in every century.

How many small cubes fit in a big cube?

Divide the volumes, or count per edge and cube the count: an edge-12 cube holds (12/4)³ = 27 edge-4 cubes — the per-edge ratio, cubed, which is the only correct way to compose the two s³ values (dividing volumes gives the same 1,728/64 = 27). The pattern generalises the worked example's scaling law and runs the voxel world: halve the small cubes' edge and eight times as many fit, which is why 3D resolutions are quoted per-axis and why their memory costs explode in threes.

What is the surface-area-to-volume ratio, and why does it matter?

For a cube it is 6s²/s³ = 6/s — at s = 4, exactly 1.5 units of skin per unit of content; at s = 40, only 0.15. The shrinking ratio with size is the square-cube law's working form, and it governs heat loss (radiators and animals), reaction speed (crushed catalysts and kindling), drying, dissolving and cooling across every science: smaller pieces expose more of themselves per unit of inside. The calculator's two headline outputs are the ratio's numerator and denominator — divide them and you hold one of the most consequential numbers in applied geometry.

Is a cube a prism? A cuboid? A polyhedron?

Yes to all three — the cube sits at the centre of a family tree: it is a regular hexahedron (six identical square faces), a special cuboid (all edges equal), a square prism, and one of the five Platonic solids, the only one whose faces tile flat space with copies of itself. The classification matters practically because formulas inherit downward: every cuboid formula (volume l×w×h, surface 2(lw + lh + wh)) must reduce to this page's when l = w = h — set them equal and watch 6s² fall out — a consistency check that catches mis-remembered formulas in any direction.

What are the measurements of a unit cube?

Edge 1 gives the degenerate beauty of the family: volume 1, surface 6, face diagonal √2 ≈ 1.4142, space diagonal √3 ≈ 1.7321 — every formula at its seed value, and the reason the two roots haunt this hub's triangle and solid pages alike. The unit cube is also the definition made solid: a cubic centimetre, a cubic inch, a cubic anything is a cube of that unit edge, so this calculator at s = 1 is quietly defining the volume units every other volume tool on the hub spends.

How do I find the edge if I only know the volume?

Take the cube root: s = ∛V. Perfect cubes announce themselves (∛64 = 4, ∛125 = 5, ∛1000 = 10); imperfect ones land irrational (∛100 ≈ 4.6416) and belong in decimals. Enter the resulting edge here and the remaining measurements follow. The cube root is the third power's inverse in the same way the square root belongs to the square — and the cube, having lent arithmetic its name for the power, lends it for the root as well.