As a player he was known for an elegant, attacking style with the bat and for sharp work in the field. He established himself at the top of the Sri Lankan order in the late 1980s and early 1990s. His most famous achievement came against India at Colombo in 1997, when he and Sanath Jayasuriya added 576 runs together. Mahanama scored 225 in that innings, and Sri Lanka finished on 952. Later in his career he moved down to the middle order but remained an important member of the team, and he played a key part in Sri Lanka winning the World Cup in 1996.
His playing career did not end on his own terms. After a poor 1999 World Cup he was left out of the side, and the selectors told him they were building a team for the future. Seeing players older than himself keep their places was difficult for him, and he later wrote an autobiography called Retired Hurt, a title that reflects how he felt about leaving the game. His career averages are not especially high, which do not fully capture his value to the side.
Mahanama then followed his compatriot Ranjan Madugalle into the role of match referee. For more than ten years he was among the most respected officials in the job, became a member of the elite panel, and was one of the referees to have overseen more than 300 matches. He stepped away from the role in September 2015.