We describe a novel variety of spinning-rotor vacuum gauge in which the rotor is a ∼4.7-µmdiameter silica microsphere, optically levitated. A rotating electrostatic field is used to apply torque to the permanent electric dipole moment of the silica microsphere and control its rotational degrees of freedom. When released from a driving field, the microsphere's angular velocity decays exponentially with a damping time inversely proportional to the residual gas pressure, and dependent on gas composition. The gauge is calibrated by measuring the rotor mass with electrostatic co-levitation, and assuming a spherical shape, confirmed separately, and uniform density. The gauge is crosschecked against a capacitance manometer by observing the torsional drag due to a number of different gas species. The techniques presented can be used to perform absolute vacuum measurements localized in space, owing to the small dimensions of the microsphere, as well as measurements in magnetic field environments. In addition, the dynamics of the microsphere, paired with a calibrated vacuum gauge, can be used to measure the effective molecular mass of a gas mixture without the need for ionization, and at pressures up to approximately 1 mbar.