Skip to content
UniKit

Cuboid volume

Cuboid volume V = a·b·c: enter length, width and depth to get the volume plus base area, surface area, face diagonal and space diagonal; values are rounded to 6 decimals and any non-positive edge is rejected.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Length a

Result

One quantity per line, ready to copy.

Enter a length to calculate

What this tool does

  • Check the volume of a box or package and get the surface area for cardboard, paint or film estimates.
  • Compare volume against surface for different dimension sets to find the cheapest shape.
  • Verify the formulas: surface 2(ab+bc+ca), space diagonal √(a²+b²+c²).

Example

Input

1

Output

长 1 宽 1 高 1 的长方体体积:1
底面积 a·b:1
表面积 2(ab+bc+ca):6
面对角线 √(a²+b²):1.414214
体对角线 √(a²+b²+c²):1.732051
长度单位 u,面积 u²,体积 u³

For 2×3×4 the volume is 24, the surface 52, the face diagonal √13 ≈ 3.605551 and the space diagonal 5 — all exact.

Frequently asked questions

Is a cube a special case?

Yes — set all three values equal and you get a cube: volume a³ and surface 6a².

What is the space diagonal for?

It is the straight-line distance between two opposite corners inside the box, useful for fitting a long pole or a tilted item. For 2×3×4 it is exactly 5.

What if one edge is 0?

It reports an error. With a zero edge the cuboid flattens into a plane and the volume is 0 — the formula still evaluates but the answer is meaningless, so non-positive input is rejected.

Keywords:长方体体积cuboid volume长方体表面积几何计算box volume

Related tools