A 44-year-old Waldorf man was sentenced to 25 years in prison for the second-degree murder of his stepson last fall.