Maryland (15-4, 3-3 Atlantic Coast Conference) improved to 13-1 at home despite committing 14 turnovers and shooting only 42 percent. It was the Terrapins' second win in five games after a 13-1 start.
Ryan Anderson scored 19 and Oliver Hanlan had 18 for the Eagles (9-9, 1-4). Boston College has lost four of five, with those defeats coming by a total of 14 points.
During a tight second half, neither team led by more than three points until Layman made a 3-pointer to put Maryland up 48-43 with 9:12 to go, part of a 12-1 run that turned a 43-40 deficit into a 52-44 advantage. Five different players scored in the spree, which began with a 3 by Logan Aronhalt and ended with a dunk by the 7-foot-1 Len.
Colosseum Athletics Men's Maryland Terrapins Black Layup ShortsPrice: $24.99 Shop
Maryland point guard Melo Trimble, considered a lock to leave the program before struggling in the second half last season, has withdrawn from the NBA draft and will return for his junior season.
Louisville's Chinanu Onuaku, who recently underwent a medical procedure to correct a heart rhythm issue detected during the combine, will keep his name in the NBA draft pool.
Andrew White III will return to the Nebraska men's basketball team next season after removing his name from the NBA draft.