The Los Angeles Angels are doing their part to tighten up the AL wild-card race.

David Freese hit a go-ahead two-run double in a three-run eighth inning to help the Angels rally for a 6-5 win over the Astros on Wednesday.

Los Angeles took two of three in the series to close within 1½ games of Houston for the second AL wild-card spot.

"We're staying focused," Angels slugger Albert Pujols said, "know what we need to do, don't try to force it, just do our job and win series."

The Angels trailed 4-3 entering the eighth. Mike Trout hit a leadoff double off Will Harris before David Murphy drew a walk with one out, and Harris was replaced by former Twin Pat Neshek.

Freese's double sailed just beyond left fielder Colby Rasmus' reach on the warning track and made it 5-4.

"I started praying that the juice box was small enough for it to go off the wall," Freese said, using a nickname for Minute Maid Park. "But yeah, I clipped it, and it just went far enough out of reach of Rasmus. So it ended up being good for us."

Carlos Perez's RBI single made it 6-4 and chased Neshek.

Trevor Gott (3-2) induced the last two outs of the seventh for the win. Huston Street allowed one run in the ninth before retiring Jed Lowrie for his 40th save.

"We're playing a lot better baseball as we made the turn into September than we did in August," Los Angeles manager Mike Scioscia said.

George Springer had three RBI and Carlos Correa two for the Astros, who are heading into a pivotal weekend series with AL West-leading Texas.

"We're taking a few body blows this month and we'll respond favorably, we always have," manager A.J. Hinch said. "It doesn't make tonight any easier, but we'll dust ourselves off."