The calculated distance (air line) between Massamagrell and Barcelona is approximately 182 miles respectively 292 kilometers.
By car or train, the actual journey to Barcelona is certainly longer, as only the direct route (as the crow flies) between Massamagrell and Barcelona has been calculated here.
Air line (approximately)
292 kilometers
158 nautical miles