Johnny Damon added a two-run homer, Bill Mueller had three hits and two RBI, and John Olerud also drove in two runs for Boston, which remained tied with the New York Yankees atop the American League East.
Ramirez has 41 homers for the season and is tied with former Oriole Cal Ripken Jr. for 34th on the all-time homer list with 431.
The Red Sox have won four of their last seven. Winning pitcher David Wells rose to 14-7.
Notable deaths of 2014 [PHOTOS]