Studies of flux anomalies statistics and perturbations in stellar streams have the potential to constrain models of warm dark matter (WDM), including sterile neutrinos. Producing these constraints requires a parameterization of the WDM mass function relative to that of the cold dark matter (CDM) equivalent. We use five WDM models with half-mode masses, M-hm = [1.3,35] x 10(8) M-circle dot, spread across simulations of the Local Group, lensing ellipticals and the z = 2 universe, to generate such a parameterization: we fit parameters to a functional form for the WDM-to-CDM halo mass function ratio, (M-X)/n(CDM)(M-X), of (1 + alpha M-hm/M-X)(beta))(gamma). For M-X equivalent to virial mass of central halos we obtain alpha = 2.3, beta = 0.8, and gamma = -1.0, and this fit is steeper than the extended Press-Schechter formalism predicts. For M-X mass equivalent to of subhalos we instead obtain alpha = 4.2, beta = 2.5, and gamma = -0.2; in both mass definitions the scatter is similar to 20%. The second fit typically underestimates the relative abundance of z = 2 WDM subhalos at the tens of percent level. We caution that robust constraints will require bespoke simulations and a careful definition of halo mass, particularly for subhalos of mass <10(8) M-circle dot.