A group of disorders that affect the bones secondary to increased levels of minerals or deficient levels of minerals such as calcium, magnesium, phosphorus, and vitamin D. Representative examples are osteomalacia, osteoporosis, and Paget disease. The disease is metabolic bone disorder (Monarch Disease Ontology identifier MONDO_0800486).