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