Avoid taking calcium supplements for at least 24 hours before your bone density test.