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