Most people with osteoporosis will need some form of prescription medication. If you have an osteoporosis-related fracture, you will need a medication to help your bones recover and to prevent future fractures. If you've learned you have low bone density but don't have a fracture, you may take a medication to help prevent fractures and further bone loss.