To diagnose osteoporosis and assess your risk of fracture and determine your need for treatment, your doctor will most likely order a bone density scan. This exam is used to measure bone mineral density (BMD). It is most commonly performed using dual-energy x-ray absorptiometry (DXA or DEXA) or bone densitometry.