General formula for all pointed spatial figures (e.g. pyramid, cone) is given as:
V = 1/3bh
where b is the area of the base and h is the altitude or the height perpendicular with the horizontal.
-----------------
Since the base of a cone is circle then 'b' can be expressed as:
b = πr²
or you'll have the formula for the volume of the cone as:
V = 1/3 π r² h