Volume of a Rectangle Calculator
Input Parameters
Computed Results
The volume of a rectangle calculator determines the three-dimensional space enclosed by a rectangular prism or box. By entering the length, width, and height, you can quickly find the total volume, surface area, base area, and space diagonal in your preferred units of measurement.
Practical Use Cases
Calculating the volume of a rectangular prism is a fundamental geometric step used across various practical applications:
- Shipping and Packaging: Determining the cubic capacity of a box or shipping container to optimize freight space.
- Construction and HVAC: Calculating the total cubic volume of a room to size heating, ventilation, and air conditioning systems appropriately.
- Aquariums and Tanks: Converting the physical dimensions of a glass tank into liquid capacity, such as gallons or liters.
- Landscaping: Estimating the amount of soil, mulch, or concrete needed to fill a rectangular planter or foundation.
Formula and Calculation Method
To find the volume of a rectangular prism, multiply its three primary dimensions together. The calculator also determines the surface area, base area, and the space diagonal (the longest straight line inside the box from one corner to the opposite corner).
The secondary measurements are calculated using the following formulas:
- Base Area: Length × Width
- Surface Area: 2 × ((Length × Width) + (Length × Height) + (Width × Height))
- Space Diagonal: √(Length² + Width² + Height²)
The calculator standardizes all input dimensions into meters before calculating the surface area, base area, and space diagonal. This means those specific outputs are always displayed in square meters (m²) and meters (m), while the primary volume result is converted into your chosen output unit.
Verified Calculation Examples
Here are two examples demonstrating how the calculator processes different dimensions and units:
Example 1: Standard Room Size
If you are measuring a room to determine its cubic footage for an air purifier:
- Length: 12 ft
- Width: 10 ft
- Height: 8 ft
- Output Unit: Cubic Feet (ft³)
- Calculated Volume: 960 ft³
- Surface Area: 54.9986 m²
Example 2: Aquarium Volume Conversion
If you are building a custom fish tank and need to know its capacity in US gallons:
- Length: 36 in
- Width: 18 in
- Height: 24 in
- Output Unit: US Gallons
- Calculated Volume: 67.3247 gallons
- Space Diagonal: 1.1903 m
How to Use the Calculator
- Enter the Length, Width, and Height of your rectangular object.
- Select the corresponding unit of measurement for each dimension (e.g., centimeters, inches, feet).
- Choose your desired Output Unit for the final volume calculation.
- Review the results. The calculator will display the volume in your selected unit, alongside the surface area, base area, and space diagonal in metric units.
Inputs and Outputs Reference
| Field | Type | Description |
|---|---|---|
| Length (l) | Input | The longest side of the rectangular base. |
| Width (w) | Input | The shorter side of the rectangular base. |
| Height (h) | Input | The vertical dimension of the prism. |
| Output Unit | Input | The unit of measurement for the final volume result (e.g., cm³, m³, gallons). |
| Volume | Output | The total three-dimensional space enclosed by the object. |
| Surface Area (m²) | Output | The total area of all six outside faces of the prism, expressed in square meters. |
| Base Area (m²) | Output | The two-dimensional area of the bottom face, expressed in square meters. |
| Space Diagonal (m) | Output | The distance between two opposite corners through the center of the prism, expressed in meters. |
Frequently Asked Questions
What is the difference between a rectangle and a rectangular prism?
A rectangle is a flat, two-dimensional shape with only length and width. A rectangular prism (or cuboid) is a three-dimensional object that adds height, allowing it to hold volume.
Why are the surface area and space diagonal results displayed in meters?
To maintain consistency across complex conversions, the calculator standardizes all input dimensions into meters before computing the secondary outputs. Therefore, surface area and base area are always provided in square meters (m²), and the space diagonal is provided in meters (m).