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