 His father was later Principal of St Andrews University.Forbes was educated at Edinburgh Academy, the University of St Andrews, Christ's College and St Catharine's College, Cambridge.In 1873 he was appointed Professor of Natural Philosophy at Anderson's University, Glasgow, (the nucleus of the University of Strathclyde).