Bone mineral density is the amount of bone mineral in bones, which is measured by an X-ray. A bone mineral density test is performed when bones become weaker, which may result in osteoporosis or fractures. These tests are noninvasive, painless, and require no administration of medication.