An Iowa woman was hit by a stray bullet on a Brooklyn subway platform when a gunman opened fire from across the tracks, police and law enforcement sources said Wednesday.

The 48-year-old woman, identified by police sources as Jessica Throndson, was standing on the northbound platform inside the Franklin Avenue/Botanic Gardens station in Crown Heights shortly before 10:30 p.m. Tuesday, when the gunman, apparently aiming at a rival, squeezed off several shots in her direction from the opposite platform, cops said.

“It was a stray bullet,” a high-ranking police source said.

The woman was “a tourist in town to attend a graduation ceremony,” NYPD Chief of Detectives said at a press conference Wednesday.

Throndson told investigators she heard two to three shots and felt pain in her left foot, police and sources said.

She was taken to Kings County Hospital for the non-life threatening graze wound and had been released by Wednesday morning, workers there said.

Witnesses described the gunman as a man dressed in a red sweatshirt and black sweatpants.