The calculated distance (air line) between Frankston and Melbourne is approximately 24 miles respectively 39 kilometers.
By car or train, the actual journey to Melbourne is certainly longer, as only the direct route (as the crow flies) between Frankston and Melbourne has been calculated here.