The data comprise collated data on calcium and magnesium (milligrams per kilogram dry mass) in plants used as human and animal food (including fruit, vegetables, grasses, nuts and seeds) from global literature published between 1982 and 2019. Where reported strontium values are also included. Each data point is referenced. Full details about this dataset can be found at https://doi.org/10.5285/6a0552d9-b9f8-4b5d-809d-47c9bf64ef94