The calculated distance (air line) between Castelló d'Empúries and Barcelona is approximately 76 miles respectively 123 kilometers.
By car or train, the actual journey to Barcelona is certainly longer, as only the direct route (as the crow flies) between Castelló d'Empúries and Barcelona has been calculated here.
Air line (approximately)
123 kilometers
66 nautical miles