We show that the Parisi formula of the mixed p-spin model is a concave function of the squared inverse temperature. This allows us to derive a new expression for the Parisi formula that involves the inverse temperature and the Parisi measure as Legendre conjugate variables.