Cube & Rectangular Prism Volume Calculator
Input Parameters
Computed Results
The Cube & Rectangular Prism Volume Calculator determines the total three-dimensional space enclosed by a cube or box. By entering the side lengths, you can quickly find the volume in your preferred unit, along with the surface area and space diagonal.
Verified Scenario Walkthroughs
Here are a few examples of how the calculator determines volume based on different shapes and dimensions.
Small Cube in Centimeters
If you have a cube with a side length of 15 centimeters, the calculator determines the primary volume is 3,375 cm³. The surface area is 0.135 m², and the space diagonal is 0.2598 meters. In other units, this equals 3.38 liters or 0.89 US gallons.
Standard Shipping Box in Inches
For a rectangular prism (box) measuring 18 inches in length, 12 inches in width, and 12 inches in height, the volume is 1.5 cubic feet. The surface area is 0.7432 m², and the space diagonal is 0.6284 meters. This box holds 42.48 liters or 11.22 US gallons.
Large Storage Container in Meters
A large storage container measuring 5.5 meters long, 2.5 meters wide, and 3.0 meters high has a volume of 41.25 m³. The surface area is 75.5 m², and the space diagonal is 6.7454 meters. This equals 41,250 liters or 1,456.73 cubic feet.
Small Aquarium Volume in Gallons
An aquarium measuring 24 inches long, 12 inches wide, and 12 inches high has a volume of 14.961 US gallons. The surface area is 0.929 m², and the space diagonal is 0.7466 meters. This equals 56.63 liters or 2 cubic feet.
Formula & Explanation
The calculator uses standard geometric formulas to determine the volume, surface area, and space diagonal. All input dimensions are first converted to meters to ensure consistent calculations.
For a rectangular prism, the volume formula is:
For a cube, since all sides are equal, the formula simplifies to:
The surface area (in square meters) is calculated as:
The space diagonal (the distance from one corner to the opposite corner through the center) is calculated using the 3D Pythagorean theorem:
How to Use the Calculator
Follow these steps to calculate the volume of your shape:
- Select the shape type: either a cube or a rectangular prism (box).
- Enter the side length (for a cube) or the length (for a box) and select the unit of measurement.
- If calculating for a box, enter the width and height, along with their respective units.
- Select your preferred output volume unit (e.g., cubic meters, liters, cubic feet).
- Review the calculated volume, surface area, space diagonal, and alternative volume conversions.
Inputs & Outputs Table
| Input/Output | Description |
|---|---|
| Shape | Select whether you want to calculate the volume of an equilateral cube (edge a) or a rectangular prism (box). |
| Side Length (a) / Length (l) | The edge length of the cube, or the length of the rectangular prism. |
| Width (w) [For Box] | The width of the rectangular prism (ignored if shape is Cube). |
| Height (h) [For Box] | The height of the rectangular prism (ignored if shape is Cube). |
| Preferred Output Volume Unit | The unit for displaying the primary volume result. |
| Calculated Volume | The total volume in your selected output unit. |
| Surface Area (m²) | The total exterior surface area of the shape in square meters. |
| Space Diagonal (m) | The distance between opposite corners through the center of the shape in meters. |
| Volume (Liters) | The volume converted to liters. |
| Volume (Cubic Feet) | The volume converted to cubic feet. |
| Volume (US Gallons) | The volume converted to US gallons. |
Practical Use Cases
Calculating the volume of a cube or rectangular prism is useful in various practical scenarios. You can use it to determine the capacity of a shipping box, calculate the amount of water needed to fill an aquarium, or estimate the storage space inside a container or room. It is also helpful for converting dimensions measured in one unit (like inches) into a volume measured in another (like gallons or liters).
Frequently Asked Questions
What is the difference between a cube and a rectangular prism?
A cube is a special type of rectangular prism where all three dimensions (length, width, and height) are exactly the same. A rectangular prism can have different measurements for its length, width, and height.
How does the calculator handle different input units?
The calculator converts all input dimensions (such as inches, centimeters, or feet) into meters before performing the calculations. It then converts the final volume from cubic meters into your preferred output unit.
What is a space diagonal?
The space diagonal is the straight-line distance from one corner of the shape to the opposite corner, passing directly through the center of the 3D space.