Myalgia due to statins may have multiple causes that interact with each other. Though the exact mechanism is not well understood, one study from 2019 found that statins cause calcium leaks from storage compartments in muscle cells. This can cause damage to muscle cells, sometimes leading to muscle pain.