Skipping out on a $2.25 subway fare cost this guy 10 years of his life.

A Manhattan PATH rider was sentenced yesterday to seven years in prison — and another 3 1/2 years’ parole — after cops stopped him for fare-beating and discovered an illegal handgun.

Ruben Sanabria, 37, was caught with a loaded .40-caliber Smith & Wesson at the 14th Street station March 30.

Two cops grabbed him after they saw him hop the turnstile, and quickly found the weapon in his waistband.

Sanabria was also carrying extra bullets and a holster.

He pleaded guilty to criminal possession of a weapon in the second degree, which has a maximum sentence up to 15 years.

Manhattan DA Cyrus Vance Jr. said Sanabria got what he deserved.

“This defendant illegally carried a loaded semiautomatic firearm into a public transportation system used by thousands of people every day,” Vance said.

“Preventing gun violence is one of my top priorities as district attorney, and I will make sure that this office continues to seek strong sentences for crimes involving firearms.”