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