Sonic is 16. Sega has stated that outright, even though the games themselves almost never mention it. He has been running since 1991 on the Sega Genesis, which is why fans sometimes joke that he is ancient.
A popular fan calculation tries to age him using Sonic X, where Sonic's world and the human world run at different speeds. Sonic is 15 when the show begins in 2003, and because a year in our world works out to roughly a month in his, the argument goes that only about seven months passed for him.
Add the six months he spent in Chris's world and the months spent fighting, and you land somewhere near 16 years and 7 months, with 18 still a long way off. Fun arithmetic, but the official answer stays 16.