Getting plenty of calcium and vitamin D before and after menopause can lower the risk of osteoporosis. Dairy products are a good source of calcium and Vitamin D. Health care providers also may recommend medications. Medications can lower your risk of bone fractures.