Vitamin D deficiency is common in patients with hyperparathyroidism, but the importance of replacement before surgery is controversial. We aimed to evaluate the impact of vitamin D deficiency on the extent of resection and risk of postoperative hypocalcemia for patients undergoing parathyroidectomy for primary hyperparathyroidism.