Astronomers have come up with a new and improved method for measuring the masses of millions of solitary stars, especially those with planetary systems.