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