Calcium and magnesium are minerals with important functions throughout the body. The deficiency has been associated with an increased risk of cardiovascular disease, diabetes, and prostate cancer, and affects the skin and teeth. Some studies have associated it with osteoarthritis. Knee osteoarthritis is a degenerative pathology with a high prevalence that affects the knee joint, and prevention is necessary in the context of the lack of understanding of pathophysiology. The role of serum calcium and magnesium levels was considered in this regard. The study included a group of 371 hospitalized patients for unilateral or bilateral knee pain, of whom 326 patients had knee osteoarthritis and were the subject of the research. The risk factors such as age, gender, body mass index, weight status, and certain anatomical changes were analyzed, including the varus and valgus alignment. The results show the inverse relationship of Ca values with the radiological classification of knee osteoarthritis and the importance of risk factors such as age, gender, and obesity for the onset and progression of the pathology. Serum Mg values were not statistically significant in this study group