You can put this solution on YOUR website! The volume of a pyramid is given by:
Where: B = area of the base, h = the perpendicular height.
Since you have a square pyramid, the base is a square and its area is s^2, where s = the length of one side of the base.
or