A cylinder fits inside a square prism as shown. For every cross section, the ratio of the area of the circle to the area of the square is StartFraction pi r squared Over 4 r squared EndFraction or StartFraction pi Over 4 EndFraction. A cylinder is inside of a square prism. The height of the cylinder is h and the radius is r. The base length of the pyramid is 2 r. Since the area of the circle is StartFraction pi Over 4 EndFraction the area of the square, the volume of the cylinder equals