Down 67-48, Penn (10-16, 5-4 Ivy League) pulled within 74-66 with four minutes to play. But Harvard, which went 25-of-27 from the free throw line overall, made 13-of-14 free throws in the last 2:39.
Evan Harris had 20 points, 10 rebounds and three blocks, while Drew Housman added eight points, 11 rebounds and eight assists for Harvard (8-18, 3-7).
Penn's Tyler Bernardini, averaging a team-high 13 points, picked up his third foul a minute into the second half but scored nine of his 12 points in the last 12 minutes before fouling out with under a minute to play.
The Crimson shot 60 percent in the first half while holding Penn to 33 percent to take a 45-28 halftime lead.