Cube Volume and Surface Area Calculator

A cube is fixed entirely by one number, so tell this calculator any single property — edge length, volume, surface area, face diagonal or space diagonal — and it returns all five. That is useful in both directions: forwards when you know the edge and want the capacity of a box, and backwards when you know the volume of material you have and want the size of cube it makes. Choose your working unit and every answer comes back in it, with squared and cubed units applied where they belong, plus a scaling table that shows how surface area and volume respond when the edge changes.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Which value do you know?Pick the property you have measured; the calculator solves back to the edge length and then forwards to everything else.Edge length (a)
Its valueEnter the number in plain units for a length, in squared units for an area, and in cubed units for a volume.3
Working unitAll five answers come back in this unit, squared for areas and cubed for volumes.feet

It returns

  • Volume — The edge length cubed.
  • Total surface area — Six identical square faces.
  • Edge length
  • Face diagonal — Corner to opposite corner across one square face.
  • Space diagonal — Corner to the furthest corner, straight through the middle of the cube.

The formula

V=a3,A=6a2
a=V3=A6

In plain text: V = a³, A = 6a², face diagonal = a√2, space diagonal = a√3

  • aEdge length of the cube (length)
  • VVolume enclosed (length³)
  • ATotal area of all six faces (length²)

A cube has one degree of freedom, so any single measurement determines every other. All the inverse relations follow by solving these for a.

Updated Category 3D Solids: Volume & Surface Area Verified against published test cases Reading time 9 min

Why one measurement fixes the whole cube

A cube has a single degree of freedom. Every edge is the same length, every face is the same square, and every angle is a right angle, so once you know one dimension there is nothing left to choose. That is why this calculator accepts any of five different measurements and returns the other four — all of them are just the edge length dressed in a different power or a different surd.

The three basic relations follow directly from the shape. Volume is length × width × height, and all three are a, so V = a³. Surface area is six identical squares of area a² each, so A = 6a². The two diagonals come from the Pythagorean theorem: across one face the diagonal spans legs a and a, giving a√2; from one corner to the opposite corner through the interior, the diagonal spans that face diagonal a√2 and the vertical edge a, so its length is √(2a² + a²) = a√3.

Those two surds are worth memorising: √2 = 1.41421356 and √3 = 1.73205081. A cube's space diagonal is always about 73% longer than its edge, which is the number that tells you whether a long object fits diagonally inside a box.

Solving backwards from volume, area or a diagonal

Each forward formula inverts cleanly. From volume, take the cube root: a = ∛V. From surface area, divide by six to recover one face's area and then take the square root: a = √(A/6). From the face diagonal, divide by √2; from the space diagonal, divide by √3. Nothing here needs an iterative solver, which is why the answers are exact to the limits of floating point.

The cube-root case is the one people find awkward by hand, and it is worth knowing the landmarks. ∛1000 = 10, ∛8000 = 20, ∛27000 = 30 — in general, adding three zeros to the volume multiplies the edge by ten. So a cubic yard is 27 cubic feet because 3³ = 27, and a cubic metre is 1,000 litres because a metre is 10 decimetres and 10³ = 1,000.

Be careful with units when you work backwards. A volume typed in cubic inches gives an edge in inches; a volume typed in cubic feet gives an edge in feet. Because the conversion factor is cubed, mixing the two is expensive: 1 ft³ is 1,728 in³, not 12. The unit selector on this page keeps all five outputs consistent with whatever you chose, so the only thing you have to get right is entering the number in the matching power.

Worked example: sizing a cubic tank to hold 500 gallons

You need a cubic tank holding 500 US gallons. Find the internal edge length, the surface area to be coated, and the longest straight object it can swallow.

  1. Convert to cubic feet. One cubic foot is 1,728/231 = 7.480519 US gallons, so 500 ÷ 7.480519 = 66.8403 ft³.
  2. Take the cube root. a = ∛66.8403 = 4.0583 ft, which is 4 ft 0.7 in.
  3. Check it forwards. 4.0583³ = 66.840 ft³, and 66.840 × 7.480519 = 500.0 gallons.
  4. Find the surface area. A = 6 × 4.0583² = 6 × 16.4698 = 98.82 ft² of internal coating.
  5. Find the space diagonal. D = 4.0583 × 1.7320508 = 7.029 ft, so a straight rod up to about 7 feet long fits inside corner to corner.

Now run it the other way to see how sensitive the volume is. Round the tank up to a 4 ft 6 in cube, so a = 4.5 ft: the volume jumps to 91.125 ft³ = 681.7 gallons. A 10.9% increase in edge length produced a 36.3% increase in capacity, because 1.109³ = 1.363. That is the square-cube law at work, and it is why small changes in a container's linear size have such large effects on what it holds.

How to read the scaling table

The table under the results shows the same cube at half, one, two and three times the edge length. Look across the rows and the pattern is exact: multiply the edge by k, and the surface area is multiplied by k² while the volume is multiplied by k³. Doubling the edge gives four times the area and eight times the volume.

The practical consequence is the surface-area-to-volume ratio, which for a cube is 6a²/a³ = 6/a. It falls as the cube grows. A 1-inch ice cube has 6 square inches of surface per cubic inch of ice; a 6-inch block has 1. That is why crushed ice melts far faster than a block of the same total mass, why small animals lose body heat more quickly than large ones, and why a chemical reactor's cooling problem gets harder as you scale it up.

The same ratio drives packaging economics in the other direction. Material cost tracks surface area while the goods shipped track volume, so a bigger box uses proportionally less cardboard per unit of contents. Among all rectangular boxes of a given volume, the cube is the one with the least surface area, which is why the cube is the reference shape any packaging comparison starts from. Compare with the rectangular prism calculator to see how much a long, thin box costs you.

Cube properties at common edge lengths

Every row is a³, 6a², a√2 and a√3 evaluated at the stated edge, using √2 = 1.41421356 and √3 = 1.73205081.
Edge aVolume a³Surface area 6a²Face diagonalSpace diagonal
1161.41421.7321
28242.82843.4641
327544.24265.1962
464965.65696.9282
51251507.07118.6603
62162168.485310.3923
851238411.313713.8564
101,00060014.142117.3205
121,72886416.970620.7846

At an edge of exactly 6 the numerical values of volume and surface area coincide at 216, which is a coincidence of units, not a geometric property — it happens where 6/a = 1.

Mistakes and limits

  • Cubing a unit conversion linearly. One foot is 12 inches, so one cubic foot is 12³ = 1,728 cubic inches. Converting a volume with the linear factor understates it by a factor of 144.
  • Confusing the two diagonals. The face diagonal a√2 lies flat on one side; the space diagonal a√3 goes through the interior. For fitting an object into a box, the space diagonal is the one that matters.
  • Using internal and external dimensions interchangeably. A tank's capacity comes from internal dimensions; its material area comes from external ones. Wall thickness matters for both.
  • Assuming the diagonal guarantees a fit. A rigid rod exactly as long as the space diagonal only fits along that one line, and only if it is infinitely thin. Any real thickness needs a shorter rod.
  • Treating a rectangular box as a cube. If the three dimensions differ at all, use the rectangular prism calculator instead; there is no single edge to work from.

Where the cube sits among the solids

The cube is one of the five Platonic solids, the only convex polyhedra whose faces are all identical regular polygons meeting identically at every vertex. It is the only one that tiles space by itself, which is why it is the shape of choice for anything that has to stack without waste, from shipping containers to sugar cubes to voxel grids.

Among all closed surfaces of a given area, the sphere encloses the most volume; among all rectangular boxes of a given volume, the cube uses the least material. Compare a cube of edge 4.0583 ft with a sphere of the same 66.84 ft³ volume: the sphere's surface area is 79.6 ft² against the cube's 98.8 ft², about 19% less. Spheres win on material, cubes win on stacking, and that trade-off explains most packaging decisions.

For volumes that are not cubes, the sibling calculators are the ones you want: the cylinder volume calculator for round tanks and pipes, the cone volume calculator for hoppers and stockpiles, and the triangular prism volume calculator for wedges and gable spaces.

Frequently asked questions

What is the formula for the volume of a cube?

V = a³, where a is the edge length. Because all three dimensions of a cube are equal, length × width × height collapses to a single cube of the edge. An edge of 3 gives a volume of 27; an edge of 10 gives 1,000. Reversing it, the edge is the cube root of the volume.

How do I find the edge length from the volume?

Take the cube root: a = ∛V. For a volume of 1,000 cubic feet the edge is 10 feet, and for 66.84 cubic feet it is 4.058 feet. On a calculator use the x^(1/3) key or raise to the power 0.333333. Enter the volume above with Volume selected and the calculator does it and shows the arithmetic.

What is the surface area of a cube?

A = 6a², because a cube has six identical square faces of area a² each. An edge of 4 gives 6 × 16 = 96 square units. Going the other way, the edge is √(A/6), so a surface area of 96 comes back to an edge of 4.

What is the diagonal of a cube?

There are two. The face diagonal, across one square side, is a√2 = 1.4142a. The space diagonal, from one corner through the middle to the opposite corner, is a√3 = 1.7321a. For a 3-foot cube those are 4.243 ft and 5.196 ft. The space diagonal is the longest straight line that fits inside the cube.

How many cubic feet are in a cubic yard?

27, because a yard is 3 feet and 3³ = 27. The same cubing rule gives 1,728 cubic inches in a cubic foot (12³) and 1,000 litres in a cubic metre. Converting volumes with the linear factor instead of its cube is the most common unit error in this topic.

Why does a small ice cube melt faster than a big one?

Because the surface-area-to-volume ratio of a cube is 6/a, which shrinks as the cube grows. A 1-inch cube has 6 square inches of surface for every cubic inch of ice; a 6-inch block has only 1. Melting happens at the surface but the ice to be melted is a volume, so smaller pieces melt disproportionately faster.

What size cube holds 500 gallons?

About 4.06 feet on a side. Convert 500 US gallons to 66.84 cubic feet by dividing by 7.480519, then take the cube root to get 4.0583 ft, which is 4 ft 0.7 in internally. Its total internal surface is 98.8 square feet, and the longest rigid object it can hold is its space diagonal of 7.03 feet.

Is a cube the most efficient box shape?

Among rectangular boxes of a fixed volume, yes: the cube minimises the surface area, so it uses the least material. A sphere of the same volume does better still — roughly 19% less surface — but spheres do not stack or sit on shelves. The cube is the best compromise between material efficiency and packing, which is why it dominates packaging design.

References