It's unlikely you need a medication. If your osteoporosis is caused by another condition or medication, often treating the underlying condition is enough to improve your bone strength. There are some circumstances where further test and treatment are the best course of action.