A teenager who allegedly stole a tram and drove it around Melbourne may still have a future as a professional driver.

Tram managers are stunned that a 15-year-old boy could navigate the vehicle, which weighs 27 tonnes when empty.

He allegedly drove it around the network for 40 minutes from about 8.50 on Sunday night, manually changing tracks and crossing busy intersections.