The hosts were bowled out for 282 in their second innings just before tea on the fourth day.
Skipper Angelo Mathews remained unbeaten on 43. Seamer Wahab Riaz and off-spinner Saeed Ajmal claimed three wickets each.
Sri Lanka won the first Test in Galle by seven wickets.