The basic unit used to measure mass in the metric system is the gram.