Though Red Line delays are in no way foreign to Cambridge MBTA riders, a study finds that public transit in Cambridge is pretty top-notch. According to a new study by real estate site Redfin, Cambridge ranks as the best midsized city in the country for public transit.

Redfin determined a transit score for cities with populations between 100,000 and 300,000 by calculating how useful public transit (bus, subway, light rail, ferry, etc.) routes are near a given location. They defined usefulness as “the distance to the nearest stop on the route, the frequency of the route, and type of route (with twice as much weight given to heavy/light rail than to bus service).”

“It’s no surprise that Cambridge is one of the best midsized cities for public transit,” said James Gulden, Redfin real estate agent in Cambridge, in a statement. “Nearly everywhere you go within the six-square-mile radius that makes up the city of Cambridge, you’ll find a T station or bus stop that will get you to your final destination.”

Cambridge received a 72.3 out of 100 on its transit score ranking, meaning public transit is convenient for most trips. Jersey City, New Jersey (70), Newark, New Jersey (64.9), Arlington, Virginia (58), and Berkeley, California (56.3) fell just behind Cambridge on the transit-ranking scale.

Note that Redfin did not analyze weather delays, crowds, or other issues that riders might experience along with their service.

Just yesterday, the MBTA announced that they are considering spending hundreds of millions of dollars to buy new Red Line cars that would increased capacity by 50 percent.