The win keeps the O's in the second AL Wild Card spot, with New York slipping to 3 1/2 games back.
Pedro Alvarez turned the power on with a two-out, two-run shot that landed on Eutaw Street. After Manny Machado reached, Chris Davis drove in two more off Yankees reliever Nick Goody and Mark Trumbo added a solo shot to complete the back-to-back effort with Davis. Machado added a two-run blast in the fourth.
Adam Jones, who returned to the lineup for the first time in a week, singled twice and drove in the game's first run.