He died at Morland Cottage, near the foot of Blackford Hill on the south side of Edinburgh, on 11 October 1846. He is buried in Greyfriars Kirkyard in central Edinburgh. The grave lies in the western extension against the far west wall.