The W boson mass is measured using proton-proton collision data at corresponding to an integrated luminosity of 16.8 inverse fb recorded during 2016 by the CMS experiment. The W boson mass is obtained from a fit of the two-dimensional pT-η distribution in a sample of W→μν decays, categorized by charge, yielding one of the most precise measurements of the W mass to date.