Severus Snape was 31 years old in Harry Potter and the Sorcerer's Stone.
How We Know
Snape's birth year: 1960 (mentioned in the books).
Harry's birth year: July 31, 1980.
Sorcerer's Stone setting: Events take place in 1991, when Harry is 11.
Snape's age: 1991 minus 1960 equals 31.