The calculated distance (air line) between Saint Andrews and Glasgow is approximately 65 miles respectively 105 kilometers.
By car or train, the actual journey to Glasgow is certainly longer, as only the direct route (as the crow flies) between Saint Andrews and Glasgow has been calculated here.
Air line (approximately)
105 kilometers
56 nautical miles