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