The calculated distance (air line) between Rheinfelden and Fribourg is approximately 60 miles respectively 97 kilometers.
By car or train, the actual journey to Fribourg is certainly longer, as only the direct route (as the crow flies) between Rheinfelden and Fribourg has been calculated here.
Air line (approximately)
97 kilometers
52 nautical miles