Your bone density can be measured by a machine that uses low levels of X-rays to determine the proportion of mineral in your bones. During this painless test, you lie on a padded table as a scanner passes over your body. In most cases, only a few bones are checked — usually in the hip, wrist and spine.