You can use our formula for the surface area of a rectangular prism for a cube as well. A cube is a rectangular prism where all its sides are the same. The formula to find the surface area of a rectangular prism is A = 2wl + 2lh + 2hw, where w is the width, the l is the length, and the h is the height.