He lived at 1 Melville Crescent in Edinburgh's fashionable West End.[5] His next-door neighbour was the eminent surgeon Joseph Bell.
He died in Edinburgh on 10 February 1902. He is buried in Dean Cemetery with his wife Mary Anderson of Bleaton Hallet, and son, Dr Lionel Charles Peel Ritchie. The grave is marked by an obelisk and stands in the south-east section.