After blowing lead in 9th inning, Carpenter sends Cardinals to 5-2 win over Royals in 11

St. Louis Cardinals starting pitcher Adam Wainwright delivers to a Kansas City Royals batter during the first inning of a baseball game at Kauffman Stadium in Kansas City, Mo., Wednesday, June 4, 2014. (AP Photo/Orlin Wagner) (The Associated Press)

St. Louis Cardinals' Mark Ellis (3) beats the tag by Kansas City Royals shortstop Alcides Escobar (2) during the second inning of a baseball game at Kauffman Stadium in Kansas City, Mo., Wednesday, June 4, 2014. Ellis was safe with a stolen base. (AP Photo/Orlin Wagner) (The Associated Press)

Matt Carpenter had a career-high five hits, including the go-ahead double in the 11th inning, and the St. Louis Cardinals beat the Kansas City Royals 5-2 on Wednesday night to snap a three-game losing streak.

After the Royals rallied with two runs in the ninth, Peter Bourjos worked a one-out walk off Royals reliever Kelvin Herrera (1-2) in the 11th. Carpenter then rapped his double to center field, drawing a roar from a crowd comprised mostly of Cardinals fans.

Allen Craig added a two-run single off Tim Collins later in the inning, and Pat Neshek breezed through the bottom half to end the Royals' six-game winning streak against National League clubs.

Sam Freeman (1-0) earned the win with a perfect 10th inning.