Some antacids contain aluminum hydroxide, which prevents calcium from being absorbed by the body. People who take antacids regularly for a long time have a higher risk of developing osteoporosis.