The calculated distance (air line) between Ufa and Magnitogorsk is approximately 155 miles respectively 249 kilometers.
By car or train, the actual journey to Magnitogorsk is certainly longer, as only the direct route (as the crow flies) between Ufa and Magnitogorsk has been calculated here.
Air line (approximately)
249 kilometers
134 nautical miles