Cube Calculator

A cube is the simplest of the three-dimensional solids: every edge has the same length, every face is a square, and every angle is a right angle. Because of that uniformity, all four key measurements follow directly from just one input, the side length. This calculator takes the side length and returns the volume, the total surface area, the face diagonal (the diagonal across one square face), and the space diagonal (the longest straight line from one corner of the cube to the opposite corner, passing through the interior). Volume tells you how much the cube can hold and is used in packaging, shipping, and storage calculations. Surface area is needed whenever you are covering or coating the outside, whether painting a box, wrapping a gift, or calculating material cost. The face diagonal matters in woodworking and engineering when you need to know the clearance across a flat surface. The space diagonal is useful when you need to fit the longest object inside a cube-shaped container. You can enter any positive number and the units are consistent throughout, so if the side is in metres the volume will be in cubic metres and the diagonals in metres. The calculator updates the moment you change the input. Results are exact to two decimal places. Use them as a reference for study, checking your own geometry working, or practical projects.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Premium Homes: warmer, drier, healthier. No condensation, ever.
Advertise on this page
units
125
volume (cubic units)
Surface area150
Face diagonal7.07
Space diagonal8.66

How it works

All formulas use the single side length s. Volume is s cubed (s × s × s). Surface area is 6 times s squared because there are six identical square faces. The face diagonal, the line from one corner of a square face to the opposite corner of the same face, is s times the square root of 2. The space diagonal, from one corner of the cube to the farthest opposite corner through the interior, is s times the square root of 3. These are the four essential measurements for any cube-shaped object.

Worked example

With a side length of 5 units: volume = 5 × 5 × 5 = 125 cubic units. Surface area = 6 × 5² = 6 × 25 = 150 square units. Face diagonal = 5 × √2 = 7.07 units. Space diagonal = 5 × √3 = 8.66 units. These match the pre-filled defaults above.

Related calculators