It was Ferrer's 13th consecutive victory over his Spanish Davis Cup teammate.
Almagro served for the match in the 10th game of the third set and the 10th and 12th games of the fourth set, but was broken each time by Ferrer.
The fourth-seeded Ferrer will play either top-ranked Novak Djokovic, the defending champion, or Tomas Berdych in the semifinals.
More Sports Headlines
Snohomish mixed martial artist returns to her first love Mariners beat Twins 4-3 in 11 innings Charles scores 29 points, Liberty beat Storm 78-62 Park wins Women's British Open, captures 4th different major Perry wins 2nd straight Champions Tour's 3M Championship Merritt shoots 67 to win Quicken Loans National by 3 shots Triple Crown winner American Pharoah wins $1.75 million Haskell Invitational Bills' Ryan names Incognito starting left guard
Our new comment system is not supported in IE 7. Please upgrade your browser here.