The calculated distance (air line) between Porrentruy and Thun is approximately 53 miles respectively 85 kilometers.
By car or train, the actual journey to Thun is certainly longer, as only the direct route (as the crow flies) between Porrentruy and Thun has been calculated here.
Air line (approximately)
85 kilometers
46 nautical miles