Rectangular Prism Volume Calculator
This rectangular prism volume calculator multiplies length × width × height for any box, room, aquarium or rectangular tank, and converts the answer to liters and US gallons. It also gives the surface area. The answer updates as you type.
Rectangular Prism Volume Calculator
Rectangular prism formula
V = l × w × h Surface area = 2(lw + lh + wh) US gallons = cubic feet × 7.4805 or cubic inches ÷ 231A rectangular prism (also called a cuboid or simply a box) is the shape of most rooms, boxes, raised beds and tanks. Its volume is the area of the floor, l × w, times the height. Think of it as layers of unit cubes: the floor holds l × w of them and there are h layers.
Worked example: a rectangular water tank
A tank is 6 ft long, 3 ft wide and 2 ft deep.
V = 6 × 3 × 2 = 36 ft³ 36 ft³ × 28.3168 = 1,019.41 liters 1,019.41 ÷ 3.785 = 269.3 US gallonsIt holds 36 ft³, which is 1,019.41 liters or 269.3 US gallons. Its surface area is 2(18 + 12 + 6) = 72 ft², the area of liner or sheet metal to cover every face.
Rooms, soil and water
- Rooms. Volume in cubic feet is used to size air conditioners, dehumidifiers and air purifiers. A 12 × 10 ft room with an 8 ft ceiling is 960 ft³.
- Raised beds and concrete. Soil and concrete are sold by the cubic yard: divide cubic feet by 27. The cubic yard calculator and concrete calculator do this with depth in inches.
- Liquid depth. For a tank that isn't full, use the depth of the liquid as the height.
For other shapes, the volume calculator has a quick calculator for each one, and links to its own page.
Frequently asked questions
How do you find the volume of a rectangular prism?
Multiply its three dimensions: V = l × w × h. A tank 6 ft long, 3 ft wide and 2 ft deep holds 36 cubic feet.
How many gallons does a rectangular tank hold?
Multiply the cubic feet by 7.48, or the cubic inches by 0.004329. The 36 cubic foot tank holds about 269.3 US gallons. For an aquarium measured in inches, a 30 × 12 × 18 in tank is 6,480 cubic inches, about 28 gallons.
Does it matter which side is the length?
No. Multiplication doesn't care about order, so any side can be the length, width or height. Just keep them all in the same unit.
See also
- Cube Volume Calculator: Volume and surface area of a cube from one edge.
- Cylinder Volume Calculator: Volume of a cylinder or round tank from radius and height.
- Pyramid Volume Calculator: Volume, slant height and surface area of a square pyramid.
- Tube Volume Calculator: Volume of a pipe's wall and how much the pipe holds.
Last updated: November 28, 2026