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