where A is the area of the base (or cross-section) of the prism and H is the height.
The rule for finding the volume of a prism is the same no matter what polygon forms the base. Of course, how you find the area of the base will depend on the polygon that forms the base.