You may have used the diameter in the formula for the volume of a sphere. Note that is the correct formula for the volume of a sphere.