OAKLAND, Calif. — Brandon Moss hit a two-run homer and a bases-empty shot for his third career two-homer game, and the Oakland Athletics beat the Yankees, 5-2, on Wednesday night.

Moss’s power stroke helped Dan Straily (4-2) win his third straight decision.

Moss hit his 10th homer in the second inning and 11th with a bases-empty drive in the eighth. He also connected twice on April 29 against the Angels. Of his five hits over 40 at-bats in his last 19 games, all are home runs.

John Jaso added an R.B.I. double and a run-scoring single in Oakland’s 10th consecutive home victory. The Athletics (40-27) won for the 20th time in 25 games and are off to their best start since 1990.