We consider a family of pseudohermitian manifolds in two dimensional complex vector space, described by the level sets of a defining function, and give the variation formula of p-mass for this deformation. To obtain this result, we generalize the ambient connection done by Graham and Lee for arbitrary contact form and derive the conformal transformation in this theory.