A bone density test is the only test that can diagnose osteoporosis before a broken bone occurs. This test helps to estimate the density of your bones and your chance of breaking a bone. Our doctors recommend a bone density test of the hip and spine by a central DXA machine to diagnose osteoporosis.