Commuting accidents occur frequently and at high cost. This study shows that mental work demands of railway staff are related to cognitive failure and risky commuting behaviour such as failing to give way and overlooking stop signs. Primary prevention of commuting accidents should include reduction of mental workload.