A drunken woman fell onto the subway tracks as an L train barreled into Manhattan’s Sixth Avenue station Tuesday — but miraculously walked away unscathed thanks to a quick-thinking good Samaritan.

Brooklynite Jaime Goshen, 34, described her frantic efforts to pull the unidentified woman back onto the platform after she fell onto the Eighth Avenue-bound tracks around 3 p.m.

“I had maybe seven seconds to make any type of action. I’m trying to grab her under her armpits, but she was super heavy and she wasn’t really letting me help her,” Goshen told The Post, adding the woman was a dead weight and appeared to be drunk.

As other passengers screamed at the train operator to slow down, Goshen realized she couldn’t do anything else and instinctively pushed the woman down into the crawl space under the platform next to the tracks.

“I had to close my ears and turn around because I thought it was over for that woman,” she said. “It was a horrible feeling to think someone just left your arms and went to the next plane.”

But the woman was unharmed as the train pulled in over her.

Straphangers realized she was OK when they saw her raise an arm through the gap separating the train and platform.

Footage of the dramatic rescue posted to Facebook shows the woman, who was alone in the train station, peering through the gap as emergency crews try to free her.

“Do not touch any part of the train!” crews can be heard commanding.

A passerby can be heard on the footage quizzically shouting, “How did that happen?”

A source familiar with the incident told The Post that the woman was intoxicated and fell onto the tracks before FDNY crews rushed to the scene at 3:05 p.m.

Workers shut off power to the third rail while crews worked to free the woman before moving the train involved in the incident off the tracks.

The MTA issued an alert a 3:13 p.m. announcing L trains were suspended in both directions but later restored service.

The victim was taken to Bellevue Hospital for evaluation, sources said.

“I’ve never experienced anything like that in my life,” Goshen said.

“I’m just truly thankful she is alive. It would have been traumatic for everyone on that platform.”